in reply to Unusual(?) server
As a general principle a well-behaved application will release its resources as soon as it can, which favors your first option. So assuming that the period in "periodically" is greater than a couple of minutes, almost certainly that is the better approach. At the same time this means that your clients will effectively be servers, with long-running processes waiting to service requests from your querying server (which is really a client). So, you'll need them to start when the client (that is, server) machine boots.
Now, I take it that the period of time between queries is fairly dynamic. If however it operates at specifiable windows, or if the very next connection time is known, then you could have a client (using your original terminology) connect based on a schedule. For instance, at client boot the server is contacted, at which point it is instructed as to when next to connect. This really depends on the situation though, so I can't say much more.
|
|---|