PPractick

System design interview question

Design an in-memory database

Medium · System design (HLD) · Company tags: OpenAI

The prompt

"Design an in-memory database — something like Redis. It holds data in RAM for microsecond access, supports rich data structures beyond plain key-value, and must not lose data when the process restarts. Hundreds of gigabytes, millions of operations per second."

What this round really tests

the durability paradox — an in-memory store's whole value is avoiding disk, yet it must survive restarts, so you have to touch disk in a way that does not undo the benefit. Secondary content: why single-threaded execution is often the right choice, memory management, and what happens when RAM fills.

Clarifying questions worth asking

Practise questions like this with a real engineer

On Practick another engineer interviews you live for 60 minutes on a question from this bank. They have the full interviewer guide beside the call: the answers to your clarifying questions, the numbers to hand out, a ladder of follow-ups and a scoring rubric. You get the model solution once the session settles. It is free: interview someone for an hour and you have earned your own.

Book a free mock interview

Related questions

All 132 system design interview questions

System design mock interviews · DSA interview questions · Free mock interview practice · Browse interviewers · Sign in