Hi,
I have this application that can produce up to 100 queries per minute, but most of the times is idle.
It seems to me that reopening the connection for each query is rather inefficient, so I'm inclined to use a persistent connection.
But suppose the application would be used on a bigger scale.
Won't the server at a certain point overflow with all the persistent connections?
Would it be an idea to use some sort of idle monitor that detects inactivity and closes the connection?
What would be the best design for such a thing be?
I was thinking the query handler could set a timestamp for the last execution and a timer or a background thread would check whether a certain time passed every few seconds.
Suggestions?
Thanks![]()




Reply With Quote