Mono
Mono is a Project Reactor publisher type representing an asynchronous computation that emits zero or one item.
Spring in Action, Sixth Edition
Mono is Project Reactor's publisher type for asynchronously emitting zero or one element, including no element when parameterized with Void.
- How it is used
- Uses Mono to carry single or absent values through reactive pipelines, web endpoints, client requests, and security lookups.
- How deep it goes
- Explains creation, subscription, mapping, testing, and framework integration through examples, while sampling rather than exhaustively cataloging operations.
- Examples
- Shows a greeting pipeline, a reactive taco controller, ingredient requests, and a user-details lookup.
- What you can do after
- Apply Mono via Project Reactor and Spring WebFlux to transform values, build reactive endpoints, and send client requests.
Spring Security in Action, Second Edition
Mono is a Reactor type representing an asynchronous computation that emits zero or one item.
- How it is used
- Represents single-value or empty results returned by reactive web endpoints and composed with reactive authentication data.
- How deep it goes
- Defines publisher cardinality and demonstrates map-based composition, while stopping short of detailed scheduling or operator internals.
- Examples
- Uses Mono.just for a greeting and Mono<Authentication> with map for a personalized authenticated response.
- What you can do after
- Build it from scratch in a WebFlux controller and compose emitted values with Reactor operators.
Read how Spring Security in Action, Second Edition explains Mono →
Spring Start Here, Second Edition
Mono is a Reactor publisher type that represents an asynchronous computation producing zero or one result.
- How it is used
- Uses Mono to represent request-body and response tasks in a WebClient REST call.
- How deep it goes
- Defines Mono through producer-consumer subscriptions and task dependencies in a payment proxy example.
- Examples
- Uses a payment object as the request body and a Payment response from a WebClient call.
- What you can do after
- Apply Mono through WebClient to represent a request body and returned response as subscribable tasks.
What to know first
- producerA producer is an entity or computation that generates or supplies data, values, messages, events, or work for consumption or processing by another.
Related concepts
- producerkind of · A producer is an entity or computation that generates or supplies data, values, messages, events, or work for consumption or processing by another.
- ReactiveUserDetailsServiceused by · ReactiveUserDetailsService is a Spring Security interface for asynchronously retrieving user details used in authentication.
- bodyToMono()produced by · bodyToMono() is a WebClient response operation that converts a response body into a Mono of a specified type.
- allproduced by · An all operation returns a Boolean indicating whether every element satisfies a predicate or, when no predicate is given, is truthy.
Questions about Mono
What is Mono?
Mono is a Project Reactor publisher type representing an asynchronous computation that emits zero or one item.
Which Manning books explain Mono?
Spring in Action, Sixth Edition, Spring Security in Action, Second Edition and Spring Start Here, Second Edition.
What should I know before learning Mono?
Manning books that teach Mono usually introduce producer first.
What is Mono a kind of?
Mono is a kind of producer. A producer is an entity or computation that generates or supplies data, values, messages, events, or work for consumption or processing by another.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


