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

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.

主站蜘蛛池模板: 榆树市| SHOW| 丰镇市| 师宗县| 克山县| 巫山县| 弥渡县| 峨边| 沧源| 花莲市| 天水市| 通化市| 绍兴市| 广宗县| 张家川| 文山县| 江孜县| 江孜县| 茌平县| 遂昌县| 彰武县| 新竹县| 凉山| 邵东县| 清河县| 东光县| 梧州市| 抚顺市| 合水县| 岢岚县| 信宜市| 阿鲁科尔沁旗| 东辽县| 南雄市| 清水县| 武邑县| 孝感市| 兴城市| 桃源县| 壤塘县| 海丰县|