fivenines

Practice / target 80%

Cluster Resharding Practice

01

During migration, why can slot ownership and key location temporarily disagree?

intro

Scenario

A slot is being migrated from node A to node B while clients keep sending commands for keys in that slot.

02

When should a client treat a redirect as `ASK` rather than `MOVED`?

intro

Scenario

Your client library has just received a redirect and must decide how to update its routing state.

03

Why must the source keep a key until the target confirms import?

applied

Scenario

You are implementing the key-transfer step of slot migration between two nodes.

04

What metadata changes when migration finishes?

applied

Scenario

The last key of a migrating slot has just been transferred and acknowledged.

05

How can a stale client still make progress during and after resharding?

advanced

Scenario

A client with a slot map from before the resharding keeps sending commands while slots move.