System Design Problem

Design a Key-Value Store

Commonly Asked By:AmazonGoogleMetaMicrosoft

  • put(key, value) — Store a key-value pair; overwrite if key exists
  • get(key) → value — Retrieve the value for a given key; return null if not found
  • delete(key) — Remove a key-value pair
  • Support keys up to 256 bytes, values up to 10 KB
  • Support versioning / conflict resolution (optional: last-write-wins or vector clocks)
  • Support TTL-based expiration on keys
  • Support range queries on keys (if ordered store)
Loading...