Key Scheduler Operators for Project Reactor Reactive Types (Part 3)

preview_player
Показать описание
This video discusses the bounded elastic Scheduler in Project Reactor, emphasizing its suitability for I/O-bound tasks. Unlike the parallel Scheduler, which is esigned for CPU-intensive work, the bounded elastic scheduler dynamically adjusts the thread pool size, optimizing for tasks that involve blocking operations like network calls or file I/O. It uses a pool of daemon threads, allowing applications to exit gracefully without manual Scheduler shutdowns. The bounded elastic Scheduler supports Flux, Mono, and ParallelFlux objects, efficiently reusing idle threads in the thread pool or creating new ones up to a set limit. An example demonstrates its use in downloading and storing images from the web in parallel, showcasing its practical application in reactive programming.

Рекомендации по теме