Summary#
Company engineering blogs are the closest most of us get to working inside a large system without being hired there. But reading them passively ("interesting, they use Kafka") teaches almost nothing. This page gives a repeatable method for turning any production write-up into durable knowledge and into material you can use in a design review or an interview.
The method has four core steps, plus three supporting skills:
- Step 1: document your assumptions before you read. Write down what you expect the traffic, latency, consistency and maintenance needs to be. This turns reading into a test of your own judgement.
- Step 2: study the actual production architecture and redraw it. Draw the read path, the write path and the data model yourself, from the text.
- Step 3: find the overlooked constraints and engineering trade-offs. Look for the limits that forced the design: vendor caps, physics, team size, cost, failure modes.
- Step 4: name what the engineers sacrificed. Every design gives something up. Say what, and why it was acceptable.
- Re-derive the numbers with back-of-the-envelope estimation, to check the post and to calibrate your own sense of scale.
- Recognise the kind of post (architecture overview, migration, post-mortem, launch) and its red flags (survivorship bias, missing baselines, marketing, stale posts).
- Turn the post into an interview story, and file it in a cross-company pattern map so the same idea seen at five companies becomes one strong mental model.
The page ends with a guide to which of the ten featured blog pages in this handbook to read for which topic.
Why It Exists#
Why production write-ups matter. Textbooks and interview guides explain each idea in isolation: what a cache is, how consistent hashing works, why you might use a queue. Production write-ups show what happens when those ideas meet real traffic, real budgets and real teams. They contain four things textbooks rarely have:
- Real numbers. Discord's message cluster grew from 12 Cassandra nodes to 177 before moving to 72 ScyllaDB nodes. Canva stores more than 25 billion media items. Numbers like these calibrate your sense of what "large" means.
- Real constraints. Canva hit a 16 TB storage cap on Amazon RDS and a 2 TB file limit in ext3. Levels.fyi hit the Google Sheets API rate limit. No textbook will tell you these exist, yet they decide designs.
- Real failures. Post-mortems describe exactly how systems break: a retry storm, a config push, a regular expression. Failure modes are the most valuable thing you can learn, and the hardest to learn safely in your own job.
- Real trade-offs with a known outcome. When a company says "we chose X, and here is what it cost us two years later", you get the end of a story that you would otherwise have to live through.
Why a method is needed. Most people read a post once, remember the technology names, and forget the reasoning. The technology names are the least useful part: they change every few years, and they only made sense for that company's constraints. The reasoning transfers. A method forces you to extract it.
Why it matters for interviews. Interviewers at senior and staff level look for judgement that comes from experience: knowing which technology fits, what breaks first, and what a choice will cost. Hello Interview's levelling guidance, for example, describes staff candidates as people who have solved enough real problems to design confidently backed by experience, and who can discuss technologies in practice, not just in theory. You cannot fake years of experience, but carefully studied production posts are borrowed experience: you can say "Discord found that a hot channel overloaded its three replicas and slowed unrelated users; request coalescing collapsed concurrent reads of the same channel into one database query", and that sentence shows you understand the failure, not just the pattern.
Why it matters for real work. In a design review, "Canva tried dual writes and chose ID-only replication instead, because messages could then be reordered and retried safely" is a stronger argument than "I think dual writes are risky". Studied posts give you precedents.
How It Works#
The method is a loop. You start with your own guess, compare it with reality, explain the gap, and file the lesson.
A full pass on a long post takes 60 to 90 minutes. That is slow, and it is meant to be. One post studied this way teaches more than ten posts skimmed.
The steps below use Canva's media migration (from MySQL to DynamoDB, described in Canva's own engineering blog and covered in More Company Architectures) as the running example.
Step 1: Document your assumptions before you read#
What to do. Read only the title and the first paragraph. Then, before reading further, write down what you believe about the system in four areas: traffic, latency, data consistency and maintenance. Write actual numbers or ranges, even if they are rough guesses.
Why it works. Writing assumptions first turns reading into an experiment. If you guessed that a media metadata service needs strong consistency and the post says reads are eventually consistent, you have found a gap in your judgement, and the gap is the lesson. If you skip this step, hindsight makes every design look obvious, and you learn nothing about your own instincts. Psychologists call this hindsight bias: once you know the outcome, you believe you would have predicted it.
The four areas, and the questions under each. The System Design Primer's first interview step, "outline use cases, constraints and assumptions", gives a good base list: who uses the system, how they use it, how many users there are, what the system does, what goes in and what comes out, how much data is handled, how many requests a second arrive, and what the read-to-write ratio is. Grouped into the four areas:
- Traffic. How many users, and how many are active at once? What is the average request rate, and what is the peak? What shape does the peak take: a daily curve, a weekly cycle, a once-a-year event, a sudden viral spike? What is the read-to-write ratio? Is the load spread evenly over keys, or concentrated on a few hot ones?
- Latency. Who is waiting for the response: a human in a browser, a mobile app on a slow network, a batch job, another service? What would they tolerate, at the median and at the 99th percentile? Is the work on the critical path, or can it happen later?
- Data consistency. If two users look at the same data at the same moment, must they see the same thing? How bad is a stale read for this feature: annoying, confusing, or a financial error? Can data be lost if a machine dies? Must operations happen exactly once (payments) or is at-least-once fine (view counts)?
- Maintenance. How big is the team? What can they operate, and what must be managed by a vendor? How often does the schema change? How often do they deploy? What does on-call look like? What is the budget?
A worked example. Before reading Canva's post, given only its title ("from zero to 50 million uploads per day"), a reasonable set of assumptions is:
| Area | Assumption written before reading |
|---|---|
| Traffic | 50 million uploads a day is about 580 a second on average, perhaps 1,500 at peak. Reads of media metadata much higher, maybe 50 to 100 times writes, because every design opened loads many images. |
| Latency | Metadata reads on the editor's critical path, so tens of milliseconds at most. Uploads can take a second or two. |
| Consistency | Owners should see their own uploads at once (read-your-own-writes). Others can see changes a little later. Deleted media must eventually disappear. |
| Maintenance | A large product team that wants to add metadata fields often. Probably a small team owning the media service itself. |
Reading the post then confirms some of these (read-heavy, recent media read most) and reveals what was missing: the hard problem was not request rate at all, but storage size and schema change speed. Schema migrations took up to six weeks, and storage approached a 16 TB cap. That gap, between "I thought throughput" and "it was really operability and storage limits", is the main lesson of the post.
Common mistakes in this step.
- Writing only adjectives. "High traffic, low latency" is not an assumption. "About 600 writes a second, 50,000 reads a second, p99 under 50 ms" is.
- Skipping maintenance. Most engineers think about traffic and forget the team. Yet team size and skills explain more design choices than traffic does. A 30-person broker like Zerodha self-hosts boring technology on purpose; a nonprofit like Khan Academy uses managed services on purpose.
- Assuming one consistency level for the whole system. Real systems mix levels: strong for balances, eventual for feeds. Write the level per feature.
Deep Dive: an assumptions template you can reuseShow
Keep a short template and fill it in for every post. The handbook's suggested version:
| Field | Prompt |
|---|---|
| Users | Total, daily active, peak concurrent |
| Requests | Average and peak per second; reads versus writes |
| Data | Items stored, bytes per item, growth per day, retention |
| Hotness | Is load spread evenly, or does a small set of keys get most of it? |
| Latency | Who waits; median and p99 targets |
| Consistency | Per feature: strong, causal, read-your-own-writes, eventual |
| Durability | What may be lost on a crash, and what never |
| Team | Size, skills, on-call model |
| Budget | Managed services allowed? Hardware owned? |
| Change rate | Deploys per day, schema changes per month |
Score yourself. After reading, mark each field confirmed, wrong or unknown. Track your hit rate across posts. Early on, most people get traffic roughly right and consistency and team constraints wrong. Over twenty posts, the hit rate on the "hard" fields rises noticeably, which is the point of the exercise.
Hotness deserves special attention. Averages hide hot keys. A system with 50,000 reads a second spread over a billion keys is easy; the same rate on one key (a viral post, a celebrity, one Discord channel during a global event) breaks a single partition. Always write a guess about the skew, for example "1 percent of items get 90 percent of reads".
Step 2: Study the actual production architecture and redraw it#
What to do. Read the post fully, then close it and draw the system from memory: the components, how a read flows, how a write flows, and what the data model looks like. Then reopen the post and correct your drawing. Mark anything the post did not say with a question mark.
Why redraw instead of copying the diagram. Many posts include a diagram, but the diagram is a summary the author chose, often simplified for marketing or clarity. Redrawing forces you to notice what is missing: Where does the cache sit? Which component is the source of truth? What happens on a miss? Copying a diagram uses recognition; redrawing uses recall, and recall is what you need in an interview.
Draw three views. Every system can be understood through three drawings:
- High-level design: a box for each component and arrows for each call. Label each arrow with what crosses it (a request, an event, a batch file).
- Sequence flows: one for the main read and one for the main write, showing order and who waits for whom. Sequence diagrams reveal hidden latency (calls in series) and hidden coupling (a write that must reach two stores).
- Data model: the main entities, their keys, and how they are partitioned or indexed. The data model is where the deepest trade-offs live.
What to look for in the data model.
- Keys and partitioning. What is the partition key? Does it spread load evenly? Discord partitions messages by channel and a 10-day time bucket so no partition grows without limit.
- Normalised or embedded. In relational databases, data is split into tables and joined. In document databases (MongoDB, Firestore, CouchDB), related data is often embedded inside one document: a user document might hold the user's posts as a nested list. Embedding removes joins and makes reads fast, but updating one nested item means rewriting or locating it inside a bigger document, and data is duplicated. Document stores shine when records have very different shapes, when the schema changes often, or when data is deeply nested and would need many joins in SQL. When you see a company choose a document model, ask which of those applied. Canva's move of metadata into a JSON column with a service-managed schema was the same idea inside MySQL: give up database-enforced structure to make schema changes cheap.
- Indexes. Which queries does each index serve? A composite index on several columns serves queries that filter by its leading columns, so the order of the columns matters: an index on (owner, created_at) serves "this owner's newest media" but not "all media created today". A covering index contains every column a query needs, so the database never reads the main table. When a post says "we added an index and latency fell tenfold", work out which of these it was.
- Denormalisation. Copies of data kept for fast reads (a precomputed feed, a summary table). Every copy is a consistency problem: who updates it, and how stale can it be?
A worked example: Canva redrawn. After one read of the post, a redraw looks like this.
The redraw immediately raises questions the post may or may not answer: How does "list media by owner" work in DynamoDB (it needs a secondary index)? What happens if the worker reads MySQL while a write is in flight (it simply copies whichever state it sees; the next message fixes it)? Where does the "trashed" status get enforced? Writing these questions down is part of the step.
Common mistakes in this step.
- Drawing only the happy path. Add what happens on a cache miss, a timeout and a retry.
- Forgetting the source of truth. Mark one store per entity as authoritative. Every other copy is a cache or index.
- Ignoring the people. If the post mentions a team boundary, draw it. Conway's law (systems mirror the communication structure of the organisation) means team lines often explain service lines.
Deep Dive: reading a design through its data pathShow
A reliable way to understand any architecture is to follow one byte of user data from creation to deletion.
- Creation. Where does it enter? Which component validates it? Where is it first written durably? Is the write acknowledged before or after replication?
- Propagation. Which other stores receive a copy: caches, search indexes, analytics, other regions? By what mechanism: synchronous dual write, change data capture, an event bus, a batch job? How long until each copy is updated?
- Reads. For each copy, who reads it and how fresh must it be?
- Updates. When the data changes, does every copy change, or are some invalidated and refilled?
- Deletion. How does a delete reach every copy? Many systems handle creation well and deletion badly; tombstones, retention jobs and legal deletion requests are common sources of bugs and cost.
Apply it to Discord's messages. Created through the API, written to the message store with quorum writes (two of three replicas), indexed into Elasticsearch asynchronously for search, read mostly from recent buckets, and deleted as tombstones that compaction removes later. The last step, tombstones, is where Discord's migration got stuck at 99.9999 percent: a few token ranges full of uncompacted tombstones timed out until they were compacted.
The data-path view also shows where consistency is weakest: usually in the asynchronous copies (search, analytics), which is exactly where users notice "I can see the message but search cannot find it".
Step 3: Find the overlooked constraints and engineering trade-offs#
What to do. For each major decision in the post, ask: what limit forced this? Then list the limits the post mentions, and also the ones it does not mention but which must exist.
Why constraints matter more than solutions. A solution only makes sense against the constraint that produced it. "Tumblr put ProxySQL in each data center" is trivia. "Persistent connections across data centers kept dropping, and each reconnect was expensive, so a local proxy held a pool of warm connections to the remote leader" is a lesson you can reuse anywhere a client talks to a distant database.
Where hidden constraints usually come from. Use this checklist; most designs are shaped by two or three of these.
- Vendor and platform limits. Storage caps (16 TB on RDS at the time of Canva's post), API rate limits (Google Sheets for Levels.fyi), per-topic overhead (Kafka cannot hold a topic per user for a billion users), function timeouts (AWS Lambda), cell limits (Sheets' 10 million cells).
- Physics. The speed of light across oceans (about 150 to 250 ms round trip), disk seek times, memory bandwidth. Cloudflare's write-up on Bloom filters is a reminder that memory access patterns can matter more than memory size.
- Skew. Hot keys, celebrity users, viral content, one giant tenant. Averages hide these.
- Team and skills. What the team can operate at 3 a.m. Zerodha runs a broker with about 30 people; that number explains its stack.
- Cost. Managed services trade money for engineering time; owned hardware trades engineering time for money.
- Compliance and data residency. Payment rules, regional laws, audit requirements.
- Failure modes. What happens when a dependency is slow rather than down? Slow is usually worse.
- Legacy. The existing system, data and clients. Migrations are shaped as much by what exists as by what is wanted.
A worked example: uneven reads. Many feed designs read posts from a key-value store like DynamoDB. Key-value stores scale to very high throughput only if load is spread evenly across keys, because underneath they are partitions on real machines. Most posts are read for a few days and then never again, but a post from an account with millions of followers may get a huge burst of reads in its first hours. One partition then receives hundreds of requests a second while thousands of others are idle. That is the overlooked constraint.
- A first fix is a distributed cache in front of the store, keyed by post ID, with a long TTL (posts are rarely edited) and least-recently-used eviction. On an edit, invalidate that post's entry. If N cache hosts each have M memory, the cache holds about N × M worth of posts. But the cache is sharded by post ID, so the shard that owns a viral post faces the same hot-key problem the database did, while other cache hosts sit idle.
- A better fix is a redundant cache: several cache instances that each can serve any post, behind a load balancer, with no coordination between them. A viral post's reads spread across all N instances. The cost: each instance may miss once for the same post, so the database may see N requests instead of 1 for a new viral post. N requests is still tiny compared with millions. And because every instance holds the same popular posts, the cache holds fewer distinct posts in total, which is fine because the backing store can absorb the long tail.
The trade-off is explicit: more throughput for hot keys, less total capacity for cold ones. Spotting that trade-off is the skill this step trains. Discord's hot channel problem was the same shape, and its answer (request coalescing in Rust data services in front of ScyllaDB) is a third fix: reduce the number of reads that reach the database instead of copying data more widely.
Find the constraints the post does not mention. Posts are written after success, so they often skip limits that did not bite. Ask what would break at ten times the current scale. For Hashnode's precomputed feeds, the post explains fan-out on write; the unmentioned constraint is serverless concurrency limits when a popular author publishes. For Zapier's ID-only task queue, the unmentioned constraint is that every task now costs a database read.
Deep Dive: trade-off axes to name explicitlyShow
Most engineering trade-offs sit on a handful of axes. Naming the axis makes the trade-off concrete.
| Axis | One end | Other end | Example |
|---|---|---|---|
| Consistency versus latency | Strong, coordinated | Fast, eventually consistent | WeChat reads from followers but sends strongly consistent reads to the leader |
| Throughput versus capacity | Replicated hot data | Sharded unique data | Redundant post cache |
| Write cost versus read cost | Fan-out on write | Fan-out on read | Hashnode's precomputed feeds |
| Simplicity versus flexibility | Monolith | Microservices | Shopify's modular monolith |
| Freshness versus load | Recompute often | Cache long | Giphy's long CDN lifetimes for immutable GIFs |
| Control versus effort | Self-host | Managed | Zerodha self-hosts; Khan Academy uses App Engine |
| Safety versus speed of change | Staged rollouts | Fast global pushes | Cloudflare's outage write-ups on global config pushes |
| Cost versus headroom | Lean capacity | Pre-scaled capacity | Razorpay pre-scaling before IPL ticket sales |
For any post, pick the two or three axes that matter most and state where the company landed and why. That one paragraph is often the whole lesson.
Step 4: Name what the engineers sacrificed#
What to do. For each key decision, write one sentence of the form: "They gave up X to get Y, which was acceptable because Z." If you cannot find X, you have not understood the decision yet.
Why this step is separate. Step 3 finds the trade-off; step 4 forces you to say which side lost and why that was fine. Posts are often written to celebrate a result, so the sacrifice is buried or missing. The best posts state it openly. Canva's media post, for example, lists what moving to DynamoDB cost: schema changes and backfills now need custom parallel-scan code, ad hoc SQL disappeared (replaced by change data capture into the warehouse), and composite secondary indexes must be built by hand. They add that, today, they would also consider Spanner or CockroachDB. That honesty is what makes the post worth studying.
Common kinds of sacrifice.
- Consistency: accepting stale reads (feeds, search indexes, cross-region data).
- Query flexibility: losing joins and ad hoc SQL when moving to key-value stores.
- Latency for some users: an extra hop on a CDN shield miss; remote writes after a leader move.
- Precision: approximate counts, sampled traces, scheduling jitter (Zapier does not promise exact run times).
- Independence: one deploy for all modules (Shopify).
- Control: dependence on a vendor (Giphy on Fastly, Khan Academy on YouTube).
- Money: idle capacity held for peaks; duplicate infrastructure during migrations.
- Engineering time: building measurement systems that serve no users (Meta's Polaris).
- User experience at the edge: queued buyers in a flash sale; capped group sizes in chat.
Judge whether the sacrifice was right. A sacrifice is acceptable when the users or the business do not notice it, or notice it less than the gain. Ask who bears the cost: the users, the operators, or future engineers. Costs pushed onto future engineers (custom scan code, hand-built indexes) are the easiest to underestimate.
Sacrifice sentences for posts in this handbook (one each):
- Discord gave up strong consistency and simple deletes to get linear scale and steady low latency for messages, acceptable because chat tolerates brief staleness.
- Tumblr gave up a few seconds of write availability per leader move to avoid multi-leader write conflicts, acceptable because reads never stopped.
- Hashnode gave up machine-learned personalisation to get a simple, cheap and explainable feed, acceptable for a developer blogging platform of its size.
- Meta gave up a lot of engineering effort to build Polaris, a system that serves no users, to turn cache staleness into a measured number, acceptable because at its scale even rare staleness affects many people.
- Shopify gave up independent deploys and runtime isolation to avoid the cost of microservices, acceptable because module boundaries gave most of the benefit.
Deep Dive: reading sacrifices that the post does not stateShow
When a post does not state the sacrifice, infer it from three places.
What the old system could do that the new one cannot. If a company moves from Postgres to a key-value store, it lost joins, ad hoc queries and multi-row transactions unless the post says otherwise. If it moves from a monolith to services, it lost in-process calls and single transactions.
What became asynchronous. Any step moved off the request path (into a queue, a stream, a batch) introduces lag. The sacrifice is freshness for whoever reads the downstream copy.
What became someone else's job. Managed services move work to a vendor; their price, limits and outages become yours. Client-side computation (Levels.fyi computing statistics in the browser) moves work to users' devices; slow phones pay.
A check. If the post claims an improvement on every axis at once (faster, cheaper, simpler and more consistent), something is missing. Usually it is cost, team effort, or a narrower scope than the headline suggests.
Re-deriving the numbers with estimation#
What to do. Take every number in the post and check it against the others with quick arithmetic. Convert per-day figures to per-second, multiply counts by sizes, and compare with known hardware limits. See back-of-the-envelope estimation.
Why it matters. Re-deriving numbers does three things. It checks the post: inconsistent numbers suggest a figure is a peak, an average, rounded marketing, or simply wrong. It explains decisions: a number often shows why a limit was hit. And it calibrates you: after a few dozen posts, you know without thinking that 1 billion a day is about 12,000 a second, and that a tuned server holds 1 to 2 million idle connections.
Useful conversions.
- A day has 86,400 seconds; use 100,000 for quick estimates (then a figure per day divided by 100,000 is roughly per second, slightly low).
- Peak is usually 2 to 5 times the daily average for consumer products, and can be 10 to 100 times for flash events.
- 1 million per day ≈ 12 a second; 1 billion per day ≈ 12,000 a second; 1 trillion per day ≈ 12 million a second.
Worked checks on posts in this handbook.
- Giphy: the newsletter reports about 10 billion GIFs a day and a CDN handling about 100,000 requests a second. 10 billion ÷ 86,400 ≈ 116,000 a second on average. So "100,000 requests a second" is roughly the average, not the peak; peaks must be higher. Small inconsistencies like this tell you the numbers are rounded, and that you should quote them as approximate.
- Canva: 25 billion media items. If each metadata row is about 1 KB with indexes, that is about 25 TB, already above the 16 TB RDS storage cap Canva mentioned. The arithmetic explains why storage, not request rate, forced the move. And 50 million uploads a day is only about 580 writes a second, which MySQL handles easily; the problem was never write throughput.
- Tumblr: 21 TB across 60 billion rows is about 350 bytes a row on average, a normal size for social data with indexes, so the figures are plausible together. Spread over 200 servers, that is about 100 GB per server, small enough that moving a leader is mostly a coordination problem, not a data copy problem.
- Meta: a quadrillion (10^15) cache requests a day is about 11.6 billion a second. Even a cache with a 99 percent hit ratio would send over 100 million requests a second to databases, which is why cache consistency at Meta is a measured, engineered property.
- WeChat: 400 million concurrent users at 1 to 2 million connections per server means 200 to 400 connection servers, before redundancy. The number of servers is modest; the hard part is routing between them.
- Discord migration: a migrator peaking at 3.2 million messages a second would copy a trillion messages in about 3.6 days at peak rate. The real run took nine days, consistent with an average rate of about 1.3 million a second if the cluster held around a trillion messages. The numbers are plausible together.
Deep Dive: hardware numbers worth memorising for post checksShow
Rough figures for modern hardware (orders of magnitude, handbook's illustration; exact numbers vary by generation and tuning):
| Resource | Rough figure |
|---|---|
| Memory read of a cache line | about 100 ns |
| SSD random read | about 100 microseconds |
| Round trip within a data center | about 0.5 ms |
| Round trip across a continent | 30 to 80 ms |
| Round trip across an ocean | 150 to 250 ms |
| Redis simple operations on one instance | about 100,000 or more a second |
| Postgres or MySQL simple indexed reads on one large server | tens of thousands a second |
| Idle persistent connections on one tuned server | 1 to 2 million |
| Network card | 10 to 100 Gbps |
| One Netflix Open Connect appliance, as Netflix reported | about 100 Gbps |
How to use them. When a post says "we serve X with Y servers", divide and compare with the table. If each server handles far more than the table suggests, the work per request must be tiny or cached. If far less, ask what the bottleneck was: often a database, a lock or a slow dependency rather than the servers themselves.
Kinds of posts, and what to extract from each#
Not every post is the same kind of document. Recognising the kind tells you which questions to ask and what will usually be missing.
Architecture overviews. "How X works" or "The architecture of Y". They describe a system at a point in time: components, data flow, technologies. Examples: Giphy's CDN, Zapier's task engine, WeChat's three layers.
- Extract: the component diagram, the read and write paths, the data model, and the scale figures.
- Usually missing: why alternatives were rejected, what it costs, and what is painful. Overviews are often written partly for recruiting, so they show the system at its best.
- Ask: what would break first at ten times the scale?
Migration stories. "Moving from A to B" or "How we migrated N rows with zero downtime". These are the most instructive kind, because they show a system under change, which is when hidden constraints surface. Examples: Discord's Cassandra to ScyllaDB, Canva's MySQL to DynamoDB, Tumblr's leader move, Stripe's online migrations.
- Extract: why the old system failed (the constraint), the migration mechanism (dual write, change data capture, ID-only replication, backfill order), the validation method (shadow reads, comparisons), the cutover and rollback plan.
- Usually missing: how long the old and new systems ran in parallel and what that cost; what went wrong in rehearsals.
- Ask: how did they keep the two stores consistent during the overlap, and what was the rollback?
Post-mortems (incident reports). "What happened on date X". Written after an outage, often with a timeline, a root cause and follow-up actions. Cloudflare publishes unusually detailed ones; Stripe, Meta and others also publish them. See incident management and postmortems.
- Extract: the trigger, the contributing causes (there are almost always several), why detection took as long as it did, why recovery took as long as it did, and the fixes.
- Usually missing: organisational causes, such as why a risky change was allowed, which are sometimes softened.
- Ask: which safety mechanism failed or did not exist, and would my system have the same gap? Post-mortems are the highest-value reading per minute, because each one is a failure you do not have to experience.
Launch and scaling-event stories. "How we handled the World Cup", "Launching Threads in days", "Flash sales at Shopify". They cover a known peak or a fast launch.
- Extract: how the peak was predicted, what was pre-scaled, what was shed or degraded, and what broke anyway.
- Usually missing: the cost of over-provisioning.
- Ask: what was the ratio of peak to normal, and how much warning did they have?
Two smaller kinds. Technology deep dives ("Why we built our own X", "How our database engine handles Y") explain internals; extract the algorithm and the problem that justified building it. Culture and process posts (on-call, code review, team structure) explain the maintenance assumptions behind everything else; they are short and easy to skip, but they often explain why a company's architecture looks the way it does.
The state diagram is the shape almost every migration post follows. When reading one, map the post onto these states and note what the company did in each.
Reading red flags#
Engineering blogs are written by people with goals: recruiting, marketing, reputation, internal recognition. That does not make them unreliable, but it does mean you should read them as a careful reviewer would.
Survivorship bias. You only read about designs that worked well enough to write about. The ten teams that tried the same approach and failed did not publish. So "Company X did Y and it worked" is weak evidence that Y works in general.
- Correction: look for the conditions that made it work at X (team size, traffic shape, budget). Seek out post-mortems and "we moved away from Y" posts, which are the opposite evidence.
Missing baselines. "We cut latency by 60 percent" means little without knowing from what, at which percentile, and measured how. A cut from 1,000 ms to 400 ms tells a very different story from one at 10 ms to 4 ms. Averages can improve while the 99th percentile worsens.
- Correction: note which numbers have baselines and percentiles. Treat unanchored improvements as direction, not magnitude. Discord's migration post is a good model: it gives p99 figures before and after (historical fetch from 40 to 125 ms down to 15 ms).
Marketing. Vendor-hosted posts, co-written case studies and launch posts for a product the company sells tend to present one tool as the answer.
- Correction: ask what a neutral engineer would have chosen, and look for the same company describing the same system in a conference talk or paper, which usually includes more caveats.
Stale posts. A post from 2012 describes the system as it was in 2012. Technologies, limits and prices change: the RDS storage cap that hurt Canva has since been raised, and many 2010s posts assume spinning disks or a single region.
- Correction: note the post's date. Check whether the company has written a later post on the same system. For older posts, keep the reasoning and discard the specifics.
Other flags.
- Unstated scale: "massive", "huge", "web scale" without numbers.
- Hindsight narrative: the story reads as a straight line from problem to solution; real projects had dead ends. If none are mentioned, some were left out.
- N of one: a single benchmark run, a single region, a single customer.
- Newsletter or second-hand summaries: useful for discovery, but they may simplify, speculate or mis-state details. Some newsletter posts say outright that they are the author's research and may differ from the real system. Prefer the primary source when it exists, and attribute claims to the summary when it does not.
Deep Dive: the opposite-evidence habitShow
For every technology you learn about from a success story, find one post where a company moved away from it, and read both. The pairs teach more than either alone:
- Cassandra: Discord adopted it for messages after outgrowing MongoDB in its first year, and moved to ScyllaDB in 2022 because of hot partitions, garbage collection pauses and maintenance toil at 177 nodes. The same database was the right choice and later the wrong one, for the same company, as scale and team changed.
- Postgres versus MySQL: Uber's 2016 post on moving from Postgres to MySQL is often quoted; read it alongside Postgres success stories (for example Zerodha's hundreds of billions of rows on Postgres) to see that the decision depended on replication and write-amplification details specific to Uber's workload at the time.
- Microservices: many companies describe splitting a monolith; Shopify describes deliberately keeping one, with modules. Both can be right.
The habit protects you from turning one company's context into a universal rule, which is the most common way that blog reading misleads engineers.
Turning a post into an interview story#
The goal. In an interview you rarely say "I read a blog post". Instead, you use what you learned as evidence at the right moment: when proposing a design, when the interviewer pushes on a weakness, or when discussing a deep dive. A good story is short, specific and ends with the trade-off.
The structure: context, numbers, problem, choice, cost.
- Context: one sentence on the system.
- Numbers: one or two figures that show scale.
- Problem: the constraint that bit.
- Choice: what they did, in one sentence.
- Cost: what they gave up, and why that was fine.
Example (Discord, about 60 seconds spoken). "Discord stores trillions of messages, partitioned by channel and time bucket. By 2022 the Cassandra cluster had grown to 177 nodes, and a single busy channel could overload its three replicas, slowing quorum reads for unrelated users on the same nodes. They put Rust data services in front of the database that coalesce concurrent reads for the same key into one query, then migrated to ScyllaDB on 72 nodes, with historical fetch p99 dropping to about 15 ms. The cost was another service tier to run, and a shared failure if the one coalesced query fails. In our design, the same hot-key risk applies to popular chat rooms, so I'd add coalescing in the message service."
Where stories fit in an interview. See the interview framework.
- Requirements and estimates: a real number from a post anchors your estimate ("chat services hold about a million connections per server").
- High-level design: a precedent justifies an unusual choice ("ID-only queue messages, as Zapier does, so retries are safe").
- Deep dives: this is where stories earn the most. Interviewers ask "what happens when a post goes viral?" or "how would you migrate this?", and a concrete precedent with numbers shows depth.
Match depth to level. Hello Interview's levelling guidance for a news feed problem is a useful model:
- Mid-level candidates are judged mostly on breadth (roughly 80 percent breadth, 20 percent depth): a working high-level design, clear APIs and data model. A story is a bonus, not required; one well-placed precedent helps.
- Senior candidates are expected to move quickly through the high-level design and go deep on at least two deep dives (roughly 60 percent breadth, 40 percent depth), proactively raising issues like fan-out and hot keys. Stories are strong evidence here.
- Staff and above are expected to lead with depth (roughly 40 percent breadth, 60 percent depth), anticipate problems before being asked, and speak from practical experience about how technologies behave. Stories from studied posts, told with their trade-offs, are exactly what this looks like.
Bringing a technology from a post into the interview: vector search as an example. Posts increasingly describe AI-adjacent features (semantic search, recommendations, retrieval for LLMs). If you want to use a vector database because a post did, cover what an interviewer will probe:
- When it applies. Semantic search over documents or code, recommendations ("items similar to what you engaged with"), image or video similarity, retrieval for question-answering over private data (RAG), near-duplicate detection, and some anomaly detection. If the problem is not one of these, a vector database is likely unnecessary complexity.
- The simplest architecture first. Keep the vector index as a separate service: the app sends an embedding, gets back IDs of similar items, then fetches full details from the main database. Hybrid search (keyword plus vector, merged by a ranking function) and two-stage retrieval (vector search for a large candidate set, then a slower reranker) are real patterns, but propose them only if the question needs them.
- Decisions to state. Consistency (search can usually be eventually consistent; a new item may take seconds or minutes to become searchable), update strategy (embed on create, or in hourly batches), and filtering (filter before, after, or during the vector search, which matters when filters are selective).
- Numbers. Embeddings are typically 128 to 1,536 dimensions; at 4 bytes a dimension, a 1,536-dimension vector is about 6 KB, so a million of them is about 6 GB before index overhead, and an HNSW index roughly doubles that. Well-tuned queries take a few milliseconds, recall of 95 percent or more is usual, and an in-memory node can serve tens of thousands of queries a second.
- Gotchas. A vector index is not a source of truth. Changing the embedding model makes old vectors incompatible, so a re-embed or parallel indexes are needed (record which model produced each embedding). New users have no behaviour to embed (cold start). Index builds over tens of millions of vectors can take an hour or more. And vector search finds similar items, not exact matches. If you already run Postgres, start with the pgvector extension. See vector databases.
The same checklist (when it applies, simplest architecture, decisions, numbers, gotchas) works for any technology you borrow from a post.
Deep Dive: building a story bankShow
Keep a small bank of stories, one per common deep-dive theme, each in the five-part structure. A good starting set of ten:
| Theme | Story | Key number |
|---|---|---|
| Hot keys | Discord request coalescing | 177 to 72 nodes; p99 to 15 ms |
| Cache consistency | Meta Polaris | six to ten nines within five minutes |
| CDN origin protection | Giphy shield tier | about 10 billion GIFs a day |
| Feed fan-out | Hashnode precompute for active users | 2.3 million developers |
| Live migration | Canva ID-only replication | 25 billion items |
| Leader move | Tumblr with ProxySQL | 60 billion rows, seconds of read-only time |
| Retries and idempotency | Stripe idempotency keys | one charge per key |
| Load shedding | Netflix prioritised shedding at the gateway | critical traffic kept during overload |
| Flash peaks | Shopify checkout queue and Razorpay pre-scaling | 32 million requests a minute |
| Simple stacks | Zerodha's 30-person team | self-hosted boring technology |
Rehearse each aloud until it takes under a minute. In an interview, you will use two or three at most, but having ten ready means one fits almost any deep dive.
The cross-company pattern map#
Why build one. Reading posts one at a time gives you many separate facts. A pattern map connects them: when the same idea appears at five companies, under five names, with five sets of numbers, it becomes one strong mental model with five supporting examples. That is the difference between remembering "Discord uses request coalescing" and understanding "hot keys are always solved by reducing, spreading or caching reads, and here is when each works".
How to build one. Keep a table with one row per pattern. For each post you study, add the company to every row it illustrates, with one line on how it applied the pattern and what it cost. Over time, the rows show you the range of solutions and the conditions that choose between them.
The handbook's own map, built from the blog pages:
| Pattern | Where it appears | What varies between companies |
|---|---|---|
| Retries with backoff and jitter | AWS Builders' Library, Zapier scheduling, Swiggy's Kafka retry flood | Retry budgets; whether jitter is on retries or on schedules |
| Idempotency keys | Stripe, Shopify, Razorpay, AWS | Key scope and retention; where the check lives |
| Load shedding by priority | Netflix gateway and services, Uber QALM and Cinnamon, AWS | How priority is assigned; static versus adaptive limits |
| Request coalescing and hot keys | Discord data services, Meta live video, Giphy CDN collapsing | Where coalescing happens: service, cache or CDN |
| Cache consistency | Meta memcache leases and Polaris, Uber CacheFront, Netflix EVCache | Measure versus prevent; invalidation path |
| CDN tiers and shielding | Giphy, Cloudflare Tiered Cache, Netflix Open Connect | Who owns the edge; how the upper tier is chosen |
| Live migrations | Discord to ScyllaDB, Canva to DynamoDB, Stripe online migrations, Netflix replay testing, Tumblr leader move | Dual write versus ID-only versus CDC; validation method |
| Change data capture and outbox | Razorpay outbox, Swiggy CDC, Meta Wormhole | Log source; ordering guarantees |
| Cell and shard isolation | AWS shuffle sharding, Shopify shards, Cloudflare Durable Objects | Unit of isolation: tenant, cell, object |
| Static stability | AWS Availability Zones, Netflix active-active | Pre-provisioned headroom versus failover automation |
| Boring technology by choice | Zerodha, Zapier, Shopify monolith, Khan Academy managed services | Self-host versus managed |
| Smart routing around failing dependencies | Razorpay bank routing, Swiggy payment routing, Cloudflare Traffic Manager | Signal used: success rate, latency, ML prediction |
| Real-time push | Discord gateway, Uber RAMEN, WeChat access layer | Protocol; fan-out strategy |
| Safe deploys | AWS automated deployments and rollback safety, Netflix Kayenta canaries, Cloudflare outage lessons | Stage sizes; automatic versus manual rollback |
| Post-mortem culture | Cloudflare, Stripe, Meta, Razorpay RCAs | Depth of contributing-cause analysis |
Which of the ten featured blogs to read for which topic#
The handbook has a deep-dive page for each of ten engineering blogs, plus More Company Architectures for shorter stories. Each lesson on those pages already follows this page's method (assumptions, architecture, overlooked constraints, sacrifice). Use this guide to pick where to start.
| Topic you want to learn | Read first | Then |
|---|---|---|
| Retries, timeouts, load shedding, static stability, safe deploys | AWS Builders' Library | Netflix load shedding lessons |
| API design, idempotency, versioning, rate limiting | Stripe | Razorpay webhooks |
| Payments, ledgers, reconciliation | Stripe ledger and reconciliation | Razorpay routing and outbox |
| Edge networking, CDN, DDoS, anycast, proxies | Cloudflare | More Company Architectures Giphy lesson |
| Post-mortems and failure analysis | Cloudflare outage lessons | Meta 2010 and 2021 outages |
| Microservices resilience, chaos, multi-region active-active | Netflix | AWS Builders' Library |
| Video delivery and encoding | Netflix Open Connect and encoding | video streaming case study |
| Chat storage, WebSockets, voice | Discord | WeChat in More Company Architectures |
| Database migrations at scale | Discord migration lessons | Stripe online migrations; Canva and Tumblr lessons |
| Geospatial, dispatch, ETAs | Uber | Swiggy |
| Data platforms, Kafka, lakes, metrics at scale | Uber | Netflix Keystone; Razorpay streaming |
| Caching at extreme scale, graph stores, storage tiers | Meta | Uber CacheFront |
| Feed ranking and recommendations | Meta News Feed and Explore | Swiggy feed ranking |
| Small teams, boring technology, Postgres at scale | Zerodha | Khan Academy and Levels.fyi lessons |
| Hyperlocal delivery, serviceability, forecasting | Swiggy | food delivery case study |
| Bank downtime, payment peaks, observability in fintech | Razorpay | payment system case study |
| Experimentation platforms | Netflix, Uber XP | Swiggy, Razorpay Splitz |
| ML platforms and GPU clusters | Uber Michelangelo | Meta LLM training; Stripe Railyard |
A note on the wider lists. Several study resources collect blogs and articles beyond these ten. The System Design Primer keeps a long list of company engineering blogs and suggests reading the blogs of the companies you are interviewing with, because interview questions often come from the same domain. The awesome-system-design-resources list highlights a handful of "must-read" articles, including how Discord stores trillions of messages, Netflix's in-video search, Canva's media scaling, Stripe's first ten years of payments APIs, Airbnb avoiding double payments, and real-time messaging at Slack. The first four are covered in the handbook (the Discord, Netflix, More Company Architectures and Stripe pages). For the others, apply this page's method directly: from the titles alone you can write assumptions (a payments correctness story and a real-time fan-out story) before reading.
A study plan#
Study resources that work well share a structure: learn the fundamentals, learn the patterns, then attempt a problem before seeing a worked answer, review, and finally try a harder variant. Hello Interview's course, for example, pairs each pattern (scaling reads, scaling writes, real-time updates, contention, multi-step processes, large blobs, long-running tasks) with a first-attempt problem and a harder follow-up. Apply the same shape to blog reading:
- Learn the pattern from the handbook's concept page (for example scaling reads).
- Attempt first: before reading a post about that pattern, sketch how you would design the company's system. This is step 1 of the method, extended to a full guess.
- Read and redraw the post (step 2).
- Review the gap (steps 3 and 4), and re-derive the numbers.
- Harder variant: read a second post on the same pattern from a different company, and write the condition that chooses between their solutions.
A sustainable pace is two posts a week: one architecture or migration post studied in full, and one post-mortem. Over three months that is about 25 posts, enough to fill a pattern map and a story bank of ten.
When to Use It#
- Preparing for system design interviews, especially at senior and staff level, where real-world judgement is assessed.
- Before a design review, to find precedents for the problem you are solving.
- When joining a new domain (payments, video, maps): study three to five posts from companies in that domain first.
- When choosing a technology: read success and reversal posts for it before committing.
- After an incident in your own system: read post-mortems with similar triggers to find the fixes others needed.
When NOT to Use It#
- When you need a quick answer. The full method takes an hour per post; skimming is fine for discovery, as long as you do not treat skimmed posts as knowledge.
- To copy a design wholesale. The method exists to extract reasoning, not blueprints. A company's technology choice fits its constraints, not yours.
- As a substitute for fundamentals. Posts assume you know what a quorum or a cache-aside pattern is. Learn the concept pages first.
- With posts you cannot date or attribute. Anonymous or undated summaries are too risky to learn specifics from.
How to Implement It#
Make the method a habit with a fixed note template. One note per post, kept in plain text or a notes app:
post: "From zero to 50 million uploads per day, Canva engineering blog, 2022"
kind: migration
assumptions_before:
traffic: "about 600 writes a second, reads 50 to 100 times more"
latency: "metadata reads tens of ms on the editor path"
consistency: "read-your-own-writes for owners, eventual for others"
maintenance: "small service team, frequent schema changes"
reality:
confirmed: [read heavy, recent media hot, eventual reads]
wrong: ["bottleneck was storage and schema change time, not throughput"]
architecture: "MySQL on RDS to DynamoDB via ID-only SQS messages, newest-first backfill"
constraints: ["16 TB RDS cap", "6-week schema migrations", "ext3 2 TB file limit"]
sacrificed: ["ad hoc SQL", "easy backfills", "composite indexes"]
numbers_checked: "25 billion items at about 1 KB is about 25 TB, above the cap"
red_flags: ["older post: RDS limits have since changed"]
patterns: [live-migration, id-only-queue, hot-data-first]
story: "Canva moved 25B media live with ID-only messages; cost was SQL"Steps to start.
- Pick one topic from the guide above and two posts on it.
- Fill the template for the first post, timing yourself; aim for about an hour.
- Fill it for the second post and add both to your pattern map.
- Write one 60-second story and say it aloud.
- Repeat weekly; review your pattern map monthly and merge rows that turned out to be the same idea.
Technology choices.
| Need | Simple choice | When to use something else |
|---|---|---|
| Notes per post | Plain markdown files with the template | A notes app with links when the collection passes about 50 posts |
| Redrawing diagrams | Pen and paper, or Mermaid text diagrams | A whiteboard tool when practising interviews remotely |
| Pattern map | One table in a markdown file | A spreadsheet when you want to sort and filter by pattern |
| Story rehearsal | Saying it aloud with a timer | Mock interviews with a peer |
| Finding posts | The handbook's blog pages and company blog indexes | Conference talks and papers for primary detail |
| Memorising numbers | A one-page cheat sheet | Spaced-repetition flashcards for the twenty numbers you use most |
Trade-offs#
| Choice | Gain | Cost |
|---|---|---|
| Deep study of few posts | Durable reasoning, strong stories | Fewer companies seen |
| Skimming many posts | Breadth of vocabulary | Little transfer; false confidence |
| Writing assumptions first | Exposes your own blind spots | Slower start; feels awkward |
| Redrawing from memory | Recall, ready for interviews | Takes longer than copying a diagram |
| Re-deriving numbers | Catches errors, calibrates scale | Arithmetic time per post |
| Reading primary sources | Accurate details and caveats | Longer, denser, sometimes paywalled or offline |
| Reading summaries | Fast discovery | Simplification and speculation |
| Building a pattern map | Connects ideas across companies | Ongoing upkeep |
Common Pitfalls#
- Collecting technology names. "Uses Kafka, Redis and Cassandra" is not a lesson. The constraint that chose them is.
- Skipping the assumptions step. Without it, every design looks obvious in hindsight.
- Treating one company's choice as a rule. Discord moved off Cassandra; plenty of companies run it happily. Context decides.
- Quoting numbers without units, dates or sources. "Ten nines" without "within five minutes, for TAO, per Meta" is imprecise.
- Ignoring post-mortems. They are the densest source of failure knowledge and the least read.
- Learning only successes. Pair each success story with a reversal or a failure.
- Over-using stories in interviews. One or two precedents, used where they answer the question, beat a stream of name-drops.
- Trusting second-hand summaries for details. Use them to find primary sources, and attribute when no primary exists.
Real-World Examples#
Three posts studied with the full method, in brief.
Discord, Cassandra to ScyllaDB (migration).
- Assumptions before: trillions of messages, mostly reads of recent messages, eventual consistency acceptable, a mid-sized infrastructure team.
- Architecture: API monolith, Rust data services with request coalescing, ScyllaDB on 72 nodes using super-disks, partitioned by channel and time bucket.
- Overlooked constraint: one hot channel slowed quorum reads for unrelated channels on the same replicas; garbage collection pauses and maintenance toil at 177 nodes.
- Sacrificed: another service tier, and shared failure on coalesced queries; earlier, strong consistency and simple deletes.
- Numbers check: a peak of 3.2 million messages a second over nine days is consistent with roughly a trillion messages moved.
Tumblr, moving a MySQL leader (migration, via a newsletter summary).
- Assumptions before: a large MySQL fleet; reads must stay local; writes can pause briefly.
- Architecture: leader-follower, followers in each data center, ProxySQL locally holding warm connections to the remote leader, automation repointing followers and proxies.
- Overlooked constraint: expensive, frequently dropped cross-data-center connections.
- Sacrificed: seconds of write availability per move; remote write latency.
- Red flag noted: second-hand summary; the reason for avoiding multi-leader is the summary's guess.
A Cloudflare outage report (post-mortem). See the Cloudflare page, whose outage lessons each follow this shape: trigger, contributing causes, why detection and recovery took the time they did, and fixes. Studying several shows recurring causes, such as global configuration pushes without staged rollout, and safeguards that failed open or were never exercised.
In the Interview#
Deep Dive: studying one post end to end, timedShow
A realistic 75-minute pass on a long migration post (handbook's suggested timing):
| Minutes | Activity | Output |
|---|---|---|
| 0 to 5 | Read title and introduction only | Kind of post identified |
| 5 to 15 | Write assumptions with numbers | Filled template, top half |
| 15 to 35 | Read the full post once | Highlights of numbers and decisions |
| 35 to 50 | Close the post; redraw HLD, read and write sequences, data model | Three diagrams with question marks |
| 50 to 55 | Reopen and correct the drawings | Gaps marked |
| 55 to 62 | Re-derive the numbers | Two or three consistency checks |
| 62 to 68 | List constraints and sacrifices | Trade-off sentences |
| 68 to 72 | Check red flags | Trust level per claim |
| 72 to 75 | Write the 60-second story and add to the pattern map | Story and map row |
What to do with leftover questions. Every pass leaves a few question marks. Look for a conference talk, a paper or a follow-up post by the same company. If none exists, write your best inference and mark it as such. Over time, the unanswered questions become a list of things to ask engineers at those companies, or to test yourself.
How you know it is working. After about 20 posts, three things change: your assumptions step gets more accurate on consistency and maintenance, you can redraw a system after one reading, and in mock interviews you reach for a precedent without effort when a deep dive starts. Those are the signs that borrowed experience has become judgement.
Key Takeaways#
- Production write-ups are borrowed experience: real numbers, real constraints, real failures and trade-offs with known outcomes.
- Write your assumptions about traffic, latency, consistency and maintenance before reading; the gaps are the lessons.
- Redraw the architecture from memory in three views: high-level design, read and write sequences, and the data model with its keys and indexes.
- For every decision, find the constraint that forced it: vendor limits, physics, skew, team, cost, compliance, failure modes or legacy.
- Name what was sacrificed in one sentence: gave up X to get Y because Z.
- Re-derive every number; inconsistencies reveal peaks, averages and marketing.
- Know the kind of post and its red flags: survivorship bias, missing baselines, marketing, stale posts, second-hand summaries.
- Turn each post into a 60-second story (context, numbers, problem, choice, cost), and file it in a cross-company pattern map.
- Start with the handbook's ten blog pages using the topic guide, two posts a week.