Skip to content
gqlxj1987's Blog
Go back

Java meets reactive programing

Edit page

原文链接

Reactor is a reactive programming library for the Java language which provides the basis for developing non-blocking applications, thus representing a change in how we think about an application’s execution model.

Reactive Programming follows the Observerdesign pattern which means that when an object’s status changes, the other objects are notified and updated, thus reducing the inefficient use of resources.

Backpressure grants the Consumerof an asynchronous stream the ability to tell the Producerthe amount of data that must be sent to prevent the issuance of events at a rate that is faster than the processing capabilities. 反向驱动?

Reactor has two reactive types that implement the Publisher interface, but also provide a broad set of operators: *Flux*and Mono.

A Monoobject represents a single or empty value result (0..1) and allows deterministic generation from scratch or a sequence from arbitrary callback types. 相比较,多一个callback

drawbacks:


Edit page
Share this post on:

Previous Post
Build trust infra
Next Post
Write code easy to delete