Reverse Ajax

Reverse Ajax

Reverse Ajax refers to an Ajax design pattern that uses long-lived HTTP connections to enable low-latency communication between a web server and a browser. Basically it is a way of sending data from client to server and a mechanism for pushing server data back to the browser. [cite book
title=Comet and Reverse Ajax: The Next Generation Ajax 2.0
first=Dave
last=Crane
coauthors=McCarthy, Phil
publisher=Apress
isbn=1590599985
year=2008
month=July
language=English
] [cite web
url=http://today.java.net/pub/a/today/2007/03/22/developing-applications-using-reverse-ajax.html
title=Developing Applications using Reverse Ajax
first=Katherine
last=Martin
publisher=java.net, O'Reilly and CollabNet
date=2007-03-22
]

This server–client communication takes one of two forms:

* Client polling, the client repetitively queries (polls) the server and waits for an answer.
* Server pushing, a connection between a server and client is kept open, the server sends data when available.

Reverse Ajax describes the implementation of any of these models, including a combination of both. The design pattern is also known as "Ajax Push", "Full Duplex Ajax" and "Streaming Ajax".

Examples

The following is a simple example. Imagine we have 2 clients and 1 server, client1 to sends the message "hello" to every other client.

With traditional Ajax (polling)::*client1 sends the message "hello":* server receives the message "hello":* client2 polls the server:* client2 receives the message "hello" :* client1 polls the server:* client1 receives the message "hello"

With reverse Ajax (pushing)::* client1 sends the message "hello":* server receives the message "hello":* server sends the message "hello" to all clients

Note that with reverse Ajax less traffic is generated and the message has been transferred with less delay (low-latency).

ee also

*Ajax
*BOSH
*Comet
*Icefaces
*Push technology
*Pull technology

References

External links

* [http://www.obviously.com/tech_tips/slow_load_technique The Slow Load Technique/Reverse AJAX - Simulating Server Push in a Standard Web Browser]
* [http://gmapsdotnetcontrol.blogspot.com/2006/08/exploring-reverse-ajax-ajax.html Exploring Reverse Ajax]
* [http://ajaxian.com/archives/reverse-ajax-with-dwr Reverse Ajax with DWR (an Java Ajax framework)]
* [http://www.lightstreamer.com/Lightstreamer_Paradigm.pdf Changing the Web Paradigm - Moving from traditional Web applications to Streaming-AJAX]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Ajax (programming) — AJAX redirects here. For other uses, see Ajax. Ajax (also AJAX; pronounced /ˈeɪdʒæks/; an acronym for Asynchronous JavaScript and XML)[1] is a group of interrelated web development methods used on the client side to create asynchronous web… …   Wikipedia

  • Ajax amsterdam — Pour les articles homonymes, voir Ajax. Ajax Amsterdam …   Wikipédia en Français

  • Ajax d'Amsterdam — Ajax Amsterdam Pour les articles homonymes, voir Ajax. Ajax Amsterdam …   Wikipédia en Français

  • Ajax Amsterdam — Pour les articles homonymes, voir Ajax. Infobox club sportif Ajax Amsterdam …   Wikipédia en Français

  • AFC Ajax — Ajax Amsterdam Pour les articles homonymes, voir Ajax. Ajax Amsterdam …   Wikipédia en Français

  • AFC Ajax Amsterdam — Ajax Amsterdam Pour les articles homonymes, voir Ajax. Ajax Amsterdam …   Wikipédia en Français

  • Comet (programming) — Comet is a web application model in which a long held HTTP request allows a web server to push data to a browser, without the browser explicitly requesting it.[1][2] Comet is an umbrella term, encompassing multiple techniques for achieving this… …   Wikipedia

  • Comet — En el desarrollo web, Comet es un neologismo para describir un modelo de aplicación web en el que una petición HTTP mantenida abierta permite a un servidor web enviar datos a un navegador por Tecnología Push, sin que el navegador los solicite… …   Wikipedia Español

  • DWR (Java) — For other uses, see DWR (disambiguation). Direct Web Remoting Screenshot  Developer(s) David Marginian / Joe Walker / Dojo Foundation Stable release …   Wikipedia

  • Push technology — Push technology, or server push, describes a style of Internet based communication where the request for a given transaction originates with the publisher or central server. It is contrasted with pull technology, where the request for the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”