You are previewing Clojure in Action.

Clojure in Action

Cover of Clojure in Action by Amit Rathore Published by Manning Publications

Chapter 11. Scaling through messaging


This chapter covers

  • A quick overview of messaging
  • Using RabbitMQ with Clojure
  • A framework for distributed parallel programming


Messaging has a place in system architecture for many reasons. The most obvious is to communicate between different applications or various subsystems of a single application. Using a messaging system in this manner allows for loose coupling and flexibility: message structure can be changed as needed, or messages can be transformed in the middle as required. There are many design patterns for integrating applications using messaging in this manner.

Another use of messaging is to introduce asynchronous processing into applications. Instead of handling complete requests in ...

The best content for your career. Discover unlimited learning on demand for around $1/day.