Web Info & Tutorials

January 7th, 2008

20,000 REASONS THAT COMET SCALES

Greg Wilkins is marching a long with better and more performant Comet support as shown in his piece 20,000 Reasons Why Comet Scales:

After some recent optimizations, the Dojo Cometd implementation of the Bayeux protocol running on the Jetty web server can now handle up to 20,000 simultaneous users per server while maintaining sub-second latency.

20000 Reasons Comet Scales

This was done on “mid-sized Amazon EC2 virtual servers: 7.5 GB of memory, 2×2 EC2 Compute Units, 64-bit platform running Ubuntu 7.10 and Sun JVM 1.5.0_13. A single virtual machine was used as the Cometd server and between 1 and 3 virtual machines were used to generate the load of 20,000 clients.”

Zimbra recently posted about how they switched to Jetty and why continuations was a major reason:

Jetty uses the Continuation pattern to suspend a blocked polling request and free the worker thread. By using Continuation, Jetty keeps impact on existing Web applications and Servlet related technologies to a minimum. Applications written according to the current Servlet specs can take advantage of Comet with trivial changes, and the Continuation mechanism for suspending and resuming of a request is most straightforward. Although Continuation is hardly the only way to implement Comet support, it’s worth noting that other approaches typically will require writing asynchronous code at the application level which carries a signification application development cost.

In summary, we chose Jetty not only because it supports Comet in a scalable manner, but also because the Continuation implementation of Comet is least disruptive to existing Servlet based technologies.

January 7th, 2008

PHOTOPHLOW: INTERACTIVE COMMUNITY FLICKR

Photophlow is a rich interactive communication device around Flickr, created by Neil Berkman and striatic.

Photophlow allows you to add Flickr streams to its chat rooms, so you can discuss away. It also integrates with Twitter.

A view source shows both Prototype and Dojo under the hood, and the UI itself is quite rich. Comet is used for pushing the data to the client, and although many people assume it’s Flash (Flash is used for network communication and sound if available) it is Open Web all the way.

In fact, fellow Ajaxian Michael Mahemoff actually helped build an early prototype of the app.

Photophlow

January 7th, 2008

DEAN EDWARDS IE7.JS 2.0 RELEASE

The prototypal famous “IE7″ discover there was histrion theologist script that immobile IE 6 in as some structure as possible.

Now the IE7 application itself has become out, histrion has updated his accumulation to attain significance in the newborn world, resulting in the newborn IE7.js 2.0 release which features:

  • The IE7 send is today hosted on googlecode (I got fed up with SourceForge).
  • IE7 is no individual modular. Instead I’ve merged the scripts into two: IE7.js and IE8.js
  • IE7.js includes only fixes that are included in the actual MSIE7 browser.
  • All another enhancements are touched to IE8.js.
  • IE7 is today such small (11KB gzipped).
  • IE7 is today such faster (it uses the switch engine from base2.DOM)
  • There are no dependencies on another files (except blank.gif)
  • You crapper hotlink IE7/IE8.js direct from Google’s servers (usage manual below)
  • The fix for base64 encoded images is no individual included

The newborn send is now experience over on Google Code.