MongoDB low-level design interview
You design and build a small working system in code: classes, interfaces, data structures and how they change when a new requirement arrives. In India, the 90-minute machine coding round (Flipkart, PhonePe, Swiggy, Razorpay) is often the first filter for SDE 2.
MongoDB has no separate low-level design round at any level. Candidates report these object-oriented design problems inside coding rounds and, at senior levels, the design round, so practise them as coding problems: a clean class model, then working code.
| Progress | Problem as candidates report it | Next step |
|---|---|---|
| Concurrent blocking queue (LLD)Covered by the lesson: Producer-consumer and thread pools | Learn it | |
| Concurrent queue whose items expire after a timeout (LLD)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Union iterator that merges K sorted iterators (machine coding)Covered by the lesson: Iterator pattern | Learn it | |
| Binary data parsing (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Rate limiter with fully working code (machine coding)Class diagram, Java code and follow-ups | Start | |
| Heap implemented from scratch (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Multi-level parking lot with size-matched spots (LLD)Class diagram, Java code and follow-ups | Start | |
| Logging library with appenders and level filtering (LLD)Class diagram, Java code and follow-ups | Start | |
| Log parser answering level, time-range and count queries (LLD)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Read-write lock that avoids writer starvation (LLD)Covered by the lesson: Producer-consumer and thread pools | Learn it | |
| Concurrent web crawler that visits each page exactly once (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon |
How MongoDB runs it
- Build five classic systems end to end under a 90-minute timer: parking lot, splitwise, snake and ladder, rate limiter, in-memory key-value store.
- Separate models, services and storage; keep the main method thin.
- Learn when to use strategy, factory and observer patterns, and when not to.
- Handle invalid input explicitly: graders check validation.
The low-level design round, scored by level · New to LLD? Start with OOP, SOLID and the design patterns, then the machine coding problems.
Questions people ask
Does MongoDB have a low-level design or machine coding round?
Not as a fixed round, but candidates report object-oriented design questions: Concurrent blocking queue (LLD); Concurrent queue whose items expire after a timeout (LLD); Union iterator that merges K sorted iterators (machine coding); Binary data parsing (machine coding); Rate limiter with fully working code (machine coding); Heap implemented from scratch (machine coding); Multi-level parking lot with size-matched spots (LLD); Logging library with appenders and level filtering (LLD); Log parser answering level, time-range and count queries (LLD); Read-write lock that avoids writer starvation (LLD); Concurrent web crawler that visits each page exactly once (machine coding).