17. Reactive Programming with Java Flow

Overview

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.

Introduction

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

Get The Java Workshop now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.