Redis/Valkey Replication Internals: The Architecture Behind Zero-Copy Command Propagation

How replBufBlock's reference-counted shared memory design enables efficient replication