I'm Brett Slatkin and this is where I write about programming and related topics. Check out my favorite posts if you're new to this site. You can also contact me here or view my projects.

17 September 2010

A common misconception explained by Phil Leggetter:

"The problem with [PubSubHubbub] is that for each push a new HTTP connection needs to be established and the data then needs to be transferred. Establishing a connection takes time and resources so clearly a single persistent connection is a better solution. This is where I think XMPP PubSub is a better solution."

False! HTTP 1.1 reuses TCP connections by default. This means the overhead of each real-time update via PubSubHubbub is only the HTTP headers (a minimal envelope). HTTP 1.1 is why it's possible to build a PubSubHubbub subscriber that handles hundreds of updates per second with little effort.
© 2009-2017 Brett Slatkin