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

Reactive span across Spring modules

By introducing a reactive web framework, WebFlux , Spring also made necessary changes in other modules to provide first-class support for WebFlux. Spring Boot, Spring Security, Thymeleaf, and Spring Data are among the few modules that are equipped with WebFlux capabilities. This can be described with the following diagram:

Spring Data has adopted a reactive paradigm and started supporting infinite streams from the database with the @Tailableannotation. Spring Data JPA is mostly associated with RDBMS, which is blocking in nature so it cannot support Reactive Programming.

Spring MVC is inherently blocking in nature; however, we can use Reactive Programming for some of the parts, which can be converted to be reactive. For example, the Spring MVC controller can be equipped with the Flux and Mono types to handle the data stream in a reactive way.

Apart from this, a few annotations like @Controller, @RequestMapping, and so on are supported in WebFlux so you can convert a Spring MVC application to WebFlux in an incremental manner. We will see more details about reactive support in Spring Framework through WebFlux by creating a sample application.

主站蜘蛛池模板: 华安县| 黄浦区| 湘阴县| 诸暨市| 城口县| 朔州市| 上杭县| 拉孜县| 阳高县| 朝阳市| 江阴市| 安徽省| 浙江省| 昌乐县| 东平县| 弥渡县| 邵阳市| 确山县| 洞头县| 新田县| 济源市| 七台河市| 岱山县| 万荣县| 三原县| 濮阳市| 新巴尔虎右旗| 岳西县| 乌兰浩特市| 临西县| 绥宁县| 阜城县| 灵武市| 巴东县| 广丰县| 青海省| 建湖县| 永胜县| 深泽县| 芦山县| 固原市|