Is it worth using Comet for events that are not needed "in realtime", but with a possible delay of, say, 1 minute. Such would be:
- twitter status updates
- facebook updates
I know comet is perfect for a chat application (facebook and GTalk chats are using it), but does twitter, for example, use comet.
Or is AJAX-polling sufficient for such kinds of updates. Why I think it might be sufficient:
- with a poll-interval of 1 minute you are not putting too much load on the server with the ajax-requests
- "no new data" is not the predominant result, as in chat apps for instance.
- no server threads are held and so threads can be reused by multiple clients. Thus a thread pool of 100 threads may be used by 200 clients, whereas with comet it would be 100. (this is not true for my case, using Java - see this article that explains clever thread reuse)
(Note: with "comet" I denote the technique of holding the connection open. Some tend to refer to ajax-polling as comet as well, so I make that clarification - ajax-polling != comet in the above question)