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
Chat
Finalization waits for the deadline, a complete watermark and editorial confirmation; chat remains independently subject to moderation.
State transitions and completion
| Starting point | Condition and effect | Subsequent state |
|---|---|---|
| Voting scheduled | The editorial team opens the poll | Open |
| Open | Server time reaches deadline | Closed, evaluation open |
| Closed, evaluation open | All accepted votes processed up to the watermark | Final Published |
| Chat submitted | Moderation approves | Published |
| Chat submitted | Moderators reject the post | Rejected |
| Published | Moderators remove the post with a recorded reason | Removed |
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.
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?