What are the differences between polling and long polling? What are the advantages and disadvantages? Is Ajax considered as long-polling?
Asked
Active
Viewed 2,345 times
1 Answers
8
polling: hitting a url from a client at some interval
long polling: hitting the url from a client and having the server hold the connection for a period of time, in this way the server can return the connection at the moment when it has information for the client
Not all ajax is long polling. Long polling is best achieved using a framework like cometd. (http://www.cometd.org)

jesse mcconnell
- 7,102
- 1
- 22
- 33
-
also I have found very good link to answered my question http://stackoverflow.com/questions/3583203/server-polling-with-javascript – Sam Jelveh Jul 12 '12 at 12:43