Critical flow
Who wins at user submission exactly at 5,400 seconds?
Three sequences show the critical version decisions.
Starting point Use the different comparison operators.
Assumptions for the example case
Illustrative design: 50,000 attempts per day, 10,000 simultaneous starts, a 90-minute duration, autosave every 10 seconds and a peak of 1,000 answer writes/s. This gives at most 540 save opportunities per attempt open for the full duration; actual writes depend on changes and batching.
Participant sequences
Expected outcomes
- receivedAt ≤ closesAt
- User submission can generate E-17.
- observedAt > closesAt
- Worker concludes a still open attempt.
- Extension wins
- The worker holding the old state receives version_conflict.
Terms in this step
- Boundary case
- The value exactly at the deadline has an explicitly defined outcome.
Try it yourself
Work through the participant and worker actions using the same version.
A hint for your attempt
The worker may act only after the deadline.
Compare with a possible solution
- At the deadline
- User submission is permitted.
- After the deadline
- The first valid completion protected by a version check wins.
Apply to your project
Define a boundary case for an extension.