Your country

Tools that support it use your country for local currency, number formats, units and paper size. Your choice is saved only in this browser.

Type a name or a two-letter code. Use the up and down arrow keys to move through the countries, Enter to choose one and Escape to close.

System design (HLD, LLD and architecture)

Low-Level Design (Object-Oriented Design)

Low-level design (LLD) for interviews and real projects: object models, UML, SOLID, state, money, testing, concurrency and case studies, with code that runs.

58 lessons to read 14 modules

58 lessons: 11 free, 18 free with Pro answers, 8 with a free core and 21 with a free intro.

Examples run with Python 3.14.8, Pyodide 314.0.7 and Node.js 24.21.0.

Who it is for

Candidates preparing for low-level design and machine-coding interview rounds, and developers moving from scripts to object-oriented code that is easy to change and test.

What you will be able to do

  • Answer a low-level design question with a repeatable method, from requirements to tested code
  • Turn requirements into classes with clear responsibilities, relationships and lifecycles
  • Draw the UML class, sequence and state diagrams that explain a design
  • Apply SOLID and other design principles, and explain the trade-offs between them
  • Model state, time, money and rules so that a new requirement changes one place
  • Test a design with unit, table and property tests, test doubles and seams
  • Make a design safe under concurrency, without deadlocks or double bookings
  • Build and extend case studies such as a parking lot, an LRU cache and expense sharing in a timed round

Before this track

Revise and practise

Modules and lessons

What the labels mean

Free
the whole lesson and every answer in it
Free lesson, Pro answers
the whole lesson is free; the model answers to its interview questions open with a pass
Free core, Pro depth
the core of the lesson is free; its in-depth parts open with a pass
Free intro, Pro
the first part is free; the rest opens with a pass
Pro
opens with a Pro, Premium or Ultimate pass

Minutes are reading time: “11 of 30 min free” means 11 minutes of the lesson are free.

What a pass opens in this track

43 in-depth parts (22 of them case-study deep dives) and 128 interview answers. The same pass opens every other track and every Pro tool.

  1. Module 1

    LLD rounds and a repeatable answer method

    What low-level design rounds test, a repeatable answer method, clarifying requirements, finding entities and responsibilities, and a playbook for machine-coding rounds.

    1. What low-level design (LLD) is and what it tests Beginner Free: 20 minutes
    2. A repeatable framework for LLD answers Beginner Free: 25 minutes
    3. Clarifying requirements and scope Beginner Free: 25 minutes
    4. Finding entities and assigning responsibilities Beginner Free: 25 minutes
    5. The machine-coding round playbook Intermediate Free: 35 minutes
  2. Module 2

    Designing objects for change

    Refactoring a script into an object model step by step, designing domain errors and result types, and choosing the data structures behind each operation.

    1. From a script to an object model Beginner Free: 25 minutes
    2. Designing domain errors and result types Intermediate Free lesson, Pro answers: 30 minutes
    3. Choosing data structures inside a design Intermediate Free lesson, Pro answers: 30 minutes
  3. Module 3

    Class relationships and UML

    Association, aggregation, composition and dependency in UML and in code, and the class, sequence, state, use case and activity diagrams that explain a design.

    1. Class relationships in UML and code Beginner Free lesson, Pro answers: 30 minutes
    2. UML class diagrams that interviewers can read Beginner Free lesson, Pro answers: 25 minutes
    3. Sequence diagrams for key flows Beginner Free lesson, Pro answers: 25 minutes
    4. UML state machine diagrams Intermediate Free lesson, Pro answers: 25 minutes
    5. Use case and activity diagrams Beginner Free lesson, Pro answers: 20 minutes
  4. Module 4

    Design principles: SOLID and beyond

    Coupling, cohesion and information hiding, the five SOLID principles, DRY, KISS and YAGNI, the Law of Demeter, GRASP, and what to do when principles conflict.

    1. Coupling, cohesion and information hiding Intermediate Free: 25 minutes
    2. Single Responsibility Principle (SRP) Intermediate Free: 20 minutes
    3. Open/Closed Principle (OCP) Intermediate Free: 25 minutes
    4. Liskov Substitution Principle (LSP) Intermediate Free: 25 minutes
    5. Interface Segregation Principle (ISP) Intermediate Free lesson, Pro answers: 20 minutes
    6. Dependency Inversion Principle (DIP) Intermediate Free lesson, Pro answers: 25 minutes
    7. DRY, KISS and YAGNI without dogma Beginner Free lesson, Pro answers: 20 minutes
    8. Law of Demeter, tell-don't-ask and CQS Intermediate Free lesson, Pro answers: 20 minutes
    9. GRASP: assigning responsibilities Intermediate Free lesson, Pro answers: 25 minutes
    10. When design principles conflict Advanced Free lesson, Pro answers: 25 minutes
  5. Module 5

    Modelling lifecycles, time, money and rules

    Lifecycles as state machines, clocks and timers that tests can control, money in minor units with rounding and splits, idempotency keys, and business rules kept as data.

    1. Implementing lifecycles: State, tables or enums Intermediate Free lesson, Pro answers: 30 minutes
    2. Designing lifecycles as state machines Intermediate Free core, Pro depth: 11 of 30 minutes free
    3. Time in designs: clocks, time zones and timers Intermediate Free intro, Pro: 7 of 30 minutes free
    4. Money arithmetic: paise, rounding and splits Intermediate Free intro, Pro: 7 of 30 minutes free
    5. IDs, idempotency keys and deduplication Intermediate Free intro, Pro: 5 of 30 minutes free
    6. Rules as configuration: tables and effective dates Intermediate Free intro, Pro: 6 of 30 minutes free
  6. Module 7

    Testing your design

    Unit tests that check a design, test doubles and seams, test-driven development under a time limit, and table, property and contract tests.

    1. Unit tests that check a design Beginner Free lesson, Pro answers: 20 minutes
    2. Test doubles and seams Intermediate Free core, Pro depth: 11 of 30 minutes free
    3. Test-driven development under a timer Intermediate Free intro, Pro: 7 of 30 minutes free
  7. Module 8

    Code quality under time pressure

    The code smells reviewers flag in low-level design answers, and weak answers rewritten into strong ones.

    1. Code smells interviewers flag in LLD answers Intermediate Free lesson, Pro answers: 25 minutes
    2. Weak LLD answers: how to spot and fix them Intermediate Free core, Pro depth: 8 of 30 minutes free
  8. Module 9

    One design, six languages

    One design written in Java 25, Python 3.14, TypeScript, Go, modern C++ and Rust, with the idioms each language uses for objects, interfaces and errors.

    1. LLD in Java 25: records, sealed types, patterns Intermediate Free lesson, Pro answers: 30 minutes
    2. LLD in Python 3.14: dataclasses and protocols Intermediate Free core, Pro depth: 10 of 30 minutes free
    3. LLD in TypeScript with erasable syntax only Intermediate Free intro, Pro: 8 of 30 minutes free
    4. LLD in Go: interfaces, embedding, generics Intermediate Free intro, Pro: 8 of 30 minutes free
    5. LLD in modern C++: ownership and variants Advanced Free intro, Pro: 7 of 30 minutes free
    6. LLD in Rust: traits, enums and ownership Advanced Free intro, Pro: 9 of 30 minutes free
  9. Module 11

    Case studies: everyday machines

    Parking lot, elevator, vending machine, ATM, coffee machine, traffic signal, parcel locker and toll lane designs, each with a model, code, tests and a follow-up change.

    1. Low-level design: parking lot (the model) Intermediate Free: 45 minutes
    2. Low-level design: traffic signal controller Intermediate Free core, Pro depth: 15 of 40 minutes free
  10. Module 13

    Case studies: booking and scheduling

    Movie tickets, hotels, car rental, airline seats, meeting rooms, railway berths with waitlists, and course registration, designed so that nothing is booked twice.

    1. Low-level design: meeting scheduler and calendar Advanced Free intro, Pro: 9 of 40 minutes free
  11. Module 14

    Case studies: money and commerce

    Expense sharing, a wallet with a ledger, a payment gateway, payment mandates, carts and discounts, inventory, auctions, an order book, and food and restaurant ordering.

    1. Low-level design: payment gateway Advanced Free intro, Pro: 9 of 40 minutes free
    2. Low-level design: UPI-style payments and mandates Advanced Free intro, Pro: 10 of 40 minutes free India-specific
    3. Low-level design: shopping cart and discount engine Intermediate Free intro, Pro: 8 of 40 minutes free
    4. Low-level design: food ordering and delivery Advanced Free core, Pro depth: 15 of 40 minutes free
  12. Module 15

    Case studies: platforms and apps

    Library management, a Q&A site, a professional network, a cricket scorecard, playlists, chat, a task board, cab booking, notifications, version control, search and exams.

    1. Low-level design: live cricket scorecard Intermediate Free core, Pro depth: 8 of 20 minutes free
    2. Low-level design: chat application Intermediate Free intro, Pro: 10 of 40 minutes free
    3. Low-level design: task manager and kanban board Beginner Free core, Pro depth: 12 of 35 minutes free
    4. Low-level design: notification service Intermediate Free intro, Pro: 11 of 40 minutes free
    5. Low-level design: mini version control Advanced Free intro, Pro: 10 of 40 minutes free
    6. Low-level design: online exam with negative marking Intermediate Free intro, Pro: 8 of 35 minutes free
  13. Module 16

    Case studies: infrastructure components

    In-process building blocks: LRU and LFU caches, a logging framework, a rate limiter, a pub-sub broker, a key-value store with TTL, a file system, a job scheduler and a connection pool.

    1. Low-level design: key-value store with TTL Intermediate Free intro, Pro: 10 of 35 minutes free
    2. Low-level design: in-memory file system Intermediate Free intro, Pro: 8 of 35 minutes free
  14. Module 17

    Machine-coding and interview practice

    Handling follow-up questions, a timed machine-coding mock worked step by step, and a self-run object-oriented design discussion.

    1. Handling follow-up questions and extensions Intermediate Free lesson, Pro answers: 25 minutes
    2. A timed machine-coding mock, step by step Advanced Free intro, Pro: 6 of 40 minutes free
    3. Self-mock: object-oriented design discussion Intermediate Free intro, Pro: 7 of 30 minutes free

Related tools

Official documentation

More in System design (HLD, LLD and architecture)

Quick answers and tool search

Type to search tools or to get a quick answer, for example 18% of 2500. Use the up and down arrow keys to move through the results, Enter to choose, and Escape to close.