Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring 5.0 By Example

You're reading from   Spring 5.0 By Example Grasp the fundamentals of Spring 5.0 to build modern, robust, and scalable Java applications

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781788624398
Length 356 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Claudio Eduardo de Oliveira Claudio Eduardo de Oliveira
Author Profile Icon Claudio Eduardo de Oliveira
Claudio Eduardo de Oliveira
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Journey to the Spring World FREE CHAPTER 2. Starting in the Spring World – the CMS Application 3. Persistence with Spring Data and Reactive Fashion 4. Kotlin Basics and Spring Data Redis 5. Reactive Web Clients 6. Playing with Server-Sent Events 7. Airline Ticket System 8. Circuit Breakers and Security 9. Putting It All Together 10. Other Books You May Enjoy

Reactor RabbitMQ


Our solution is fully reactive, so we need to use Reactor RabbitMQ, which allows us to interact with the RabbitMQ broker using the reactive paradigm.

On this new microservice, we do not need to send messages through the message broker. Our solution will listen to the RabbitMQ queues and push the received Tweets for the connected clients.

Understanding the Reactor RabbitMQ

The Reactor RabbitMQ tries to provide a reactive library to interact with the RabbitMQ rboker. It enables developers to create non-blocking applications based on the reactive stream, using RabbitMQ as a message-broker solution.

As we learned before, this kind of solution, in general, does not use a lot of memory. The project was based on the RabbitMQ Java client and has similar functionalities, if we compare it to the blocking solution.

We are not using the spring-amqp-starter, so the magic will not happen. We will need to code the beans declarations for the Spring context and we will do that in the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime