title: How to check if there is database server health check before sending a get Request in java?
body: <p>I want to do a health check for the server before i send a get request to my DB server. Is there a way to achieve this so that i know the connection to the database server is working fine. My code is in Java, where i call the server and i use the node server to connect to my PostgreSQL database. I want to do the health check from my java code. I have tried a no response exception, but i found the healthcheck for the server is a good idea to implement in the code.  How can i do that ? Please help. Thanks</p>