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

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.

主站蜘蛛池模板: 绍兴县| 新竹县| 遂溪县| 苍南县| 神木县| 尉氏县| 万盛区| 景宁| 高平市| 齐齐哈尔市| 大足县| 冕宁县| 民丰县| 清河县| 岗巴县| 包头市| 平陆县| 绥中县| 怀宁县| 冷水江市| 沙坪坝区| 广西| 宁城县| 揭东县| 石狮市| 南通市| 乾安县| 巴彦县| 封开县| 天长市| 昌吉市| 南川市| 京山县| 商丘市| 密山市| 武定县| 弥渡县| 英山县| 永春县| 沧州市| 张家川|