Reactive Programming With Spring 5
Explore the reactive system and create efficient microservices with Spring Boot 2. These days, businesses need a new type of system that can remain responsive at all times. This is achievable with reactive programming; however, the development of these kinds of systems is a complex task, requiring a deep understanding of the domain. In order to develop highly responsive systems, the developers of the Spring Framework came up with Project Reactor. You'll explore the endless possibilities of building efficient reactive systems with the Spring 5 Framework along with other tools such as WebFlux and Spring Boot. Further on, you'll study reactive programming techniques and apply them to databases and cross-server communication.
2. Spring WebFlux Framework
The canonical reference for building a production grade API with Spring. Let's start with the spring-boot-starter-webflux dependency, which actually pulls in all other required dependencies:. To begin with, on the server side, we create an annotated controller that publishes our reactive streams of Employee. Here we have created a WebClient using its factory method create. We also have a detailed article on setting up and working with WebClient. This endpoint updates Employee details and sends back the updated Employee.