fivenines

Practice / target 80%

Replication: Full Sync Practice

01

The primary starts snapshotting at `t0`, then accepts `SET a 1` at `t1`. Where must that write appear for the replica to catch up?

intro

Scenario

A replica requested a full sync; the primary forked a snapshot at `t0` and keeps serving writes during the transfer.

02

Why can a replica load a snapshot and still be behind the primary?

intro

Scenario

A replica has finished loading the transferred snapshot, yet the primary's dataset has already moved on.

03

What state should a replica discard or replace when full sync begins?

applied

Scenario

A replica that was previously following a different primary begins a full sync with a new one.

04

Why does asynchronous replication allow lower write latency and possible data loss?

applied

Scenario

You are explaining to an application team what the primary does and does not wait for when acknowledging their writes.

05

Which part of full sync resembles RDB, and which part resembles AOF?

advanced

Scenario

After studying persistence, you notice full sync reuses both of its big ideas in one protocol.