# webflux-demo **Repository Path**: upstu/webflux-demo ## Basic Information - **Project Name**: webflux-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-15 - **Last Updated**: 2021-03-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 介绍 基于Spring5 WebFlux实现的demo ## 架构 * 支持和 Spring Mvc 一样的控制器编码模式 * 支持路由模式 * 支持端点模式 * 功能实现类: ``` org.springframework.boot.web.reactive.server.ReactiveWebServerFactory org.springframework.boot.web.server.WebServer org.springframework.http.server.reactive.HttpHandler org.springframework.web.reactive.HandlerMapping org.springframework.web.server.WebHandler ``` ## WebFLux启动流程图 [启动流程](https://www.processon.com/view/link/5d0763ede4b039f39f3b5a8a) ![图片](https://cdn.learnku.com/uploads/images/201906/24/43192/cT3SlRFXGM.png!large) ## 说明 Spring 5 发布有两年了,随 Spring 5 一起发布了一个和 Spring WebMvc 同级的 Spring WebFlux。 这是一个支持反应式编程模型的新框架体系。反应式模型区别于传统的 MVC 最大的不同是异步的、事件驱动的、非阻塞的, 这使得应用程序的并发性能会大大提高,单位时间能够处理更多的请求。 这里不讲 WebFlux 是怎么用的,有什么用,这类文章网上有太多了,而且都写的非常不错。 下面主要看下 WebFlux 是怎么从无到有,框架怎么设计的,已期能够更灵活的使用 WebFlux。 ## 参考链接 * https://learnku.com/articles/30263