</> 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

Design Top-K System — Section 6: Deep Dive — Ranking & Top-K Computation Pipeline

Subsystem Chosen: Ranking & Top-K computation
Why this matters: This is the core correctness + scalability bottleneck and a common Staff/Principal deep-dive topic.


1. Problem Restatement

Given:

  • A stream of events
  • Aggregated metrics per item
  • A scope (surface, region, category)
  • A time window

We need to:

  • Compute a score per item
  • Maintain a Top-K list
  • Update incrementally
  • Guarantee atomic visibility

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.