- Hands-On Reactive Programming with Reactor
- Rahul Sharma
- 305字
- 2021-08-13 15:22:51
Reactive Streams
Reactive Streams is a specification that determines the minimum set of interfaces required to build the asynchronous processing of a large volume of unbounded data. It is a specification aimed at JVM and JavaScript runtime. The main goal of the Reactive Streams specification is to standardize the exchange of stream data across an asynchronous boundary of applications. The API consists of the following four interfaces:
Publisher: The publisher is responsible for the generation of an unbounded number of asynchronous events and pushing those events to the associated subscribers.
Subscriber: The subscriber is a consumer of the events published by a publisher. The subscriber gets events for subscription, data, completion, and error. It can choose to perform actions on any of them.
Subscription: A subscription is a shared context between the publisher and subscriber, for the purpose of mediating the data exchange between the two. The subscription is available with the subscriber only, and enables it to control the flow of events from the publisher. The subscription becomes invalid if there is an error or a completion. A subscriber can also cancel the subscriptions, in order to close its stream.
Processor: The processor represents a stage of data processing between a subscriber and a publisher. Consequently, it is bound by both of them. The processor has to obey the contract between the publisher and the subscriber. If there is an error, it must propagate it back to the subscriber.
While there are only four interfaces, there are around 30 rules that govern the data exchange between the publisher and the subscriber. These rules are based on the two principles covered in the following sections.
- 繪制進程圖:可視化D++語言(第1冊)
- Canvas LMS Course Design
- 嵌入式系統應用
- Drupal 7 Multilingual Sites
- Practical Data Wrangling
- 極簡AI入門:一本書讀懂人工智能思維與應用
- IoT Penetration Testing Cookbook
- 工業機器人操作與編程
- Ceph:Designing and Implementing Scalable Storage Systems
- Docker High Performance(Second Edition)
- 基于Xilinx ISE的FPAG/CPLD設計與應用
- PHP求職寶典
- Kubernetes on AWS
- Access 2007數據庫入門與實例應用金典
- ARM體系結構與編程