- 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.
- 智慧城市:大數(shù)據(jù)、互聯(lián)網(wǎng)時代的城市治理(第4版)
- 連接未來:從古登堡到谷歌的網(wǎng)絡革命
- TCP/IP入門經(jīng)典(第5版)
- OpenLayers Cookbook
- 中小型局域網(wǎng)組建、管理與維護實戰(zhàn)
- Getting Started with Grunt:The JavaScript Task Runner
- Metasploit Penetration Testing Cookbook
- 6G新技術(shù) 新網(wǎng)絡 新通信
- 物聯(lián)網(wǎng)長距離無線通信技術(shù)應用與開發(fā)
- Kong網(wǎng)關(guān):入門、實戰(zhàn)與進階
- Implementing NetScaler VPX?
- 人際網(wǎng)絡
- 5G智慧交通
- 從物聯(lián)到萬聯(lián):Node.js與樹莓派萬維物聯(lián)網(wǎng)構(gòu)建實戰(zhàn)
- INSTANT Social Media Marketing with HootSuite