Working with map and flatMap
In this module, you are going to learn:
- How to use operators to transform sequences
- The
map
operator - The
flatMap
operator - When and how to use the
map
andflatMap
operators - The concept of upstream and downstream
You can find the code for this module here.
Links
- Why is map called map?
- Javadoc for Mono’s map
- Javadoc for Mono’s flatMap
- Javadoc for Flux’s map
- Javadoc for Flux’s flatMap
- Project Reactor’s flatmap and backpressure
Table of contents
- Operators to Transform Sequences
- The map Operator
- The flatMap Operator
- Using map and flatMap
- Upstream and downstream
- Coding Exercises