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 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.