Advantage of COMET in long polling of requests?

I was wondering if there is a real advantage to using COMET / push technologies in a much simpler polling with long requests, where the server will wait a certain maximum time for new events before informing clients that nothing has happened.

Both technologies have similar client delays, and while the general wisdom is that long requests are worse because they need to establish a new connection, there is the fact that there is HTTP keep-alive - therefore, in the end, both seem to produce a very similar amount of traffic / load.

So, is there a clear advantage to using COMET?

+6
javascript ajax comet
source share
2 answers

An AFAIK poll with long queries is pretty much a comet. Short-term survey - no.

+12
source share

Some benefits that I can think of:

  • Easier to simplify client programming.
  • The minimum delay between the real event and the notification reaching the client. When polled, this has an average time of [SURVEY TIME] / 2 and the worst case [SURVEY TIME].
  • May minimize resources needed on the server. See this article article . To do this, you need to use new server technologies.
0
source share

All Articles