Database / ValKey Interview questions
Describe Valkey replication?
Valkey uses a primary-replica (leader-follower) model where one or more replicas maintain a live copy of a primary's dataset, asynchronously, by default.
A replica connects, performs a synchronization using PSYNC, receives either a full RDB transfer or a diskless socket-based transfer, and then keeps applying the stream of write commands the primary forwards from its replication backlog.
Replicas can themselves be chained to sub-replicas, and after a short disconnect a replica can often resume with a partial resynchronization instead of a full resync, as long as its last known offset is still present in the primary's backlog.
More Related questions...