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

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.

主站蜘蛛池模板: 微博| 那曲县| 金坛市| 内黄县| 丹东市| 饶河县| 呼玛县| 千阳县| 澄迈县| 上高县| 宜兰县| 楚雄市| 广水市| 绥棱县| 英德市| 烟台市| 墨脱县| 五华县| 浑源县| 天门市| 瑞丽市| 金坛市| 化州市| 新龙县| 宜兰市| 翼城县| 河源市| 华坪县| 汨罗市| 长宁县| 花莲县| 新宾| 鹤峰县| 恩施市| 马山县| 廉江市| 牟定县| 山阳县| 平乐县| 洛川县| 安阳市|