What are the differences between polling and long polling? What are the advantages and disadvantages? Is Ajax considered as long-polling?
What are the differences between polling and long polling? What are the advantages and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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)