||Struts 1.x 2.x | Spring | Strips | Wicket | Tapestry | Seam | JSF | RIFE | DWR | DOJO | EXT | Jquery | Json | Prototype | Hibernate | iBatis | web 2.0 | www.siva2baba.com & shivababa@gmail.com
  FrameWorks Theater
What is Comet (Ajax Push)?

Responsive, low-latency interaction for the web

• A programming technique that enables web
servers to send data to the client without having
any need for the client to request for it

• Allows creation of highly responsive, eventdriven
web applications

----> Keep clients up-to-date with data arriving or changing
on the server, without frequent polling

• Pros

----> Lower latency, not dependent on polling frequency
Server and network do not have to deal with frequent
polling requests to check for updates

Ajax Polling Vs Ajax pushing

Ajax Poll vs Ajax Push

Bending the rules of HTTP.
• Poll:
> Send a request to the server every X seconds
> The response is “empty” if there is no update
• Long Poll: (most popular, demo use)
> Send a request to the server, wait for an event to
happen, then send the response
> The response is never empty
> HTTP specification satisfied: indistinguishable from
“slow” server
• Http Streaming:
> Send a request, wait for events, stream multipart/
chunked response, and then wait for the events
> The response is continually appended to

Comet Examples
• GMail and GTalk
• Meebo
• 4homemedia.com
(using GlassFish project's Comet)
• JotLive
• KnowNow
• Many more …

Comet is a generic term describing various approaches to send data asynchronously from a Web server to a client without the need for the client to explicitly request the data. It is an essential technique for any real-time event-driven web applications, where the majority of events occur on the server and data must be "pushed" frequently to the client.

Financial trading applications are a good example of this; pricing updates occur frequently and must be relayed to the client at a high rate, whereas user generated events such as buying and selling happen less often. Comet is also known as server push, HTTP push, or HTTP streaming.

  Today, there have been 2 visitors (20 hits) on this page! www.siva2baba.com & shivababa@gmail.com  
=> Do you also want a homepage for free? Then click here! <=
||Struts 1.x 2.x | Spring | Strips | Wicket | Tapestry | Seam | JSF | RIFE | DWR | DOJO | EXT | Jquery | Json | Prototype | Hibernate | iBatis | web 2.0 | http://siva2baba.diinoweb.com/files/ and www.siva2baba.com