4 Comments
User's avatar
Ashwani Yadav's avatar

Also I believe for RDB file creation when Redis' main process forks a new child process it uses Copy-on-write (CoW) technique to share cache data by referencing it through pointers instead of creating a new copy of existing data, which minimises memory footprint and decreases the snapshot creation latency.

Expand full comment
Animesh Gaitonde's avatar

Yes, that's correct. That's the correct understanding. Infact, this is one of the disadvantages of Snapshotting especially in high-write scenarios where memory is constrained. It eventually impacts the performance.

Expand full comment
Ashwani Yadav's avatar

great read. awesome article!!

Expand full comment
Animesh Gaitonde's avatar

Thanks Ashwani

Expand full comment