Low-Level Design (LLD)
Object-oriented low-level design and machine coding: an approach, UML in Mermaid, design patterns, twelve worked problems with runnable Java, and concurrency in LLD.
LLD is about classes, interfaces, relationships and behavior inside one service. Interviews ask you to design and often code something like a parking lot, an LRU cache or a rate limiter, with clean, extensible object-oriented code. Every Java solution on these pages was compiled and run.
- 01LLD Fundamentals
How to approach low-level design and machine coding: an 8-step method, requirements to classes, UML class, sequence and state diagrams in Mermaid, SOLID and design principles in practice, code quality checklist, and a 60-minute plan.
Beginner - 02Design Patterns
A practical design pattern catalog for LLD interviews: when to use each pattern, a chooser flowchart, and runnable Java for Builder, State, Command, Chain of Responsibility, Template Method, Adapter, Facade, Proxy, Composite and Mediator, plus TypeScript versions.
Beginner to mid - 03Machine Coding 1
Six machine coding problems with requirements, class diagrams and complete runnable Java: Parking Lot, LRU Cache, Elevator, Vending Machine, Tic-Tac-Toe, and a Logger framework.
Mid - 04Machine Coding 2
Six more machine coding problems with complete runnable Java: Movie Ticket Booking with seat holds, Splitwise with debt simplification, an in-memory Pub/Sub broker, pluggable Rate Limiter, ATM with State and Chain of Responsibility, and an in-memory File System.
Mid to senior - 05Concurrency in LLD
Thread safety for low-level design: race conditions, the Java concurrency toolbox, lock granularity, deadlock and lock ordering, producer-consumer, bounded buffers, thread-safe singletons, optimistic CAS, testing concurrent code, and async races in JavaScript. All Java runs.
SeniorTable of Contents1. The Three Problems2. The Java Toolbox3. Lost Updates and Atomic Counters4. Check-Then-Act and Lock Granularity5. Deadlock6. Producer-Consumer7. Thread-Safe Singletons and Safe Publication8. Optimistic Concurrency9. Design Strategies10. Testing Concurrent Code11. JavaScript: Async Races+2 more
Prerequisites: the OOPS notes (pillars, SOLID, UML, five core patterns) and Java basics. For the architecture side of interviews, see HLD.