17. Reactive Programming with Java Flow
This chapter covers the Java Flow API and the advantages of the Reactive Streams specification. It will first define, in general terms, the motivation for Flow and Reactive Streams, as well as the respective functions of Publishers, Subscribers, and Processors in Java. You will then learn to use the basic SubmissionPublisher to build a reactive application and, in the final sections, practice implementing a simple Subscriber and Processor using Flow.
The Reactive Streams specification presents an ongoing development within software architecture, referred to as Reactive Systems. These systems, ideally, have the following advantages:
- A faster response
- More controlled responses ...