Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advantage of COMET over long request polling?

I've been wondering if there is a real advantage to using COMET / push-technologies over the much simpler polling with long requests where the server will wait a certain maximum time for new events to happen before telling the clients that nothing happened.

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

So is there some clear advantage to using COMET?

like image 843
fforw Avatar asked May 21 '09 10:05

fforw


1 Answers

AFAIK polling with long requests pretty much IS comet. Polling with short requests is not.

like image 71
mcintyre321 Avatar answered Oct 15 '22 15:10

mcintyre321