SystemTutor
About
Sign in
Loading course documentation…
SystemTutor

COURSES

  • Data Structures & Algorithms
  • CSS MasterclassNew course
  • System DesignNew course

PRACTICE

  • Algorithm practice
  • CSS practice

LEGAL

  • Privacy Policy
  • Terms of Service
  • About

© 2026 SystemTutor. All rights reserved.

Built with 🫶 by Shatlyk

System design
Application FoundationsScaling and Traffic DistributionObservability and OperationsThe System Design Mindset From deployment to a profile request
Application architecture

The System Design Mindset

Reason about requirements, reliability, latency, throughput, and trade-offs.

Lesson goal

Turn a user action into concrete requirements for availability, throughput, and latency, then explain one trade-off between them.

Before you begin — Observability and Operations.

A user uploads a profile photo. The team wants uploads to be “fast and reliable.” To turn that request into a design, first trace what happens to the photo. Then decide what success looks like from the user's point of view.

Follow the photo

The application moves the uploaded bytes to a worker, which transforms the image into the size the profile page needs. The system stores the finished image in object storage and its location in the database. When the profile page loads, it can use that location to fetch the image.

An uploaded photo goes through a worker. The transformed image goes to object storage and its URL goes to the database.

Two different operations are visible to the user. Uploading a photo creates new data. Opening a profile retrieves an existing photo. An outage in the transformation worker can delay new photos while already stored photos remain available. Set requirements for each user operation separately.

Choose an availability measure

Availability measures how often the service is usable under a definition you choose. For a time-based measure, divide usable time by total time in the measurement window. For a request-based measure, divide successful eligible requests by all eligible requests. A failed minute counts equally at every traffic level in the first measure. In the second, the effect depends on how many requests failed.

For a time-based target over a 365-day year, the allowed downtime is the fraction of the year outside the target. At 99.9% availability, that is 0.001 × 365 × 24 hours, or 8.76 hours.

Availability targetAllowed downtime in 365 days
99% (two nines)3.65 days
99.9% (three nines)8.76 hours
99.99% (four nines)52.56 minutes
99.999% (five nines)About 5.26 minutes

Real services can report separate histories for different operations. In this example, Git operations and API requests have their own 90-day histories. A single percentage for the whole product would hide those differences. GitHub Status

GitHub’s status page shows separate 90-day uptime histories for Git operations, webhooks, API requests, issues, pull requests, and Actions.

A service level objective (SLO) specifies a target and window, such as serving 99.9% of eligible profile reads successfully over 30 days. A service level agreement (SLA) records a commitment to customers, including any agreed consequences for missing it. An engineering team can measure its own SLO without making a contractual commitment. Google SRE on service level objectives

Separate correctness, capacity, and speed

Reliability concerns whether the system keeps doing the right thing. Returning another user's photo quickly would still be a failure. Fault tolerance is the ability to continue providing a specified service after a fault. An additional worker provides redundancy. For that redundancy to help, work must reach the surviving worker and it must have enough capacity.

Throughput counts completed work per unit of time, such as photos per second. Latency measures elapsed time for one operation, such as the time from upload until the resized photo is ready. Decide where each timer starts and stops before comparing measurements.

Fault tolerance keeps a service operating through failures. Redundancy provides spare capacity. Throughput counts work per interval and latency measures time per operation.

Check your understanding

Suppose one worker resizes a photo in 200 ms, processes one photo at a time, and always has another photo waiting. A second identical worker can resize another photo independently. What happens to throughput and latency?

Compare your reasoning

One worker finishes about five photos per second. Together the two can finish about ten per second under these assumptions. Each resize still takes 200 ms. A user can see a faster result if their photo spends less time waiting for a worker. Measure the wait and the resize separately to see which changed.

Key Takeaways

  • Trace where data moves, changes, and persists so each requirement names a user-visible operation.
  • Define availability using a success criterion, a denominator, and a window. An SLO sets a target and an SLA records a customer commitment.
  • Throughput measures completed work per interval. Latency measures time for one operation, including any waiting inside the chosen boundary.

Take the quiz · From deployment to a profile request

How is this lesson?

Previous lessonObservability and OperationsNext lesson From deployment to a profile request
Edit on GitHubReport on GitHub
On this page
%

On this page

Follow the photoChoose an availability measureSeparate correctness, capacity, and speedCheck your understandingKey Takeaways