84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
请问在Redis中,AOF缓冲区和AOF重写缓冲区的区别是什么?设置AOF重写缓冲区,是为了在Redis在进行AOF重写期间引起的数据不一致问题,但是,所有的写命令都会写到AOF缓冲区和AOF重写缓冲区,这样的话,AOF缓冲区的内容应该是和AOF重写缓冲区的内容是一致的呀,AOF缓冲区也就可以替代AOF重写缓冲区了。
是不是我哪里理解错了,多谢。
业精于勤,荒于嬉;行成于思,毁于随。
See AOF Redis-Design and Implementation for details. I am also reading it. It is very well written.
The reason why the AOF buffer cannot replace the AOF rewrite buffer is that the AOF rewrite buffer records all commands that need to be rewritten since the rewrite started, while the AOF buffer may only record part of the commands.
See AOF Redis-Design and Implementation for details. I am also reading it. It is very well written.
The reason why the AOF buffer cannot replace the AOF rewrite buffer is that the AOF rewrite buffer records all commands that need to be rewritten since the rewrite started, while the AOF buffer may only record part of the commands.