Building Reactive Real-Time Services
Develop end-to-end reactive real-time services that leverage the power of Project Reactor.
Reactive Real-Time Services
Welcome! In this lesson, we'll build end-to-end reactive real-time services using Spring WebFlux and Project Reactor.
Reactive services are excellent for handling many concurrent connections efficiently. They offer better scalability and responsiveness compared to traditional blocking approaches.
Project Reactor: Flux & Mono
At the heart of reactive programming in Spring is Project Reactor. It provides two key types for handling data streams:
Flux: Represents a stream of 0 to N items. Think of it as a publisher that can emit multiple values over time.Mono: Represents a stream of 0 to 1 item. Useful for operations that return a single result or no result (likevoid).
These types allow us to compose asynchronous operations in a clear and non-blocking way.
All lessons in this course
- Introduction to Reactive Programming
- WebFlux WebSocket Handlers
- Building Reactive Real-Time Services
- Handling Backpressure in Reactive Streams