官术网_书友最值得收藏!

Reactive programming in Java and Spring 5

RxJava was introduced by Netflix engineers to support the Reactive model in Java 8, with the bridge to Reactive Streams. However, Java started supporting the Reactive model with Java 9, and Reactive Streams have been incorporated into the JDK as java.util.concurrent.Flow in Java 9.

Also, Pivotal introduced the Reactor framework, which is built directly on Reactive Streams, avoiding the external bridge to Reactive Streams. A Reactor is considered as a 4th generation library.

Finally, Spring Framework 5.0 added Reactive features built into it, including the tools for HTTP servers and clients. Spring users find annotations and controllers handy when they deal with HTTP requests, especially dispatching Reactive requests and back pressure concerns to the framework.

The Reactive model seems to be efficient in resource utilization, as it can process higher loads with fewer threads. However, the Reactive model may not be the right solution for all problems. In some cases, Reactor may make things worse if we use it in the wrong section.

主站蜘蛛池模板: 潍坊市| 北安市| 泸水县| 乡宁县| 东明县| 奉化市| 肇源县| 全椒县| 湘阴县| 沂水县| 隆回县| 绵竹市| 新巴尔虎左旗| 于田县| 尚志市| 建始县| 资阳市| 通海县| 泰顺县| 黑龙江省| 山东| 洱源县| 博湖县| 惠东县| 延寿县| 姚安县| 阳谷县| 香港 | 商水县| 静乐县| 深水埗区| 苍梧县| 常州市| 双柏县| 乡宁县| 武隆县| 淮安市| 眉山市| 云林县| 灌阳县| 白沙|