Microsoft: Distributed LRU cache with constant-time operations and tests
Problem. Design an LRU cache that runs across multiple nodes while keeping get and put at constant time. The round was 75 minutes and mixed high-level and low-level design.
What was asked.
- Walk through the high-level architecture with diagrams first.
- Then go down to the low-level design of the cache itself.
- Write unit tests for it and explain how you would approach it test-first.
- Discuss non-functional requirements: scalability, performance, concurrency and how the design can be extended.
What mattered. The candidate felt the interviewers were looking for efficient code, a design that kept scale in mind, and a genuine testing mindset rather than tests bolted on at the end. This was the third technical round for an SDE2 role in Hyderabad in late 2025; the earlier rounds covered a min-stack style API, a factory-pattern OOP question, array de-duplication and generating valid parentheses. The candidate moved on to the final round about a week later.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.