>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

Write scalable Comet applications with Jetty and Direct Web Remoting - request dwr continuations ajax listing client jetty server

 
Registered tutorials: 501
Registered Users: 40358



Rating: 0 out of 0 votes cast


  
Category: Ajax and Java

Tags Map

ajax api application applications approach architecture article asynchronous auto based behaviour blockingservlet browser bst call callback called calls case check class client clients code comet concurrent configuration configured connection connections consumption content continuation continuationbasedtracker continuations continuationservlet coord coordinate coordinates coordlistener create current data developers developerworks development direct document dojo download driven dump dwr engine event events exception execution explain extends feature figure final function generate generated generates getnextposition gps gpscoord gpstrackerservlet handle handling hold http httpservlet httpservletresponse ibm immediately implement implementation information init instance int interface io ispending java javaioioexception javascript jetty json jul language lat learn library listing lived lng load localhost long longer lynx main making map mccarthy mechanism mechanisms message messages method methods nonblocking note number object occur occurs oncoordgpscoord open output page pair param part pattern pause pending performance philip point polling private provide public published push queue queued quickly randomwalkgenerator rate real remoting req reqid request requests res resgetwriterprintlnrequest resources response resume retried reverse reverseajaxtracker run sample scalable scale script scriptsession seconds selectchannelconnector series server service servicehttpservletrequest services servlet set show shown shows side simple simply simultaneous single situation source start state strategy string sun suspend suspended takes technical technology thread threads throws time top tracker trademarks traffic true updates user void wait waiting web work works write writing

Keyword Cloud Navigation Map

Write scalable Comet applications with Jetty and Direct Web Remoting

Digg this   Post to del.icio.us

Abstract: This article shows how you can use the Jetty servlet engine and DWR together to implement a Comet Web application simply and efficiently.

Why Comet?

The main drawback of the polling approach is the amount of traffic generated as it scales to many clients. Each client must regularly hit the server to check for updates, which places a burden on the server's resources. The worst situation is an application involving infrequent updates, such as an Ajax mail Inbox. In this case, the vast majority of client polls would be redundant, with the server simply answering "no data yet." The server load can be alleviated by increasing the polling interval, but this has the undesirable consequence of introducing a lag between a server event and the client's awareness of it. Of course, a reasonable balance can be found for many applications, and polling works acceptably well.

Nevertheless, one of the appeals of the Comet strategy is its perceived efficiency. Clients don't produce the noisy traffic characteristic of polling, and as soon as events occur, they can be published to the client. But holding open long-lived connections consumes server resources too. While a servlet holds a persistent request in a waiting state, that servlet is monopolizing a thread. This limits Comet's scalability with a traditional servlet engine because the number of clients can quickly overwhelm the number of threads that the server stack can handle efficiently.


Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 95
Unique Hits: 80


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.3 0.3 1 1.1 3.6 4
Current 0 0 3 3 3 3
Previous 0 0 1 1 4 4
Apr 3 0 0 1 1 3 4
Apr 2 1 1 2 2 4 5
Apr 1 2 2 0 0 3 3
Mar 31 0 0 0 0 2 2
Mar 30 0 0 1 2 4 4
Mar 29 0 0 2 2 3 4
Mar 28 0 0 0 0 7 8
Mar 27 0 0 0 0 3 3
Highest 3 3 3 4 10 13


Script Execution Time: 1.35993 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2