Reverse Ajax, not unlike DHTML, LAMP, Ajax and SPA, is not a technology in itself, but a term that refers to the use of a group of technologies together. These technologies include:
Reverse Ajax is different from Ajax, as Reverse Ajax is a suite of technologies for pushing data from a server to a client. These technologies are built upon an Ajax framework.
The Polling technique is not properly a Reverse Ajax solution, because in this case the server simply responds to a repeated direct ajax request. The result is the same that Reverse Ajax, but this technique is not too elegant to be used because it makes a lot of unnecessary traffic.
Let's take a simple example:
The broadcast message.
We have 2 clients and 1 server: client1 needs to send "hello" to all the other clients
With Polling:
and these last lines repeat forever.
With Comet:
no unnecessary traffic.
With PiggyBack:
This guide is licensed under the GNU Free Documentation License. It uses material from the Wikipedia.