Revision and your one-page cheat sheet

Topic 2 of 3 in Week 8: Mock interviews and revision11 min readIntermediateFree course

Overview

You’ve covered a lot in seven weeks. This lesson helps you consolidate it into something you can carry into an interview: a one-page sheet of numbers and patterns, and a targeted revision plan based on what your mocks revealed. The goal isn’t to know everything; it’s to recall the essentials quickly and reason well with them.

The numbers

A one-page cheat sheet of numbers. Latency: RAM read 100 nanoseconds, SSD random read 100 microseconds, same data-centre round trip 0.5 milliseconds, Redis GET over the network about 1 millisecond, a simple indexed database query 1 to 10 milliseconds, and a cross-continent round trip 100 to 150 milliseconds. Rough capacity per node: web or API server 1 to 10 thousand requests per second, relational database with simple queries 5 to 50 thousand, Redis about 100 thousand, a Kafka broker over 100 thousand messages per second, a WebSocket gateway 50 thousand to a million connections, and a search node 1 to 10 thousand. Conversions: 1 day is about 10 to the 5 seconds, 1 million per day is about 12 per second, 1 billion per day is about 12 thousand per second, and peak is about 2 to 3 times average. Availability: 99.9 percent allows 8.8 hours of downtime a year, 99.99 percent 53 minutes, 99.999 percent 5.3 minutes, and components in series multiply. Sizes: an ID is 8 bytes, a tweet-like post about 1 KB, a photo about 200 KB to 2 MB, a minute of HD video about 50 MB, a minute of audio about 1 MB. Defaults: replicate three times, cache hit rate 80 to 95 percent, read to write ratio 10 to 1 to 100 to 1 for social apps. Capacities vary hugely with hardware and workload, so use them to sanity-check, not to promise.

Write these from memory a few times this week. In interviews, introduce them as assumptions: “Assuming a Redis node handles around 100,000 operations per second…”

Pattern map: problem → building blocks

Problem shape Usual building blocks Key risk to discuss
Read-heavy lookup (URL shortener, profiles) Key-value store, cache, CDN Hot keys, cache invalidation
Feeds and timelines Fan-out queue, per-user feed cache, hybrid push/pull Celebrity fan-out
Real-time messaging WebSocket gateways, connection registry, sequence numbers Ordering, offline delivery
Media upload and streaming Presigned uploads, object storage, async processing, CDN Bandwidth and cost
Search and typeahead Inverted index or trie, offline build, caching Freshness, ranking
Location-based matching Geospatial cells in memory, streaming updates Write volume, double assignment
Booking and inventory Conditional writes, holds with TTL, unique constraints Contention, overselling
Money movement Idempotency, state machine, double-entry ledger, reconciliation Unknown outcomes
Background work and notifications Queues per type and priority, workers, DLQ Retries, duplicates
Huge data stores Consistent hashing, replication, quorums, LSM Consistency vs availability

When you hear a new problem, ask which rows it resembles. Most “new” problems are combinations: “Design Google Docs” is real-time messaging + storage + conflict resolution; “Design a hotel booking system” is booking and inventory + search.

The framework, one more time

Clarify (3 min) → requirements (4) → estimates (3) → API (4) → data model (4) → high-level design (10) → deep dives (12) → trade-offs and wrap-up (5). Have it so well rehearsed that you don’t think about it in the interview.

Revise from your weak areas

Use your mock scores to pick three weak areas, and give each a concrete action:

  • Estimates weak? Do five 5-minute estimation drills on different products.
  • Consistency fuzzy? Re-read consistency models, CAP and quorums, then explain each aloud in two minutes without notes.
  • Deep dives shallow? Pick three case studies and write a one-page deep dive on their hardest part (fan-out, seat holds, payment state).
  • Running out of time? Do two mocks focused only on finishing a complete high-level design by minute 25.
  • Communication? Record a mock and count silences longer than 20 seconds; practise narrating while drawing.

Active recall beats re-reading: close the notes and re-draw a design from memory, then compare.

The last few days

  • Review your cheat sheet and pattern map daily.
  • Re-draw two or three designs you know well, quickly, to stay fluent.
  • Do a final light mock two days before, not the night before.
  • Prepare questions to ask the interviewer about their systems and team.
  • Sleep. A rested brain reasons far better than a crammed one.

Recap

Consolidate the course into a one-page sheet of numbers and a pattern map from problem shapes to building blocks. Revise from your mock scores with specific actions on your three weakest areas, using active recall rather than re-reading. Keep the framework automatic, stay fluent with a few practised designs, and go into interviews rested.

Exercise

Build your own cheat sheet

Create your own one-page cheat sheet from memory first, then check it against the course: (1) ten numbers you'll use in estimates, (2) a 'problem → key building blocks' map for at least eight problem types, (3) the interview framework steps with timings, and (4) your three weakest topics from your mock-interview scores, each with one specific revision action.

Text
1. Numbers:
-

2. Problem → building blocks:
-

3. Framework (with timings):
-

4. Weak topics and actions:
-

Summary

  • Memorise orders of magnitude for latency, capacity, conversions and availability, and use them as stated assumptions.
  • Map problem types to their usual building blocks, so you recognise patterns quickly.
  • Revise from your mock-interview scores: target your weakest areas with specific actions.
  • Re-draw key designs from memory and explain them aloud rather than re-reading notes.
  • Before the interview, review the framework, your cheat sheet and two or three practised designs — then rest.