System Design Atlas

Live sports interaction for large audiences

08 / 10Worked example

Bottlenecks and trade-offs

Backlog needs the right measuring point. What conditions ensure the result?

Feed delivery can be slow even when vote acceptance is fast.

Starting point A unique key on account and poll protects acceptance.

Assumptions for the example case

A fictional audience poll on the best play. Each account can cast at most one immutable vote per poll. Chat has a separate moderation path. All quantities, thresholds and operational objectives of this design are illustrative assumptions.

Acceptance or fanout

Acceptance, aggregation or fanout

Slow vote acceptanceSignal
Stimme langsam → Annahmelatenz messenp95 on Commit
Acceptance LatencyTarget 400 ms
Old intermediateSignal
Zwischenstand alt → Wasserstandsrückstand messenAccepted minus processed
Aggregation backlogTarget maximum 2 s
Missing updatesSignal
Updates fehlen → Empfängerverteilung messenChannel and region
Recipient distributionFanout pathway

The measurement paths separate commit latency, watermark lag and recipient distribution.

Measurement tree separates acceptance latency, aggregation backlog and receiver distribution.

From symptom to targeted action

SignalValidationAction and limit
Voting burst5000/s × 60 sTallying must catch up to the final watermark.
Fanout500,000 connected devices × 100 chat events/sDelivering every unfiltered chat post is unsustainable; channels and bounded selections are required.

Voting burst

Validation
5000/s × 60 s
Action and limit
Tallying must catch up to the final watermark.

Fanout

Validation
500,000 connected devices × 100 chat events/s
Action and limit
Delivering every unfiltered chat post is unsustainable; channels and bounded selections are required.

Measure backlog at the appropriate point.

Measure backlog at the appropriate point.

Measure ingestion, aggregation and fanout separately.

Feed delivery can be slow even when vote acceptance is fast.

Check partition load and processing progress up to the watermark. Bound channels and selected messages; size transport capacity accordingly.

Alternative considered
More API instances do not fix fanout jams.
Trade-off
Additional metrics are needed.
Reassess
Measurements determine the next improvement.

Try it yourself

Select action for aggregation and fanout jams.

A hint for your attempt

Feed delivery can be slow even when vote acceptance is fast.

Compare with a possible solution
Aggregation
Check partition load and processing progress up to the watermark.
Fanout
Bound channels and selected messages; size transport capacity accordingly.

Apply to your project

What is the equivalent of “backlog needs the right measuring point” in your own project?

Step 9: Restoration begins with votes. What conditions ensure the result?