System Design
Designing a software system means deciding which parts it needs, how they work together, and how the system should behave when traffic spikes or a part fails.
Also known as: систем-дизайн, проектирование систем
What system design covers
System design turns a product goal into decisions about how software will run. For a ticketing app, that means more than drawing a box labeled “database.” You need to decide where reservations live, when a booking counts as confirmed, and what a customer sees if someone else takes the last seat. A useful design explains why those choices fit the requirements and where they might stop working.
From requirements to a first design
Start with the critical user journey. What must the first version support, and what can wait? Separate features, such as selecting a seat or canceling a reservation, from operational targets, such as how quickly the seat map should load during a sale.
Estimate peak traffic and distinguish reads from writes. A thousand people refreshing a seat map puts different pressure on the system than a thousand people attempting to reserve seats. Make estimates only as detailed as the decisions they inform: if an estimate cannot distinguish between two designs, more decimal places will not help.
Sketch the simplest design that meets the requirements. Define the API and data model, then trace a request from the client to storage and back. Ask where latency can build up, which calls can fail, and what happens if the client retries after a timeout. Tie improvements to those findings rather than adding infrastructure by default.
Worked example: selling the last seat
A single application backed by a relational database is a reasonable starting point. Suppose each reservation is stored as a row. A database uniqueness constraint on the show and seat for active reservations prevents two conflicting bookings from being committed. Checking availability in application code before inserting the row is not enough: two requests can both see the seat as free before either makes a write.
Browsing and booking have different requirements. If browsing traffic overloads the database, a short-lived cache can serve the seat map, provided the product can tolerate slightly stale results. A customer might click a seat that has just sold, so the booking endpoint must still let the database decide whether the reservation succeeds. The cache makes browsing faster; it does not decide who gets the seat.
Where it matters in practice
Design work also happens after launch. A team might find that a popular query lacks an index, or that slow confirmation emails are holding up checkout. In the second case, moving email delivery to a background worker can shorten the request, but the team must decide how to retry failed deliveries. Every new component adds something to operate, and splitting an application into microservices does not fix a slow query by itself.
What interviewers look for
In an open-ended design round, agree on the scope and state your assumptions before drawing. Walk through one core operation in enough detail to show where data is read, written, and acknowledged. Then explain what would make you change the design: a measured bottleneck, a stricter availability target, or a failure the current version cannot handle. Naming tools is less informative than explaining what problem each tool solves and what it costs.