Chapter 9: Execution Control

  1. What are the different types of schedulers available in Reactor?
  • Schedulers.immediate: This schedules on the current thread
  • Schedulers.single: This schedules on a single thread
  • Schedulers.parallel: This schedules on the thread pool
  • Schedulers.elastic: This schedules on a thread pool
  • Schedulers.fromExecutor: This schedules the configured executor service
  1. Which scheduler should be used for blocking operations?

Schedulers.elastic schedules on a thread pool.

  1. Which scheduler should be used for computation intensive operations?
  • Schedulers.single: This schedules on a single thread.
  • Schedulers.parallel: This schedules on the thread pool
  1. How are PublishOn and SubscriberOn different from each other?

The subscribeOn ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.