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

Reactive support in Spring Framework

Spring is a modular framework and used to build every aspect of an application from the web to the persistence layer. Each module is considered as a sub-framework and targeted for a specific area of development. For example, to support a web layer with a servlet API,  the Spring MVC module was included in the Spring Framework. 

Similarly, to support a reactive stack in the web layer, Spring WebFlux was introduced in Spring Framework 5. It is fully non-blocking, backpressure, asynchronous, and compliant with Reactive Streams specifications. It can be run on Servlet 3.1+, Netty, and Undertow containers.

Spring Framework has both the stacks, Spring Web MVC and spring-WebFlux, and developers are free to use either of them, or in some scenarios to mix both of them to develop a Spring-based web application. The typical example would be using spring MVC controller with reactive WebClient; we will talk more about this in the latter part of this chapter.

主站蜘蛛池模板: 靖西县| 庄河市| 曲周县| 华安县| 醴陵市| 保康县| 扎赉特旗| 衢州市| 航空| 蒲城县| 射洪县| 广灵县| 湘西| 苍溪县| 股票| 从化市| 稷山县| 高唐县| 宁河县| 牡丹江市| 沙坪坝区| 乐东| 平山县| 泗水县| 海门市| 珠海市| 汝州市| 文登市| 黎川县| 德兴市| 临安市| 南丰县| 漠河县| 瑞昌市| 平顶山市| 平远县| 白玉县| 凤山市| 酒泉市| 获嘉县| 三门县|