- 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.
- SOA用戶指南
- Twilio Cookbook
- 智慧城市中的移動(dòng)互聯(lián)網(wǎng)技術(shù)
- 城市治理一網(wǎng)統(tǒng)管
- Master Apache JMeter:From Load Testing to DevOps
- 工業(yè)互聯(lián)網(wǎng)創(chuàng)新實(shí)踐
- React Cookbook
- 設(shè)備監(jiān)控技術(shù)詳解
- 數(shù)據(jù)血緣分析原理與實(shí)踐
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(2016)
- TCP/IP基礎(chǔ)(第2版)
- bash網(wǎng)絡(luò)安全運(yùn)維
- 華為HCIA-Datacom認(rèn)證指南
- 物聯(lián)網(wǎng)M2M開發(fā)技術(shù):基于無線CPU-Q26XX
- 路由與交換技術(shù)