Skip to main content

High Performance WebSocket

Wesley Hales (tCell)
Performance
Location: 212 Level: Intermediate
Average rating: **...
(2.29, 17 ratings)
Slides:   1-PDF 

Adding a WebSocket service to an application is often misunderstood to be high performance by default, however there are many more considerations that must be made, both on the client and server, before the best performance can be achieved. Real-time technologies like SPDY, WebSocket, and soon HTTP 2.0 have their own sets of hurdles and anti-patterns to overcome and this talk will provide the checklist you need to fine tune your application’s real-time performance.

In this talk we’ll review where WebSockets fits in the spectrum of real-time technologies and then go over best practices for creating a secure, high performance, real-time application.
We’ll review the following in detail:

  • Using secure WebSocket (WSS) opposed to unsecure (WS)
  • Polyfill performance
  • WS subprotocols and different styles of interacting with WebSocket services.
  • Binary transmissions and optimizations
  • Compression
  • Battery life and optimizing long lived sessions
Photo of Wesley Hales

Wesley Hales

tCell

Wesley Hales is an author, occasional speaker and Lead Software Developer at Shape Security.

In his spare time, Wesley works on onslyde and loadreport.js.
You can read his articles, or follow him on twitter @wesleyhales.