</> MAANG.io
system design · 301

Advanced

Master system design interviews with scalable architecture patterns, distributed systems, and real-world design challenges.

0/480 solved 0% complete

Section 6: Following One Comment Around the World - High-Level Architecture

Executive Summary: This section draws the whole system on one whiteboard: a write path that is an ordinary, durable pipeline, and a delivery path built as a push tree from one owner per video out to 1,000 gateways. We defend each component with the alternative it beat, then follow Maya's comment hop by hop from São Paulo to Tomás's screen in Lisbon against a ~435 ms latency budget. We trace a viewer joining, and sort the design into durable and soft state.

The interviewer slides the marker across: "Draw it." Section 3 already told you where to spend the ink. Writes are 50K comments/s, a normal workload. Deliveries are 150M/s, a 3,000× fan-out. So the board splits in two: a write path that must be durable and boring, and a delivery path that does nearly all the work.

The Whole System on One Whiteboard

The whole system: clients POST through the Edge LB to the home-region Comment Write Service, which checks the Safety Filter and appends to the Comment Log; the log feeds the Store Writer and Comment Store, Async Safety, and a Channel Router to Regional Relay to Gateway push tree that streams back to clients over SSE, with the Social Graph supplying friend lists at connect

Off the diagram sits the Settings Service (slow mode, blocked words, pinned comment, followers-only). The Comment Write Service consults it on every post, and changes reach viewers as settings events through the same pipeline.

Sign in to continue reading

The rest of this lesson is available with a free account. Signing in with Google or Microsoft is free.

Sign in to read the full lesson

Sign in to MAANG.io

Use your Google or Microsoft account — no password to remember.

Continue with Google Continue with Microsoft

Please accept the terms above to continue.