# webflux-study **Repository Path**: singularity_spacex/webflux-study ## Basic Information - **Project Name**: webflux-study - **Description**: spring webflux - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-05-20 - **Last Updated**: 2024-04-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 使用webflux框架实现以下功能(如果不会使用webflux,使用任意异步框架或者异步线程也可以): 1. 查询多张表的数据,并组合成一个对象返回。 `请看CommonController` ![img.png](img.png) 2. 使用redis缓存缓存数据。 `三个service都做了缓存` ![img_1.png](img_1.png) 3. 实现简单的缓存防穿透逻辑。 `在查询Id中做了防穿透` ![img_2.png](img_2.png) ## 项目运行 1. mysql数据库文件在sql/employees.sql, 导入mysql 测试数据库数据https://github.com/datacharmer/test_db ## 测试 - RequestMapping `http://localhost:8082/departments/query/d009` `http://localhost:8082/departments/query?page=1&size=10` - RouterFunction `http://localhost:8082/routed/departments/query/d009` `http://localhost:8082/routed/departments/query?page=3&size=10` - 组合对象返回 `http://localhost:8082/common/composite?page=2&size=10` ## 技术文档 [spring reactive](https://spring.io/reactive) [project-reactor](https://projectreactor.io/) [reactive-stream](https://github.com/reactive-streams/reactive-streams-jvm)