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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access