A demo project showing the pros and cons of using the Project Reactor Context to propagate and access data transparently through reactive pipelines, as opposed to polluting/altering method signatures with unnecessary local variables or messy tuples.
Check out the MultiplesController.java and the PrefixingService.java classes, showing propagation of data through usage of:
- The Good: Reactor Context (MultiplesController#getMultiples)
- The Bad: Local Variables (MultiplesController#getMultiplesWithLocalVarPrefix)
- The Ugly: Tuples (MultiplesController#getMultiplesWithTuplesPrefix)
For further reference, please consider the following resources: