Verifiable requirements
The server time decides the deadline. What conditions ensure the result?
Device clocks may differ.
Starting point The domain processing paths remain independent.
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.
Deadline and uniqueness
Time limit and one-off at the acceptance point
Account barriers and server-side time checks are carried out atomically before exactly one vote commit.
Business requirements (functional)
Further reading
- Rule 1
- At most one vote is accepted per account and poll.
- Rule 2
- Deadline verification is carried out with server-side time and atomically with acceptance.
- Rule 3
- The final result will only be published after full processing of all votes accepted before the deadline; chat removal does not change a vote.
Quality goals (non-functional)
Further reading
- Measurement window
- 95 % of votes must be durably accepted within 400 ms at 5000/s over 60 s; live results may lag the acceptance watermark by at most 2 seconds.
- Open results
- Publishing a final result requires a complete acceptance watermark and a reproducible tally. Rejected and Removed are terminal chat states; published posts remain subject to moderation. Rejected votes are never counted.
Server time determines the deadline.
The check time must be less than 60,000 ms.
Device clocks may differ.
At 59,999 ms, acceptance is allowed if the account has not yet voted. At 60,000 and 60,001 ms, the poll is closed.
- Alternative considered
- An incorrect client clock could allow late votes.
- Trade-off
- Network latency can exclude last attempts.
- Reassess
- The product must make the closing-time display clear.
Try it yourself
Evaluate attempts at 59,999, 60,000 and 60,001 ms.
A hint for your attempt
Device clocks may differ.
Compare with a possible solution
- Before
- At 59,999 ms, acceptance is allowed if the account has not yet voted.
- At or after the boundary
- At 60,000 and 60,001 ms, the poll is closed.
Apply to your project
What is the equivalent of "The server time decides the deadline." in your own project?