WebFlux 学习 —— 基本概念

本文深入探讨了架构师所需掌握的三大核心Web概念:HttpHandler,WebHandlerApi和WebClient,以及多种服务器API如Netty,ReactorNetty,Undertow等,并解释了如何将Servlet3.1的非阻塞I/O桥接到ReactiveStreams,是架构师进阶必读。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

官方文档

先看完,再总结

三个核心概念:

258a88dc5d7a9a767be8482f0f0863af7ae.jpg

HttpHandler,WebHandler Api,WebClient

理解第二个概念:

Server nameServer API usedReactive Streams support

Netty

Netty API

Reactor Netty

Undertow

Undertow API

spring-web: Undertow to Reactive Streams bridge

Tomcat

Servlet 3.1 non-blocking I/O; Tomcat API to read and write ByteBuffers vs byte[]

spring-web: Servlet 3.1 non-blocking I/O to Reactive Streams bridge

Jetty

Servlet 3.1 non-blocking I/O; Jetty API to write ByteBuffers vs byte[]

spring-web: Servlet 3.1 non-blocking I/O to Reactive Streams bridge

Servlet 3.1 container

Servlet 3.1 non-blocking I/O

spring-web: Servlet 3.1 non-blocking I/O to Reactive Streams bridge

根据下面这句话,WebHandler Api 是为了统一不同的 Server Api (servlet3.1 只是其中一个分支)

4ce93d4bade665904675fb93db235f71ae2.jpg

根据前端控制器模型,设计了一个集中的 WebHandler —— DispatcherHandler,用于调度路由以及渲染视图。

 

转载于:https://my.oschina.net/lemos/blog/2965146

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值