Summary

In this chapter, we explored Reactor execution models. We discovered that publisher and subscriber Reactive Streams are concurrency agnostic. Most of the operators in Reactor are also concurrency agnostic. Some operators, such as delayElements and timeout, do alter the concurrency behavior of a stream's execution. Reactor provides various schedulers, which can be used to control the execution behavior of the stream. We found out that these schedulers can be configured for various operators, such as publishOn and subscribeOn. Next, we discussed ParallelFluxwhich can be configured, along with the available schedulers, to perform parallel processing. Finally, we discussed event broadcasting by using ConnectedFlux. Reactor presents ...

Get Hands-On Reactive Programming with Reactor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.