SYS-CON Events announced today that Ping Identity, the leader in Internet Identity Security, will exhibit at SYS-CON's 5th International Cloud Expo, which will take place on April 19-21, 2010, at the Jacob Javits Convent...| By Frank Salim | Article Rating: |
|
| December 16, 2008 10:12 AM EST | Reads: |
4,477 |
Chat rooms and live peer-to-peer chat on the web are high on the list of stunning rich application features that can still drop jaws. Facebook recently launched an integrated web chat implementation to much fanfare. Their impressive Erlang and C++ chat infrastructure showcases real-time web techniques and live, interactive interface elements. However, following Facebook's lead is actually not that hard if you use the right approach.
The two main difficulties faced by Facebook, Google, or any other web giant that wishes to deploy a chat application are scaling out an inconceivably large messaging back end and sending real-time messages to the browser. The first problem
is one that many of us would like to have, but few actually encounter. The second problem is getting much, much easier to solve. Web chat is about to go mainstream, thanks in large part to a new HTML 5 feature called Web Sockets.
Chat Is Full-Duplex; the Web Is Not
The challenges in bringing real-time messaging (chat, for example) to web applications stem from the fundamental design of the web. It is, after all, a system designed for navigating hypertext documents. The request-response model is perfect for document retrieval, but it's less perfect for an application platform. Some applications are exceptionally bad fits.
Chat requires full-duplex communication. That is, data must be able to flow bidirectionally. This is a clear necessity for chat, as messages may originate on either the server or the client and must be transmitted without delay. After all, instant messaging is of little use if it isn't instantaneous. HTTP explicitly eliminates the ability to send information over the network in either direction at will at the same time.
Since nearly anything is possible, some tenacious developers have shoehorned full-duplex communication into existing web browsers. Comet long-polling, iframe streaming, and other techniques have all been applied in pursuit of this goal. Each technique has weaknesses, however, and even Comet techniques that allow data to stream down from the server cannot avoid initiating a new request for each upstream message. While a new request might not seem like much, each HTTP action causes several hundred bytes of header data to be generated, transmitted, and parsed. Even when bandwidth and computing resources are cheap, the additional latency incurred by a full round trip hurts real-time interactivity.
Using today's browser technology for both upstream and downstream, there is significant overhead to real-time communication. Despite this, some have been willing to stomach the complexity and inefficiency to run applications like chat on the web without succumbing to the temptation of proprietary plugins.
HTML 5 Web Sockets
The HTML 5 standard specifies new APIs for storage, drawing, drag-and-drop, and other areas that have made web programming painful. Browsers have already begun incorporating parts of HTML 5 (canvas, for example) even though the specification is far from complete. The HTML 5 Communication section includes two additional connectivity features: Server-Sent Events, a standardization of HTTP push, and Web Sockets, a cross-domain safe, full-duplex connection. Server-Sent Events will make real-time updates and notifications easy, and Web Sockets provide the functionality necessary to build chat for the web without the previously required hackery.
Published December 16, 2008 Reads 4,477
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Frank Salim
Frank Salim is a polyglot programmer with a keen interest in making life easier for his fellow coders. He leads WebSocket development at Kaazing and is the front man for Kaazing's open source project at kaazing.org. Salim is an open source advocate and a committer in several open source projects. He is a regular author and contributor to the online tech magazine Comet Daily.
![]() |
393rocker 11/02/09 10:02:00 AM EST | |||
do u have a source code of implementing IM? if i start from the scratch.. |
||||
- The Next-Generation of Business Intelligence
- Whatever the Apple iPad Is, It Apparently Leaks Like a Sieve
- Microsoft’s First Step Toward Cloud Computing
- Six Enterprise Megatrends to Watch in 2010
- Oracle Maps Its Cloud Computing Strategy During Cloud Expo Keynote
- Free Virtual Appliance for Cloud Computing
- Adobe Fiddles with its Web Apps
- How to Secure REST and JSON
- Oracle Sued for Fraud
- UPDATE: Adobe & IE Implicated as China’s Spy Holes
- Chrome Netbook OS; Tablet PCs; LBS; Open Source
- VMware Reportedly Buying Zimbra
- Kindle 2 vs Nook
- The Next-Generation of Business Intelligence
- Whatever the Apple iPad Is, It Apparently Leaks Like a Sieve
- Tactical Cloud Computing Panel at 1st Annual GovIT Expo
- Cloud Expo Show Prospectus Reaches 10,000 IT Marketing Managers
- Microsoft’s First Step Toward Cloud Computing
- Six Enterprise Megatrends to Watch in 2010
- Oracle Maps Its Cloud Computing Strategy During Cloud Expo Keynote
- Free Virtual Appliance for Cloud Computing
- Reflections on Java Command Line Options
- Adobe Fiddles with its Web Apps
- Instant Professionalism Online Despite Yourself...with Ulitzer
- Building a Drag-and-Drop Shopping Cart with AJAX
- What Is AJAX?
- Google Maps! AJAX-Style Web Development Using ASP.NET
- Flashback to January 2006: Exclusive SYS-CON.TV Interviews on "OpenAjax Alliance" Announcement
- AJAXWorld Conference & Expo to Take Place October 2-4, 2006, at the Santa Clara Convention Center, California
- AJAX Sponsor Webcasts Are Now Available at AJAXWorld Website
- How and Why AJAX, Not Java, Became the Favored Technology for Rich Internet Applications
- "Real-World AJAX" One-Day Seminar Arrives in Silicon Valley
- AJAXWorld University Announces AJAX Developer Bootcamp
- AJAX Support In JadeLiquid WebRenderer v3.1
- Where Are RIA Technologies Headed in 2008?
- Struts Validations Framework Using AJAX
SYS-CON Events announced today that Ping Identity, the leader in Internet Identity Security, will exhibit at SYS-CON's 5th International Cloud Expo, which will take place on April 19-21, 2010, at the Jacob Javits Convent...Feb. 8, 2010 06:45 PM EST Reads: 1,008 |
By Krisandra Russo Cloud Computing is receiving a lot of attention, and a number of companies see it as a key to increased agility and efficiency. The technology, however, is still at an early stage and many fundamental challenges need to ...Feb. 8, 2010 06:30 PM EST Reads: 1,627 |
By Pat Romanski What are some of the most important cloud platform strategies any IT executive should consider? The sooner you include these concepts into your cloud roadmap, the better. In his session at the 5th International Cloud Exp...Feb. 8, 2010 05:45 PM EST Reads: 836 |
By Yeshim Deniz SYS-CON Events today announced that Neustar, Inc. (NYSE: NSR), a leading provider of managed services that enable communication across networks, applications and enterprises, is confirmed as an exhibitor at SYS-CON's 5th...Feb. 8, 2010 04:00 PM EST Reads: 1,232 Replies: 1 |
By Pat Romanski SYS-CON Events announced today that R1Soft, a leading developer of Continuous Data Protection (CDP) Software, will exhibit at SYS-CON's 5th International Cloud Expo, which will take place on April 19-21, 2010, at the Jac...Feb. 8, 2010 03:30 PM EST Reads: 775 |










Cloud Computing is receiving a lot of attention, and a number of companies see it as a key to increased agility and efficiency. The technology, however, is still at an early stage and many fundamental challenges need to ...
What are some of the most important cloud platform strategies any IT executive should consider? The sooner you include these concepts into your cloud roadmap, the better. In his session at the 5th International Cloud Exp...
SYS-CON Events today announced that Neustar, Inc. (NYSE: NSR), a leading provider of managed services that enable communication across networks, applications and enterprises, is confirmed as an exhibitor at SYS-CON's 5th...
SYS-CON Events announced today that R1Soft, a leading developer of Continuous Data Protection (CDP) Software, will exhibit at SYS-CON's 5th International Cloud Expo, which will take place on April 19-21, 2010, at the Jac...

COLT, a European provider of business communications and managed services, today announced that the company has selected TIBCO's cloud software to provide organisations throughout Europe with the ability to deploy and manage enterprise applications across physical, virtual and cloud infrastructures ...
I published a link to my post "Choosing a SOA Consultant" in Ulitzer.
Ulitzer is a "new media" site.
The site provides a portal like page for every author. You can look at my page as an example.
Each article's page includes related articles. For example "Choosing a SOA Consultant" page incl...
The cloud crashes make major new stories. We've got two things occurring right now. We've got a massive move into the cloud. That was my first prediction. We have the cloud providers trying to scale up, and perhaps they’ve never scaled up to the levels that they are going to be expected to scale to ...
Frankly I’ve grown weary of the debates over the security of cloud computing. It’s not that I don’t appreciate that there are technical hurdles in front of us, but we have reached a point that a security vulnerability in a single offering, whether that offering is in the public or private cloud, res...

















