Roundup - Comet Tutorials, Examples and Resources
I've been collecting resources recently for Comet and Cometd. Just a reminder on what Comet is:
Fundamentally, [Comet applications] use long-lived HTTP connections to reduce the latency with which messages are passed to the server. In essence, [Comet applications] do not poll the server occasionally. Instead the server has an open line of communication with which it can push data to the client.
Cometd (originally call "Shortbus") is an attempt to standardize Comet as a protocol with a reference implementation. The protocol, Bayeux, runs on top of the server push to allow pub sub subscribe to events, sort of like a JMS for Javascript.
I've tried to focus here on resources that explain the nitty-gritty of streaming to the browser. Unfortunately there aren't a whole lot of tutorials of this sort. There are, however, a ton of libraries, tools and frameworks out there that abstract the basics, and I'll cover those in a future post.
Tutorials and Examples
- gCometd: an example introducing Cometd, Bayeux using Grizzly, the Glassfish NIO HTTP listener.
- Pageview counter Comet example. Probably the most understandable of all the tutorials.
- Michael Mahemoff's post on portable Comet using Iframes.
- java.net tutorial on doing "Reverse Ajax" with DWR, which includes Comet as one of three approaches.
Resources
- Of course the Cometd home page. Still a little light on information.
- Michael Mahemoff's page from his ajaxpatterns Wiki explaining HTTP Streaming
- Alex Russell's (of Dojo) intro to Comet.
- An analysis by Alex Russell of the GTalk interface in GMail. Good analysis of the low level support for streaming HTTP in the browser.
- An old but still good blog entry by John Resig on HTTP Streaming and how it works.
- Pushlets, an early form of comet.
Topics: COMET
Leave a comment
About Pathfinder
Follow the Blog
-
Get a monthly update on best practices for delivering successful software.
Subscribe via email
Subscribe via RSS
Categories
Topics
Archives
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
Blogroll
Recent
- Elements of Testing Style
- Aesthetics and Web Design
- Asterisk-Java Testing with Groovy
- 3 Misuses of Code Comments
- Fluently NHibernate
- Digging a Hole and Covering it with Leaves — The Software Development Version
- The Importance of User Experience - Do You Understand It in Your Bones?
- Writing Your Own Protocol With NSURLProtocol
- What’s In Your Dock: iPhone edition
- Feature Fatigue
