- We design and build extraordinary applications for companies looking to make the next great idea a reality.
- learn more
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
Recent
- Firefox Plugin Malware ‘Trojan.PWS.ChromeInject.A’
- Pathfinder releases version 1 of the its Flash Platform microsite (codename Mica)
- Pimp my Rails: Five Plugins & Gems to Make Rails Better
- iPhone: Using Pre-processor Directives for Device Testing
- Subtle OpenGL Projection Matrix Difference Between iPhone Simulator and Device
- App Security: Throw Out the Org Chart!
- Pimp my jQuery: Five plugins to replace the features Prototype and Scriptaculous users expect
- Thanksgiving 2008: What We’re Thankful For (In Rails)
- iPhone SDK: Testing with TextMate & GTM
- GWTQuery - JQuery-like Syntax in GWT
Archives
- 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

