<p>We are currently developing a server whereby a client requests interest in changes to specific data elements and when that data changes the server pushes the data back to the client. There has vigorous debate at work about whether or not it would be better for the client to poll for this data. </p>

<p>What is considered to be the ideal method, in terms of performance, scalability and network load, of data transfer in a near real time environment? </p>

<p><strong>Update:</strong>
Here's a <a href="http://ayende.com/Blog/archive/2009/02/16/pull-vs.-push-models-for-ui-updates.aspx" rel="nofollow noreferrer">Link</a> that gives some food for thought with regards to UI updates.</p>

[{'answer_id': 58761, 'author': 'Brian R. Bondy', 'author_id': 3153, 'author_profile': 'https://Stackoverflow.com/users/3153', 'pm_score': 1, 'selected': False, 'text': '<p>As long as the client initiates the connection (to get passed firewall and NAT problems) either way is fine.</p>\n\n<p>If there are several different type of data you need to send, you might want to have the client specify which type he wants, but this is only needed once per connection.  Then you can have the server continue to send updates as it has them. </p>\n\n<p>It would be less network traffic to have the server send updates without the client continually asking for updates. </p>\n'}, {'answer_id': 58764, 'author': 'Eugene Yokota', 'author_id': 3827, 'author_profile': 'https://Stackoverflow.com/users/3827', 'pm_score': 0, 'selected': False, 'text': "<p>What do you have on the client's side? Many firewalls allow outgoing requests but block incoming requests. In other words, pull may be your only option if you are crossing the Internet unless you are sending out e-mails.</p>\n"}, {'answer_id': 58775, 'author': 'ima', 'author_id': 5733, 'author_profile': 'https://Stackoverflow.com/users/5733', 'pm_score': 3, 'selected': True, 'text': "<p>There's probably no ideal method for every situation, but push is usually better and used more often. It allows to optimize server caching and data transfers, which helps performance and scalability, and cuts network traffic a bit by avoiding client requests and empty responses. It can be important advantage for a server to operate in it's own pace and supply clients with data when it is ready.</p>\n\n<p>Industry standarts - such as OPC, GID - support both. Server pushes updates to subscribed clients, but client can pull some rarely used data out without bothering with subscription.</p>\n"}]
['https://Stackoverflow.com/questions/58757', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6065/']