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
相关推荐
轻刀快马14 小时前
Redis 架构进阶:全景解析 RDB、AOF 与混合持久化机制
redis
Albert Edison18 小时前
【Redis】Centos7.9 安装 Redis 5 教程
数据库·redis·缓存
Steadfast_GG19 小时前
Redis中的通用命令
redis·缓存
小二·19 小时前
Redis 内存溢出(OOM)排查与恢复实战
数据库·redis·bootstrap
pqk6V6Vep19 小时前
Redis 分布式锁进阶第一篇讲解
数据库·redis·分布式
giaz14n9X19 小时前
Redis 分布式锁进阶第六十一篇
数据库·redis·分布式
JAVA面经实录9171 天前
Redis 知识体系(完整版)
java·redis·nosql数据库·nosql
ManageEngine卓豪1 天前
数据库可观测性:MySQL与Redis监控核心监控指标与全栈运维解决方案
数据库·redis·mysql·数据库性能·数据库监控
真实的菜1 天前
Redis 从入门到精通(十四):Redis 7.x 新特性全解 —— 系列收官之作
数据库·redis·缓存
小小工匠1 天前
Redis - 缓冲区管理:避免溢出引发的“惨案“
redis·性能优化·集群·内存管理·持久化