.
, , . , , "" , . , "" . , - , , , , .
, , . , , .
The final option is that some background server constantly monitors the database server, and when it detects that it is disconnected, it notes something appropriately. Then your application will check this thing (actually a cache), and it will be almost immediately. Of course, this would mean that it could give false negatives (that is, the server may be on the network, but the monitoring service has not yet updated the cache).
source
share