Reactive Spring Boot microservices
Reactive microservices mentioned in Chapter 2, Related Architecture Styles and Use cases, basically highlight the need of asynchronously integrating microservices in an ecosystem. Even though external service calls primarily get benefits from reactive style programming, reactive principles are useful in any software development, as it improves resource efficiency and scalability characteristics. Therefore, it is important build microservices using reactive programming principles.
There are two ways we can implement reactive microservices. The first approach is to use the Spring WebFlux in the Spring Framework 5. This approach uses reactive style web server for microservices. The second approach is to use a messaging server such as RabbitMQ for asynchronous interaction between microservices. In this chapter, we will explore both the options mentioned here.
Reactive microservices using Spring WebFlux
Reactive programming in Java is based on the Reactive Streams...