0Pricing
Spring Boot 4 Microservices & REST APIs · Lesson

Mono and Flux Basics

Understand reactive publishers.

What is Reactive Programming

Reactive programming is about building non-blocking, asynchronous applications that handle streams of data.

Instead of returning a value directly, a reactive method returns a publisher that emits data over time. The caller subscribes to receive it.

  • Threads are not blocked waiting for I/O
  • Great for high-concurrency, low-latency services

Project Reactor

Spring WebFlux is built on Project Reactor, which provides two core publisher types:

  • Mono<T> — emits 0 or 1 item
  • Flux<T> — emits 0 to N items

Both implement the Reactive Streams Publisher interface.

All lessons in this course

  1. Mono and Flux Basics
  2. Reactive Controllers
  3. WebClient for Reactive Calls
  4. Backpressure and Operators
← Back to Spring Boot 4 Microservices & REST APIs