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

Spring WebFlux

A new module introduced in Spring 5.0, Spring WebFlux, can be used to implement web applications built with Reactive Streams. These systems have nonblocking characteristics and are deployed in servers built on top of Netty, such as Undertown and servlet containers that support + 3.1.

Netty is an open source framework that helps developers to create network applications—that is, servers and clients using the asynchronous, event-driven pattern. Netty provides some interesting advantages, such as lower latency, high throughput, and less resource consumption. You can find more information at https://netty.io.

This module supports annotations based on Spring MVC modules, such as @GetMapping, @PostMapping, and others. This is an important feature that enables us to migrate to this new version. Of course, some adjustments are necessary, such as adding Reactor classes (Mono or Flux).

This module meets the modern web requirements to handle a lot of concurrent channels where the thread-per-request model is not an option.

We will learn about this module in Chapter 3, Adding Persistence with Spring Data and Putting it into Reactive Fashion and implement a fully Reactive application based on Reactive Streams.

Some common annotations are  @RequestMapping, @RestController, and   @RequestBody.
主站蜘蛛池模板: 泰安市| 五原县| 蒲江县| 巨鹿县| 左权县| 博野县| 类乌齐县| 宜都市| 合水县| 浮梁县| 师宗县| 泰和县| 青川县| 甘孜县| 新余市| 南康市| 炎陵县| 公安县| 确山县| 温泉县| 潼关县| 湟源县| 平利县| 辽阳市| 扶沟县| 宣汉县| 化州市| 贺兰县| 芷江| 双鸭山市| 准格尔旗| 天祝| 健康| 东乡族自治县| 洱源县| 长岭县| 汝州市| 元江| 宁远县| 修文县| 吉林市|