System Design Atlas

Live sports interaction for large audiences

05 / 10Worked example

Data and states

Final means completely counted. What conditions ensure the result?

Aggregation may lag behind acceptance.

Starting point An identical key returns the original result.

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.

Voting and chat cycles

Voting and chat cycles separately

Poll

OpenAccepting votes
Offen → Auswertung offenTime limit reached
Evaluation openWatermark + editorial team
Auswertung offen → Final veröffentlichtAll three checks
Final Publishedterminal

Chat

SubmittedC-51
Chat eingereicht → Chat veröffentlichtModeration approves
PublishedVisible
Chat veröffentlicht → Chat entferntReasoned removal
RemovedVote unchanged
Chat eingereicht → Chat abgelehntModerators reject the post
Rejectedterminal

Finalization waits for the deadline, a complete watermark and editorial confirmation; chat remains independently subject to moderation.

Poll: Open → Tallying pending → Final; chat: Submitted → Published or Rejected; Published → Removed.

State transitions and completion

Starting pointCondition and effectSubsequent state
Voting scheduledThe editorial team opens the pollOpen
OpenServer time reaches deadlineClosed, evaluation open
Closed, evaluation openAll accepted votes processed up to the watermarkFinal Published
Chat submittedModeration approvesPublished
Chat submittedModerators reject the postRejected
PublishedModerators remove the post with a recorded reasonRemoved

Voting scheduled

Condition and effect
The editorial team opens the poll
Subsequent state
Open

Open

Condition and effect
Server time reaches deadline
Subsequent state
Closed, evaluation open

Closed, evaluation open

Condition and effect
All accepted votes processed up to the watermark
Subsequent state
Final Published

Chat submitted

Condition and effect
Moderation approves
Subsequent state
Published

Chat submitted

Condition and effect
Moderators reject the post
Subsequent state
Rejected

Published

Condition and effect
Moderators remove the post with a recorded reason
Subsequent state
Removed

A final result means every accepted vote has been counted.

A final result means every accepted vote has been counted.

The final tally binds a complete watermark.

Aggregation may lag behind acceptance.

With 299,999 of 300,000 votes processed, tallying remains pending. After the last vote is processed, the tally is 300,000 and the final result is published.

Alternative considered
Finalizing on the timer alone can omit accepted votes.
Trade-off
The final result appears later.
Reassess
The measured backlog determines the required capacity.

Try it yourself

Model closing the poll with one vote still unprocessed.

A hint for your attempt

Aggregation may lag behind acceptance.

Compare with a possible solution
Open
With 299,999 of 300,000 votes processed, tallying remains pending.
Final
After the last vote is processed, the tally is 300,000 and the final result is published.

Apply to your project

Which equivalent has “Final means Completely Counted.” in your own project?

Step 6: Chat scales independently of votes. What conditions ensure the result?