Case study: design a distributed key-value store
Interview question: design a key-value store that holds a billion keys across dozens of machines, keeps working when machines die, and answers in a few milliseconds. It's the classic test of everything in this unit. Where do you start?
In this lesson you'll learn to
- Turn a vague key-value store question into requirements, numbers and a simple API.
- Partition keys with consistent hashing and replicate each key to several nodes.
- Choose quorum sizes, and resolve conflicting writes with versions.
- Handle failures with hinted handoff, anti-entropy repair and gossip.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.