Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring 5.0 Microservices

You're reading from   Spring 5.0 Microservices Scalable systems with Reactive Streams and Spring Boot

Arrow left icon
Product type Paperback
Published in Jul 2017
Publisher
ISBN-13 9781787127685
Length 414 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Rajesh R V Rajesh R V
Author Profile Icon Rajesh R V
Rajesh R V
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Demystifying Microservices FREE CHAPTER 2. Related Architecture Styles and Use Cases 3. Building Microservices with Spring Boot 4. Applying Microservices Concepts 5. Microservices Capability Model 6. Microservices Evolution – A Case Study 7. Scale Microservices with Spring Cloud Components 8. Logging and Monitoring Microservices 9. Containerizing Microservices with Docker 10. Scaling Dockerized Microservices with Mesos and Marathon 11. Microservice Development Life Cycle

Streams for reactive microservices


Spring Cloud Streams provides an abstraction over the messaging infrastructure. The underlying messaging implementation can be RabbitMQ, Redis, or Kafka. Spring Cloud Streams provides a declarative approach for sending and receiving messages.

As shown in the preceding diagram, the Cloud Streams work with the concept of a Source and a Sink. The Source represents the sender perspective of the messaging, and Sink represents the receiver perspective of the messaging.

In the given example, the Sender defines a logical queue called Source.OUTPUT to which the Sender sends messages. The Receiver defines a logical queue called Sink.INPUT from which the Receiver retrieves messages. The physical binding of OUTPUT to INPUT is managed through the configuration. In this case, both link to the same physical queue, MyQueue on RabbitMQ. So, at one end, Source.OUTPUT will be pointed to MyQueue, and on the other end, Sink.INPUT will be pointed to the same MyQueue.

Spring Cloud...

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 $19.99/month. Cancel anytime
Banner background image