Reverse Ajax
COMET aka Reverse Ajax
COMET Implementation Scenario
Over the years, web development has evolved considerably. These days one can find event driven web applications which needs to be fast and display real time results. Previously during web application development, it was all about static contents being presented to the user or else refreshing the page at times to view updates but with time the scenario has changed and web applications have moved from static pages to dynamic content with real time updates. One such technology which made the contents to appear dynamically is Reverse Ajax aka COMET. Whenever a user makes a HTTP request the web page comes as a response. With AJAX the client checks the server for updates at regular intervals. it would be feasible to check for updates at server if it happened or with no updates it would again be looking for updates at regular intervals thus making high network traffic. It has a long lived http connection thus streaming server data at regular intervals. Comet pushes data from server to client without any client request. It finds any updates at the server and then pushes data from server to client. The client receives messages from server if an event occurs without the client making any explicit call. In comet the TCP connection between server and the web browser is kept alive, thus the messages are pushed from server to client’s browser. Real time updates at Yahoo Finance, Chat Application at Facebook, Gmail are examples of COMET.
Share Thought
Any comments would be appreciated. Do share it if you like..
Regards
Sridhar
sridharamkette 3 months ago
Architectural design of COMET. please come up..