WebFlux in action

In order to learn how we can use WebFlux in real scenarios, we are going to build a simple web application that connects to the remote Gitter Streams API using WebClient, transforms data using the Project Reactor API, and then broadcasts the transformed messages to the world using SSE. The following diagram shows a schematic representation of the system:

Diagram 6.26. The schematic design of the streaming application

The preceding diagram can be described as follows:

  1. This is the point of integration with the Gitter API. As we can see from the preceding diagram, the communication between our server and Gitter is a streaming ...

Get Hands-On Reactive Programming in Spring 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.