chapter eight
In the previous chapter, we explored how to design and develop RESTful API with Spring Boot. Spring Framework offers an alternative technology stack with Spring WebFlux to develop reactive applications. Spring WebFlux, which is based on Project Reactor, offers utilities that allow you to design reactive applications with controls, such as nonblocking, backpressure, and writing code in a declarative manner. It also provides the WebClient utility with a fluent API to consume the APIs.
In this chapter, we’ll look at RSocket and WebSocket protocols, which offer support for bidirectional communication between the communicating parties. Lastly, we’ll demonstrate how to use these protocols in a Spring Boot application. Let’s get started.