Skip to Content
Hands-On Reactive Programming in Spring 5
book

Hands-On Reactive Programming in Spring 5

by Oleh Dokuka, Igor Lozynskyi
October 2018
Intermediate to advanced
556 pages
15h 18m
English
Packt Publishing
Content preview from Hands-On Reactive Programming in Spring 5

The publishOn operator

In a nutshell, the publishOn operator allows the moving part of runtime execution to a specified worker.

We avoid using the word Thread here since the underlying mechanism of the Scheduler may enqueue work to the same Thread, but the execution job may be done by a different worker from a Scheduler instance perspective. 

In order to specify the worker that should process elements at runtime, Reactor introduces a specific abstraction for that purpose, called SchedulerScheduler is an interface that represents a worker or pool of workers in Project Reactor. We are going to cover Scheduler later in this chapter, but for now, we will just mention that this interface is used in order to choose a specific worker for the current ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Microservices in Action, Second Edition

Spring Microservices in Action, Second Edition

John Carnell, Illary Huaylupo Sanchez

Publisher Resources

ISBN: 9781787284951Supplemental Content