The Source for Java Technology Collaboration
User: Password:



Carol McDonald

Carol McDonald's Blog

Screencast about a RESTful Comet application

Posted by caroljmcdonald on September 20, 2008 at 05:53 AM | Comments (1)

Here is a screencast about a Comet application which allows users to watch and chat about a slide show. The Application loads the slide URLs from a RESTful Web Service and then uses dojo bayeux with Grizzly on Glassfish to publish the slides and/or text to all the slideshow subscribers.
You can read more about this application at RESTful Web Services and Comet

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • So the main question I can't help think about is.. scalability. If I have potentially millions of users all hitting my server farm, they are all keeping long-lived connections open. As far as I know, this is a very resource intensive process.. something on the order of a couple 1000 connections tops, per server.. if that. So using something like Comet would mean, unless things have changed, I would probably need hundreds of servers to handle a large load of clients hitting my site because of the limited threads each server could handle to keep the connections open.

    The project I am working on has been considering a "push" model, but our thought was having the consumer of our REST api pass in one (or more) methods for which the REST API could push back data. For example, since most consumers of our API will be from web servers that would render the UI using the REST API responses, they could pass us there URL to there server, and when a long task was ready to push more data, using the URL supplied we would simply send the appropriate HTTP "request" to the supplied URL. As part of our API doc, we'd explain each protocol we supprot (initially http, but smtp, email, twitter, etc could be implemented) and what we would send back based.

    So I am curious how you handle large loads with regards to server farms and the usual scalability/clustering stuff.

    Posted by: andjarnic on September 20, 2008 at 09:35 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds