This question evaluates understanding of disk-backed key–value storage design, including durability, on-disk layout and indexing, caching, concurrency control, and techniques for managing hot-key contention.
Design a key–value store where:
Specify and design for:
Put(key, value)
,
Get(key)
,
Delete(key)
(optionally
CAS/CompareAndSet
).
Put
?).
acquire/release
locking (or alternatives).