File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ AOF 重写是一个有歧义的名字,该功能是通过读取数据库中的
606606
607607在执行 BGREWRITEAOF 命令时,Redis 服务器会维护一个 AOF 重写缓冲区,该缓冲区会在子进程创建新 AOF 文件期间,记录服务器执行的所有写命令。当子进程完成创建新 AOF 文件的工作之后,服务器会将重写缓冲区中的所有内容追加到新 AOF 文件的末尾,使得新的 AOF 文件保存的数据库状态与现有的数据库状态一致。最后,服务器用新的 AOF 文件替换旧的 AOF 文件,以此来完成 AOF 文件重写操作。
608608
609- ### bigkey
609+ ### Redis bigkey
610610
611611#### 什么是 bigkey?
612612
@@ -734,6 +734,18 @@ Redis 官网也解释了自己为啥不支持回滚。简单来说就是 Redis
734734- [ issue452: 关于 Redis 事务不满足原子性的问题] ( https://github.com/Snailclimb/JavaGuide/issues/452 ) 。
735735- [ Issue491:关于 redis 没有事务回滚?] ( https://github.com/Snailclimb/JavaGuide/issues/491 )
736736
737+ ### Redis 可以做消息队列么?
738+
739+ Redis 5.0 新增加的一个数据结构 ` Stream ` 可以用来做消息队列,` Stream ` 支持:
740+
741+ - 发布 / 订阅模式
742+ - 按照消费者组进行消费
743+ - 消息持久化( RDB 和 AOF)
744+
745+ 不过,和专业的消息队列相比,还是有很多欠缺的地方比如消息丢失和堆积问题不好解决。
746+
747+ 我们通常建议是不需要使用 Redis 来做消息队列的,你完全可以选择市面上比较成熟的一些消息队列比如 RocketMQ、Kafka。
748+
737749### 缓存穿透
738750
739751#### 什么是缓存穿透?
You can’t perform that action at this time.
0 commit comments