System Design · Module 01
System design fundamentals
- Lessons
- 14
- Free
- 5
- Reading
- ~4 h
Your progress
0 / 14 lessons done
Sign in to trackLessons
- Introduction to system designFreeA feature can work on your laptop and still fail when customers depend on it. System design helps you decide where work happens, where data lives and what users experience when something goes wrong.
- Request lifecycle: what happens when you open a websiteFreeA slow or broken page can fail before your application receives anything, or after it sends a successful response. Knowing the request path helps you investigate the right component.
- Server concurrency: handling many requests at onceFreeA server can stop serving customers even when its CPU is mostly idle. Understanding where requests wait helps you choose a concurrency model and diagnose the actual limit.
- Latency and throughput: measuring speed and capacityFreeA backend can complete more requests while making customers wait longer. You need both measurements to judge a release, diagnose a slow checkout and choose which work to optimize.
- Functional and non-functional requirementsRequirements guide decisions about refreshing data, handling failures and protecting customer information. Measurable requirements also give developers and product teams a shared way to decide whether a feature works well enough.
- Capacity estimation: users, storage and trafficBefore a launch, you need to know what might run out and what to measure. Capacity estimates connect product activity to resource demand without treating guesses as benchmarks.
- Core system properties: availability, durability, consistencyA successful response is only one part of a backend’s promise. Engineers must also decide what survives a crash and what other requests can observe.
- Design tradeoffs: making and explaining decisionsEngineering decisions rarely improve every property at once. You need to explain what a design protects, what it gives up and when its costs stop being acceptable.
- Vertical and horizontal scaling: when to use eachFreeWhen an application slows down, buying more compute may help, do nothing, or overload another component. You need to connect each scaling change to a measured limit and a user-facing requirement.
- Stateless and stateful services: impact on scalingAdding another app instance can expose hidden dependencies on local memory. You need to find those dependencies before deployments, scaling or failures send customers to a different instance.
- Monoliths and microservices: choosing an architectureArchitecture determines what you must release together and what can fail separately. You encounter this choice when a growing codebase, a slow release or an overloaded feature makes a service split look attractive.
- Cost-aware design: avoiding unnecessary infrastructureEngineers influence bills through capacity, data retention and operational complexity. A useful cost reduction preserves the product’s requirements instead of moving the cost onto customers or the team.
- Design: a URL shortener on a single serverSmall services still need correct concurrency, clear failure behavior and resource limits. A URL shortener lets you practice those decisions without adding a distributed architecture.
- Lab: load testing a single serverA fast response on your laptop does not show how a server behaves under load. This lab helps you separate useful capacity from requests that only spend longer waiting.
Practise with
Terms this module teaches 61
Open glossaryArchitecture decision record
A short record of an important design choice, including its context, alternatives, reasoning and consequences.
Availability
Whether a defined operation can provide its promised service when requested, often measured as the fraction of eligible requests with good outcomes.
Base62
An encoding that represents values using an alphabet of 62 characters, commonly digits and lowercase and uppercase letters.
Blocking I/O
Waiting for data in a way that stops the current thread until the data arrives.
Bottleneck
The resource or component currently limiting useful throughput.
Cache
A store that keeps copies of data it has already fetched, so repeat requests are answered without going back to the source.
Component
A part of a system with a clear responsibility.
Concurrency
Keeping many tasks in progress at the same time by switching between them while they wait.
Consistency
Rules describing the results that reads and writes may produce together, including during concurrent operations.
Context switch
The CPU pausing one thread and resuming another, which costs a small amount of time.
Coupling
A dependency that makes a change in one part of a system affect another part.
Dependency
Another component that a piece of work needs in order to finish.
Design tradeoff
A choice that improves one valued property at the expense of another valued property.
DNS
The internet’s system for turning names, such as example.com, into machine addresses.
Durability
The guarantee that an acknowledged write remains recorded through specified failures.
Error budget
The allowance for bad events implied by a service-level objective.
Event loop
A single worker that runs whichever task is ready and parks tasks that are waiting.
Eventual consistency
A consistency model that permits temporary disagreement between copies but requires them to converge when updates stop and propagation succeeds.
Failover
Switching traffic from a failed component, such as a primary database or a region, to a standby that takes over its work.
Fan-out
One operation starting several downstream operations.
Functional requirement
A statement of behavior the system must provide.
Horizontal scaling
Changing capacity by adding or removing running instances of a workload.
HTTP
An application protocol for exchanging requests and responses about resources.
Latency
The elapsed time for one operation, measured between a stated start and finish.
Latency budget
An allowed elapsed time divided among the work required to complete an operation.
Lightweight thread
A very cheap thread managed by the language runtime, which parks it automatically while it waits.
Linearizability
A consistency model where operations on an object appear indivisible and ordered in a way that respects operations completed before others begin.
Little’s Law
Tasks in progress equal the arrival rate multiplied by the time each task takes.
Load balancer
A machine or program that shares incoming requests among several servers.
Microservices
An architecture that divides an application into independently deployable services organized around business capabilities.
Modular monolith
A monolithic application divided into modules with explicit interfaces and ownership boundaries.
Monolith
An application whose capabilities are packaged and released as one deployable unit.
Non-blocking I/O
Asking for data and continuing other work until the system says the data is ready.
Non-functional requirement
A quality target or constraint that the system must satisfy.
Opportunity cost
The value of work or another benefit you give up when choosing how to use limited resources.
Parallelism
Running several tasks at the exact same moment on different CPU cores.
Partial failure
A situation where one part of a system fails while other parts continue operating.
Percentile
A value marking a chosen position in an ordered distribution. A latency p99 is a threshold at or below which about 99% of observations fall.
Process
A running copy of a program with its own separate memory.
Queue
A waiting line where tasks are held until a worker is free to handle them.
Rendering
The browser work that turns page content and styles into visible pixels.
Reverse proxy
A server that receives requests on behalf of backend servers and forwards them, often also handling TLS, caching or load balancing.
Service-level indicator
A measurement of an aspect of service quality experienced by users.
Service-level objective
A target for a service-level indicator over a defined observation period.
Session affinity
Routing later requests from a client to the same selected app instance, also called sticky routing.
Short code
A compact identifier in a short URL that maps to a saved destination address.
State
Remembered information from past activity that affects later system behavior.
Stateful service
A service whose correct handling of later requests depends on state held by a particular running instance.
Stateless service
A service whose instances can handle requests without needing another instance’s private history; required state can still live in shared storage.
System design
Turning a feature and its constraints into components, data flow and decisions you can explain.
Tail latency
The slower end of a distribution of operation durations, often examined through high percentiles.
TCP
A transport protocol that establishes a connection and delivers an ordered stream of bytes, or reports a connection failure.
Thread
A worker inside a process that runs code and shares the process’s memory with other threads.
Thread pool
A fixed set of reusable threads that take turns handling incoming tasks.
Throughput
The number of operations completed per unit of time.
Timeout
A limit on how long a caller waits for an operation to complete.
TLS
A protocol that authenticates a peer and protects data against reading or modification in transit.
Unit cost
The cost within a stated boundary divided by the useful output delivered during the same period.
Utilization
The fraction of a resource’s available time spent busy.
Vertical scaling
Changing the resources available to one machine or instance, such as its CPU cores or memory.
Write-ahead log
A recovery log that records database changes before the corresponding changed data pages must reach persistent storage.