What system design is

Think before you build · Part of Networking and infrastructure

Key idea

Practice

6 questions · about 3 min

Explained step by step

System design

Designing a system is like drawing the plan of a house before laying the first brick. The plan says how many rooms there are, where the pipes run and how the parts connect. In software, the design says which pieces exist (servers, databases), how they talk to each other and where each piece of data lives. A mistake on the plan is fixed by erasing a line; the same mistake in a finished house means breaking walls.

Design decisions are made early, when the system is small. It's like choosing where the foundations go: with an empty lot you move them in a day, with 4 floors on top it's almost impossible. Switching databases with 1,000 rows is copying a file; with 1 billion rows it can take months, and you can't shut the system down meanwhile. That's why it pays to think from a high level before starting.

A system isn't designed only once: it grows, and the design grows with it. It's like a city: with 5,000 people a main street is enough, with 1 million you need avenues and a subway. Having the design written down helps you reason about each change: 'if we go from 1 to 3 servers, where do we keep sessions?'. Without a clear design, every change breaks something nobody knew depended on something else.

Architecture

A system has three things you design. The architecture is the pieces and how they're arranged, like the rooms of a house. The interfaces are the doors: how one piece asks another for something. The data is what goes in the furniture: what's stored, where and in what shape. If you change an interface that 20 pieces use, you have to touch all 20.

A good design looks at everything, from the infrastructure (the machines and the network) down to the data and how it's stored. It's like planning a restaurant: the recipe isn't enough, the kitchen, the waiters and the fridge matter too. If the kitchen makes 100 dishes an hour but 300 orders come in, the recipe saves nothing. In a system, if the server handles 1,000 requests per second but the database only 200, the database slows everything down.

Requirement

A requirement is something the system must do, no matter what, like the list from whoever orders a house: '3 bedrooms and a garage'. If you don't know the family has 2 cars, you build a garage for 1. Software is the same: designing for 100 users is not the same as designing for 100 million. That's why design starts by asking what the system has to do and for how many people.

Terms in this lesson

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.

Key idea

Think before you build