Problem Statement
During online resharding, which step protects correctness the most?
Explanation
Dual write keeps both locations consistent during cutover. You can compare read results and switch the router after parity checks.
Backfills handle historical data. Once confidence is high, stop writing to the old shard and decommission.
Code Solution
SolutionRead Only
router: write→old+new; read→old until parity flag flips
