Message Passing with RabbitMQ

The Twitalytics home page needs to shows the stockified HTML for new posts as they’re created (in near real time). To implement this streaming behavior, you’ll need a more powerful message broker than Redis. Twitalytics must be able to route messages to multiple specific clients, which will make it possible to stream updates to every browser with an open connection to the home page.

The messaging system you’ll use is RabbitMQ, an open source message broker that implements the Advanced Message Queuing Protocol (AMQP). It’s an ideal solution for building chat services, games, news apps that broadcast information, workflow engines, or any app with complex distributed computation requirements.

An important difference ...

Get Deploying with JRuby 9k now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.