- Building RESTful Web Services with Spring 5(Second Edition)
- Raja CSP Raman Ludovic Dewailly
- 170字
- 2021-06-30 19:13:24
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.
- 物聯(lián)網(wǎng)關(guān)鍵技術(shù)及應(yīng)用
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn):2014年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- 從實(shí)踐中學(xué)習(xí)手機(jī)抓包與數(shù)據(jù)分析
- 局域網(wǎng)組成實(shí)踐
- 5G技術(shù)核心與增強(qiáng):從R15到R17
- 基于IPv6的家居物聯(lián)網(wǎng)開(kāi)發(fā)與應(yīng)用技術(shù)
- 深入理解計(jì)算機(jī)網(wǎng)絡(luò)
- Building RESTful Web Services with .NET Core
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營(yíng)與維護(hù):運(yùn)營(yíng)商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- 視聽(tīng)變革:廣電的新媒體戰(zhàn)略
- ElasticSearch Server
- 5G新型多址技術(shù)