0PricingLogin
WebSockets & Real-Time Systems with Spring · Lesson

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 (like void).

These types allow us to compose asynchronous operations in a clear and non-blocking way.

All lessons in this course

  1. Introduction to Reactive Programming
  2. WebFlux WebSocket Handlers
  3. Building Reactive Real-Time Services
  4. Handling Backpressure in Reactive Streams
← Back to WebSockets & Real-Time Systems with Spring