System Design Atlas

Live sports interaction for large audiences

04 / 10Worked example

Interfaces

Replay remains readable after the deadline. What conditions ensure the result?

A timely vote may lose its response.

Starting point Channels and bounded selections reduce deliveries.

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.

Replay at the end

Replay at the end

V-51 Option AAccepted before the deadline
Identischer Replay → V-51 Option AOriginal delivery
Identical replayEven after the deadline
Option B gleicher Schlüssel → KonfliktFingerprint mismatch
Option B Same keyModified replay
ConflictNo second vote
Neuer Schlüssel nach Frist → GeschlossenServer time ≥ 60,000
New key after the deadlineNew effects
Closedabgelehnt

A new vote after the deadline is rejected; an identical retry reads V-51, and a changed option causes a conflict.

A new vote after the deadline is rejected. An identical retry of an accepted vote returns the original result; changing the option causes a conflict.

Proposed domain contracts

  1. POST/abstimmungen/P-51/stimmen

    Accept a single vote.

    Input
    commandKey=V-51, account=U-51, optionId, authenticatedSession
    Result
    Accepted with serverDecisionAt, or rejected as already voted/closed.
    Retry behaviour
    An identical retry returns the existing vote even after the deadline; another option under the same key causes a conflict.
  2. POST/chatbeitraege/C-51/moderation

    Decide visibility.

    Input
    moderationKey, expectedVersion, action=publish|remove, reason, moderator
    Result
    New visibility version.
    Retry behaviour
    An identical retry has one effect; a stale version causes a conflict, and a later removal remains authoritative.

Replay results remain readable after the deadline.

Replay results remain readable after the deadline.

An identical key returns the original result.

A timely vote may lose its response.

The poll is closed; no effect. Return the existing vote; a different option causes a conflict.

Alternative considered
Rejecting every request after the deadline would conceal a previously accepted vote.
Trade-off
Results must be retained.
Reassess
Storage period is part of the contract.

Try it yourself

Compare new vote and replay after the end.

A hint for your attempt

A timely vote may lose its response.

Compare with a possible solution
New
The poll is closed; no effect.
Replay
Return the existing vote; a different option causes a conflict.

Apply to your project

What is the equivalent of "Replay remains legible after the deadline." in your own project?

Step 5: Final means fully counted. What conditions ensure the result?