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

  • Spring 5.0 Projects
  • Nilang Patel
  • 169字
  • 2021-07-02 12:35:07

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.

主站蜘蛛池模板: 聂荣县| 崇阳县| 武功县| 丰台区| 满洲里市| 普兰店市| 巴马| 新津县| 明光市| 阿拉善右旗| 织金县| 永吉县| 宣化县| 汾西县| 和顺县| 天柱县| 白朗县| 湘潭市| 普兰县| 华坪县| 龙口市| 洛南县| 菏泽市| 泰来县| 灵宝市| 长岭县| 德安县| 开平市| 湘阴县| 茂名市| 科尔| 马关县| 阿勒泰市| 祥云县| 贵溪市| 新昌县| 余干县| 温泉县| 永丰县| 应城市| 新蔡县|