How it works
After the blueprint is agreed, choose a critical component or bottleneck for closer study. It might be feed generation under heavy reads, short-link identifiers, or chat presence. Requirements, estimates, and feedback determine the target; equal detail across every box wastes time.
Compare plausible approaches using workload and failure behavior. Take the read-heavy feed from the earlier estimate, where fan-out means one event turning into many operations. With fan-out on read, each open assembles the feed on demand: 580 opens per second × 300 followed accounts is about 174,000 lookups per second at peak. With fan-out on write, each new post is copied into every follower’s stored feed in advance, so reads are cheap: 100,000 posts per day × 200 followers each is 20 million inserts per day, about 230 per second. That looks better until an account with 10 million followers posts once and triggers 10 million inserts. These figures are examples. Twitter has publicly described a hybrid that fans out most accounts on write and merges very large accounts at read time.
For each option, explain what improves, what becomes more complex, and what measurement would settle it. If current needs fit a simpler design, its lower operating cost belongs in the decision: at 50 feed opens per second, the on-demand query may be all you need. Stop once the decision is resolved, because further detail rarely changes the outcome.
Estimates show feed reads greatly exceed writes. Which part deserves the next deep dive?
Investigate feed assembly and repeated read work. Compare retrieval and precomputation choices against latency, write cost, storage, and staleness.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Prioritize detail that resolves a requirement or major risk.
- Compare alternatives and operational cost, not just happy-path speed.