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
相关推荐
2401_837088508 小时前
解释 StringRedisTemplate 类和对象的作用与关系
redis
陈果然DeepVersion9 小时前
Java大厂面试真题:从Spring Boot到AI微服务的三轮技术拷问(一)
java·spring boot·redis·微服务·kafka·面试题·oauth2
li37149089011 小时前
k8s中应用容器随redis集群自动重启
redis·容器·kubernetes
那我掉的头发算什么11 小时前
【javaEE】多线程--认识线程、多线程
java·jvm·redis·性能优化·java-ee·intellij-idea
爬山算法16 小时前
Redis(115)Redis的性能优化有哪些方法?
数据库·redis·性能优化
拾忆,想起17 小时前
10分钟通关OSI七层模型:从光纤到APP的奇幻之旅
java·redis·网络协议·网络安全·缓存·哈希算法
喝养乐多长不高18 小时前
深入探讨redis:分布式锁
数据库·redis·分布式
Fency咖啡18 小时前
Redis进阶 - 数据结构底层机制
数据结构·数据库·redis
gggg远18 小时前
Redis 高级篇(未完结1/3)
数据库·redis·缓存
hzk的学习笔记18 小时前
Redis分布式锁的最佳实践:基于Redisson的实现方案
数据库·redis·分布式·缓存