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
A new vote after the deadline is rejected; an identical retry reads V-51, and a changed option causes a conflict.
Proposed domain contracts
- POST
/abstimmungen/P-51/stimmenAccept 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.
- POST
/chatbeitraege/C-51/moderationDecide 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.
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?