Skip to content
playdsa
Preferences

Make yourself comfortable.

Saved on this browser. Your device’s reduced-motion preference is always respected.

Theme
Advanced settings

Replica Compass

Learn
Play
Prove
Problem context and objectives
Mission briefing

Lead systems engineer · Replica Compass

Design a globally replicated key-value service. Some keys are user preferences, while others represent uniqueness claims such as usernames.

The design must survive regions 5 and reads 1M/s. Every box must earn its place by satisfying a requirement or containing a failure.

How you win

  1. 1Trace one user action from request to durable outcome
  2. 2Connect every component to a stated requirement
  3. 3Explain the losing tradeoff, not only the chosen technology

Rules and pressure

  • regions: 5
  • reads: 1M/s
  • Low-latency reads
  • Explicit conflict policy

New words in this mission

Open a term for a plain-language explanation.
latency+

The waiting time from starting an action until its result is available. Lower latency makes interactions feel more immediate.

consistency+

The promise about when different readers see the same state. Stronger promises simplify reasoning but can cost latency or availability.

Lesson 1 of 3

Live architecture trace

Replica Compass: request to outcome

1/4
◉Regional clientclient◇Global routeredge⬡Regional serviceserviceDBConsensus sharddataDBAsync replicasdata
LIVE EVENTrequest

Regional client sends “request” to Global router. Consistency is a product invariant decision, not one universal database toggle.

regions = 5

Design a globally replicated key-value service. Some keys are user preferences, while others represent uniqueness claims such as usernames. Follow one real user action through the complete architecture; a component is useful only when you can explain the request, state, or failure it handles.

Help shape PlayDSA

Something confusing, broken, or missing? Leave a quick note without leaving your lesson.

Please leave out passwords, payment details and other private information.

Page included: /

Sign in to save feedback here, or send it with your email app. Your draft stays here while you sign in.

Open email instead