← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
Design and implement a thread-safe in-memory key/value store that will be accessed by thousands of concurrent clients. The service must support get(k), put(k,v), and delete(k) operations and guarantee ACID semantics for every single key. You must ensure that:
Start with a single-node implementation, then explain how you would extend it to a distributed setting where the dataset is partitioned across many nodes while still preserving the same concurrency guarantees per key. You may use any language; pseudo-code is fine. Be prepared to discuss the trade-offs of your locking strategy, the memory overhead of your metadata, and how you would monitor and tune the system under production load.