← All tutorials

Skill Zuno · skillzunos.com · System Design

Key Value Stores tutorial

Learn Key Value Stores on Skill Zuno. This Key Value Stores tutorial covers New, Easy, Medium, Hard, and Diff levels so you can study practical Key Value Stores problems on skillzunos.com.

Open Key Value Stores on Skill Zuno

Also see the Key Value Stores interview questions.

A key-value store saves data as values looked up by a unique key, which makes reads and writes simple and very fast. Redis, Memcached, DynamoDB and etcd are all key-value stores, used for caches, sessions, configuration and high-scale storage. Designing a distributed key-value store is a classic interview question that combines partitioning, replication, consistency and failure handling.

Key Value Stores topics covered

  • The key-value data model — get, put and delete, and what you give up compared with a relational database.
  • In-memory versus persistent stores — Redis and Memcached versus DynamoDB and RocksDB, and their durability trade-offs.
  • Partitioning with consistent hashing — Spreading keys across nodes and rebalancing as the cluster grows.
  • Replication and quorums — Keeping N copies and tuning read and write quorums R and W.
  • Conflict resolution — Last-write-wins, vector clocks and CRDTs when replicas accept concurrent writes.
  • Storage engines — Log-structured merge trees versus B-trees for write-heavy and read-heavy loads.

What you can learn

  • Key Value Stores tutorial for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • System Design topics alongside Key Value Stores on skillzunos.com

More System Design tutorials

All tutorials