What Is System Design?
Definition
System design
- In plain English
- System design is deciding which parts a piece of software needs and how those parts talk to each other.
- Think of it like
- It is like planning a restaurant by deciding where the kitchen, counter and storeroom go before anyone cooks.
Functional requirement
- In plain English
- A functional requirement describes something the system must do.
- Think of it like
- It is the dish on the menu: "we serve pancakes".
Non-functional requirement
- In plain English
- A non-functional requirement describes how well the system must do it, such as how fast, how reliably or for how many people.
- Think of it like
- It is the promise about the dish: "served hot within ten minutes".
Application server
- In plain English
- An application server runs the software that handles requests and coordinates the work needed to answer them.
- Think of it like
- It is like a restaurant manager who coordinates staff to fulfill an order.
Database
- In plain English
- A database is an organised store of information that software can read and update.
- Think of it like
- It is like a clinic’s filing cabinet with a system for finding each record.
Why it exists
Your app works for 10 friends on one laptop. At 100,000 users, it slows down, stops responding, or loses data. Planning the parts and connections helps you prevent expensive failures.
| Zoom level | What you decide |
|---|---|
| High-level design (HLD) | Which services and data stores exist, and how they connect. |
| Low-level design (LLD) | The types, functions and relationships inside one part. |
How it works
- Clarify requirements
Write what users need and how well each action must work.
- Estimate scale
Count users, requests and stored data, including busy periods.
- Sketch the big parts
Give each part a responsibility and show where information lives.
- Choose communication
Decide which part asks another part for work.
- Hunt for weak spots
Ask what happens when a part is slow or unavailable.
A user connects to an app server, which connects to a database.
| Functional: what | Non-functional: how well |
|---|---|
| Create a booking | Confirm within one second |
| Cancel a booking | Do not lose confirmed bookings |
| List available times | Serve 5,000 simultaneous visitors |
Examples
Book a vet appointment
You need appointment booking, cancellation and day-before text reminders for a vet clinic.
List the actions: book, cancel and send day-before reminders. Set limits: pages load under one second, appointments never overlap, and service works during 99.9% of clinic hours.
A pet owner's phone connects to the booking service. The service connects to the calendar database and SMS provider.
The insight
Write both lists before drawing anything.
Keep a lift gate working offline
A lift gate must scan a pass and open within 200 milliseconds, even when mountain-top internet drops.
Cache
- In plain English
- A cache is a saved copy of information kept nearby for faster access.
- Think of it like
- It is like keeping a frequently used recipe on the counter.
The gate has 200 milliseconds to decide, even without internet. Save valid passes at the gate. Update them when connected, and set a time limit for using old copies.
The gate scanner checks its local pass cache. The cache syncs with the central pass server when online.
The insight
One non-functional requirement can change the whole architecture.
Handle the school-run rush
Parents need to see the school bus on a map during the morning rush.
You must show the bus location, but that feature alone says little about capacity. A position must be no older than 30 seconds. At 7:45 am, 5,000 parents open the map together.
Plan for this short morning peak, rather than dividing daily visits evenly across 24 hours.
The insight
*when* load arrives matters as much as how much.
Trade-offs
Pros
- Avoid costly rewrites.
- Give the team shared vocabulary.
- Find capacity limits early.
Cons
- Delay shipping while investigating.
- Risk planning for scale you never reach.
Use when
- Money or safety depends on correct behavior.
- The product will live long enough to evolve.
Avoid when
- A disposable weekend prototype.
- Requirements are too uncertain for detailed planning.
Quick check
Takeaways
- System design = the parts plus how they talk.
- Functional = what it does; non-functional = how well.
- Speed and reliability requirements often decide how you arrange the parts.