In this technique instead of immediately returning the response, the server holds the response until it finds an update to be sent to the client

I am little confused to understand AJAX - Long Polling and Polling with AJAX apart from the fact one is Push mechanism and other is Pull mechanism.
Could you please elaborate more on this. Also, if you can give some examples where AJAX Long Polling is used.


From your question, I am assuming you want to dig more into the difference between Ajax Polling & Long Polling.

With regards to that -

This W3School resource is a good read on understanding how Ajax code works

To understand how long polling works? Do go through this StackOverflow thread - How Long Polling Works?

Also, read Ajax Polling Vs Long Polling

If it’s something else let me know.