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

Processors

The Reactive Streams specification defines the Processor interface. A Processor is a Publisher and a Subscriber at the same time. So, we can subscribe to a Processor instance and also manually send signals (onNext, onError, onComplete) to it. The authors of Reactor recommend omitting processors as they are hard to use and are prone to errors. In most cases, provided processors may be superseded by a combination of operators. Alternatively, a generator factory method (push, create, generate) may fit better for adapting external APIs.

Reactor proposes the following kinds of processors:

  • Direct processors can only push data through manual user actions by operating with the processor's sink. DirectProcessor and UnicastProcessor are ...
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