O'Reilly logo

Spring MVC Cookbook by Alex Bretet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stacking and consuming tasks with RabbitMQ and AMQP

This recipe will demonstrate how to implement a Message-oriented-Middleware (MoM). This is a very popular technique in scalability based on asynchronous communication between components.

Getting ready

We have already introduced the new cloudstreetmarket-shared and cloudstreetmarket-websocket Java projects. WebSockets are now split away from cloudstreetmarket-api, but cloudstreetmarket-websocket and cloudstreetmarket-api will still communicate with each other using messaging.

In order to decouple secondary tasks from the request thread (secondary tasks like event producing), you need to learn how to configure and use AMQP message templates and listeners with RabbitMQ.

How to do it…

  1. Access the RabbitMQ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required