I have 2 servers, each in two separate locations. I need to host an application on one, and the database server on the other.
From the app server, if I ping the database server, on average I get about 30ms.
My question is:
When I query the database from the app;
Is it going to take
30 ms + database_server_query_run_time
Or;
Is it going to take
30 ms + database_server_query_run_time
+ 30ms
I would like to understand this please.