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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.