Reverse Ajax
From Wikipedia, the free encyclopedia
| It has been suggested that this article or section be merged with Push technology. (Discuss) |
| This article may not meet the general notability guideline or one of the following specific guidelines for inclusion on Wikipedia: Biographies, Books, Companies, Fiction, Music, Neologisms, Numbers, Web content, or several proposals for new guidelines. If you are familiar with the subject matter, please expand or rewrite the article to establish its notability. The best way to address this concern is to reference published, third-party sources about the subject. If notability cannot be established, the article is more likely to be considered for redirection, merge or ultimately deletion, per Wikipedia:Guide to deletion. This article has been tagged since November 2007. |
| This article is orphaned as few or no other articles link to it. Please help introduce links in articles on related topics. (June 2008) |
Reverse Ajax refers to the combined use of Ajax for sending data from client to server, and some mechanism for pushing server data back to the browser.[1]
This server–client communication takes one of several forms:
- Comet, a connection between a server and client is kept open, by slowly loading a page in a hidden frame.
- Polling, the client repetitively queries (poll) the server.
Reverse Ajax is an umbrella term which describes the implementation of any of these models.
[edit] Examples
As a simple example, imagine we have 2 clients and 1 server, and client1 needs to send the message "hello" to every other client.
- With polling
-
- client1 sends the message "hello"
- server receives the message "hello"
- client2 polls the server
- client2 receives the message "hello"
- client1 polls the server (unnecessary traffic starts)
- client1 receives the message "hello"
- client2 polls the server
- client2 receives the message "hello" (unnecessary traffic continues)
- and these last lines repeat forever.
- With Comet
-
- client1 sends the message "hello"
- server receives the message "hello"
- server sends the message "hello" to all clients
Note that in the Comet less traffic is generated.
[edit] See also
[edit] External links
- Java.net article
- Slow Load Technique
- Reverse Ajax
- Jonathon Downes on What is Reverse Ajax
- Exploring Reverse Ajax
- Ajaxian
- Implementations
- DWR Project homepage
- RJAX A Java Open Source solution using an applet and a server embedded in the web application
- InstantPush
- Caplin Liberator - Free version of a commercial Comet Server used extensively in finance.

