Harnessing the Power of HTML5 Web Sockets to Create Scalable Real-time Applications

Peter Lubbers (Kaazing ), Brian Albers (Kaazing )
Location: 2006 Level:
Average rating: ****.
(4.42, 12 ratings)

Today, we enjoy what looks like a real-time web experience, but take a look under the hood and you’ll quickly see that this “real-time” experience has an outrageously high price tag—one you pay with network throughput and latency. The user-perceived real-time experience is often achieved by using an assortment of clever browser hacks and obscure techniques known as Comet or Reverse Ajax. The bottom line is that simulating bi-directional browser communication over HTTP—which is half-duplex and request/response driven by nature—is error-prone and complex.

Complexity does not scale.

HTML5 Web Sockets to the rescue! Defined in the Communications section of the HTML5 specification, HTML5 Web Sockets represent the next evolution of web communications—a full-duplex, bidirectional communications channel that operates over a single socket. WebSockets provide not only a standard against which scalable real-time RIA applications can be built, but also a socket, native to the browser, that facilitates network programming from the browser with super-efficient bi-directional (full-duplex) communication over a single connection, eliminating many the problems that Comet and AJAX solutions are prone to and getting rid of the complexity.

In this session, Brian and Peter—co-authors of Pro HTML5 Programming (Apress, 2010)—will demonstrate the powerful simplicity of HTML5 Web Sockets, using real-world examples. They will show you that HTML5 Web Sockets allows you to do all kinds of incredible things in your web applications. For example, using Web Sockets, you can communicate directly from the browser with any TCP-based back-end service (using protocols like Stomp, JMS, Jabber, IMAP, and so on), allowing you to easily create applications such as web-based chat, online trading and betting, and social networking.

Attendees will learn:

  • How WebSockets work
  • How Web Sockets can provide a dramatic reduction in latency and network throughput (think 1000:1)
  • How you can create real-world, real-time apps that scale using the WebSocket API
  • What techniques and technologies you can use to build HTML5 web applications
Photo of Peter Lubbers

Peter Lubbers


Peter Lubbers is the director of documentation and training at Kaazing. He is the co-author of the Apress book Pro HTML5 Programming and teaches HTML5 training courses all over the world.

Prior to joining Kaazing, Peter worked as an information architect at Oracle, where he wrote many books, such as the award-winning Oracle Application Server Portal Configuration Guide. Peter also develops documentation automation solutions and two of his inventions are patented.

Photo of Brian Albers

Brian Albers


Brian Albers is the Vice President of Research and Development at Kaazing, and a co-author of the Apress book “Pro HTML5 Programming”. Previously, Brian spent ten years at Oracle learning the ropes of enterprise software, first as a developer and later as a senior manager in the user interface technology group.

Comments on this page are now closed.


Picture of Drew Lawton
Drew Lawton
05/07/2010 4:59am PDT

This was a fantastic session, very informative and useful

Picture of Melvin Ryan Fetalvero
Melvin Ryan Fetalvero
05/06/2010 9:46am PDT

One of the best sessions for this conference. Kudos to the presentors.

Picture of Karin Gyulai
Karin Gyulai
05/06/2010 9:00am PDT

Great! Finally à session with some depth.

Silverlight Showcase
  • Microsoft Corporation
  • .CO
  • Adobe Systems, Inc.
  • Ericsson
  • Germany Trade & Invest
  • IBM
  • Berlin Partner
  • blueKiwi
  • EffectiveUI
  • HP
  • Neustar, Inc.
  • OpenSRS
  • OpenText
  • PayPal
  • Pearltrees
  • The Planet

Rob Koziura
(415) 947-6111

Kaitlin Pike
(415) 947-6306

View a complete list of Web 2.0 Expo contacts.