GOAT EngineerPreparing your learning space…

Practice problems · Topic

Replication problems

Covers leader and follower, multi-leader, quorums, read replicas, replication lag.

Replication problems use copies of the same data to serve more reads or to survive a crash. Each copy runs a little behind its source, a standby that takes over must know what the first store already did, and a copy that was down has to catch up before it takes any calls.

Problems that need replication

  1. Read-Heavy API Design: Practice Problem

    Design the read path for an API that is mostly reads, then run it against spikes and a cold start. Practise cache-aside, read replicas and hot keys.

  2. Ticket Holds That Expire: Practice Problem

    Hold a ticket while the buyer pays and release it when they walk away, without selling one twice while a store is down. Practise atomic claims.

  3. Fan-Out on Write vs Read: Practice

    Copying each post to every follower works until one author has millions. Choose fan-out on write, on read or a mix, then run it against a TV chef.

By GOAT Engineer. Practice problems · Privacy Policy · Contact.