Book Image

Hands-On Reactive Programming in Spring 5

By : Oleh Dokuka, Igor Lozynskyi
Book Image

Hands-On Reactive Programming in Spring 5

By: Oleh Dokuka, Igor Lozynskyi

Overview of this book

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. Hands-On Reactive Programming in Spring 5 begins with the fundamentals of Spring Reactive programming. 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. You will advance your skills in scaling up Spring Cloud Streams and run independent, high-performant reactive microservices. By the end of the book, you will be able to put your skills to use and get on board with the reactive revolution in Spring 5.1!
Table of Contents (12 chapters)

Summary

In this chapter, we learned that WebFlux is an efficient replacement for the good old Web MVC framework. We also learned that WebFlux uses the same techniques for request handler declarations (using the well-known @RestController and @Controller). In addition to the standard handler declaration, WebFlux introduces a lightweight, functional endpoint declaration using RouterFunction. For a long time, modern reactive web servers, such as Netty, and non-blocking Undertow features were unavailable to users of the Spring Framework. With the WebFlux web framework, these technologies have become available using the same, familiar API. Since WebFlux is based on asynchronous non-blocking communication, this framework depends on Reactor 3, which is the core component of the module.

We also explored changes that have been introduced with the new WebFlux module. These include changes...