NGiNX HTTP Push Module

You’re writing a live-updating web application. Maybe it’s some sort of chat, a multiplayer Flash game, a live feed reader, or maybe it’s a realtime HTCPCP teapot controller. Either way, you won’t have status updates come only when the user refreshes a page, and polling the server every couple of seconds seems to you ugly and insufficient. But you don’t quite want to commit to writing your application in any of the available asynchronous scripted web serverframeworks. You’re also not crazy about CometD, maybe because you think the Bayeux protocol is overkill.

Solution?

NGiNX_HTTP_Push_Module

This module turns Nginx into an adept HTTP Push and Comet server. It takes care of all the connection juggling, and exposes a simple interface to broadcast messages to clients via plain old HTTP requests. This lets you write live-updating asynchronous web applications as easily as their oldschool classic counterparts, since your code does not need to manage requests with delayed responses.

NHPM fully implements the Basic HTTP Push Relay Protocol, a no-frills publisher/subscriber protocol centered on uniquely identifiable channels. It is an order of magnitude simpler and more basic than similar protocols (such asBayeux). However, this basic functionality together with the flexibility of the server configuration make it possible to reformulate most HTTP Push use cases in Basic HTTP Push Relay Protocol language with very little application- and client-side programming overhead.

Enjoy!

Artemis Mendrinos

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top