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

Published: 04 March 2024
on channel: Douglas Schmidt
84
2

This video introduces the newParallel() operator from Project Reactor's Scheduler utility class, which creates a parallel scheduler with a fixed-size pool of single-threaded executive service-based workers. This operator, which vital for parallel compute-bound operations, ensures non-blocking execution, with Project Reactor throwing exceptions for any blocking attempts. It highlights the importance of disposing of these schedulers properly, as they are not daemon threads and will prevent application termination if left undisposed. I also compare the Project Reactor newParallel() functionality with RxJava, noting the lack of a direct equivalent, and underscores the significance of schedulers in enhancing reuse across Project Reactor's reactive types like Flux, Mono, and Parallel Flux by parameterizing them with Scheduler objects, facilitating concurrent scheduling capabilities.


On this page of the site you can watch the video online Key Scheduler Operators for Project Reactor Reactive Types (Part 1) with a duration of hours minute second in good quality, which was uploaded by the user Douglas Schmidt 04 March 2024, share the link with friends and acquaintances, this video has already been watched 84 times on youtube and it was liked by 2 viewers. Enjoy your viewing!