Cloudflare 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.
Cloudflare 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 |
|---|---|---|
| Rule-based HTTP rate limiter keyed on IP, method, path, user and tenant (machine coding)Class diagram, Java code and follow-ups | Start | |
| Thread-safe ring buffer with unit tests (machine coding)Covered by the lesson: Thread safety: locks and atomics | Learn it | |
| Battleship game (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| LRU cache with layered memory tiers (LLD)Class diagram, Java code and follow-ups | Start | |
| Count requests per domain from a log file (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Basic caching algorithms and eviction (LLD)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Pseudo-API for a construct the team uses often (LLD)Being added: class diagram, Java code and follow-ups | Coming soon | |
| Parse log lines and group messages by level in timestamp order (machine coding)Being added: class diagram, Java code and follow-ups | Coming soon |
How Cloudflare 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 Cloudflare have a low-level design or machine coding round?
Not as a fixed round, but candidates report object-oriented design questions: Rule-based HTTP rate limiter keyed on IP, method, path, user and tenant (machine coding); Thread-safe ring buffer with unit tests (machine coding); Battleship game (machine coding); LRU cache with layered memory tiers (LLD); Count requests per domain from a log file (machine coding); Basic caching algorithms and eviction (LLD); Pseudo-API for a construct the team uses often (LLD); Parse log lines and group messages by level in timestamp order (machine coding).