spring-boot-starter-data-redis是否支持reactive响应式编程

开源项目SDK:https://github.com/mingyang66/spring-parent

个人文档:https://mingyang66.github.io/raccoon-docs/#/

spring-boot-starter-data-redis: 使用传统的基于阻塞的I/O编程模型,这意味着当你调用Redis操作时,线程将会被阻塞,知道操作完成,这在高并发场景下可能会导致线程资源的良费和响应时间的增加。

spring-boot-starter-data-redis-reactive: 使用响应式编程模型,在响应式编程中,你的操作是异步的,并且基于事件驱动;你可以继续处理其他的事情,而不必等待Redis操作完成;当Redis操作完成时,结果会被发送到一个回调函数或订阅者。

上述描述是spring-boot-starter-data-redis只支持阻塞模式,而不支持基于reactive的响应式编程,但是我通过研究源码及实际操作验证spring-boot-starter-data-redis是支持基于ractive的响应式编程的,并且spring-boot-starter-data-redis和spring-boot-starter-data-redis-reactive两个starter启动器依赖的jar包都是一样的,都依赖了ractor-core,所以个人认为这两个启动器支持的功能都是一样的,没有什么具体的区别。

  • spring-boot-starter-data-redis包依赖
sh 复制代码
|------spring-boot-starter-data-redis
|  |------lettuce-core
|  |  |------netty-common
|  |  |------netty-handler
|  |  |------netty-transport
|  |  |------reactor-core
|  |------spring-boot-starter
|  |------spring-data-redis
  • spring-boot-starter-data-redis-reactive包依赖
sh 复制代码
|------spring-boot-starter-data-redis-reactive
|  |------lettuce-core
|  |------reactor-core
|  |------spring-boot-starter
|  |------spring-data-redis
相关推荐
一条泥憨鱼12 小时前
【Redis | 黑马点评】短信登录功能 源码深度分析
java·redis·后端·session·黑马点评
m0_7520356313 小时前
Redis 数据结构总结
数据结构·数据库·redis
guo_wen_qiang14 小时前
redis持久化
数据库·redis·分布式
我命由我1234515 小时前
LRU 缓存淘汰策略
数据结构·redis·学习·mysql·算法·缓存·学习方法
十年Java程序媛15 小时前
Redis 分布式锁 + GZIP 压缩缓存踩坑|高并发缓存真实线上复盘
java·开发语言·spring boot·redis·分布式·缓存·面试
凤山老林15 小时前
Spring Boot 集成 Redis ZSet 实现实时排行榜、动态排名、同分加权与多维度榜单实战
spring boot·redis·后端
于眠牧北18 小时前
Charles配置指定域名抓取和雷电模拟器中抓取APP接口配置
数据库·redis·缓存
夕除20 小时前
redis--批次处理
redis
行百里er1 天前
Redis 完结篇——Redis 热点问题在 Spring Boot 项目中实战
redis·后端
凤山老林2 天前
Spring Boot 集成 Redis Stream 做可靠消息队列:持久化、消费组重组与流式处理实战
spring boot·redis·后端