Scale estimates
Why do 540 autosave opportunities not guarantee that many writes?
An autosave opportunity produces a write only when needed.
Starting point Check unchanged answers and bundling.
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.
Load model
Calculations
- 01
Attempts
0.579/s50,000 ÷ 86,400
For the designThe daily average does not represent the load of a scheduled exam session.
- 02
Autosave opportunities
540 per attempt5,400 s ÷ 10 s
For the designOnly changes should create a write.
- 03
Peak write rate
1000/sPredefined test assumption
For the designMeasure conflict and latency separately.
Terms in this step
- Opportunity
- Possible trigger, the actual effect of which depends on changes.
Try it yourself
Calculate 540 opportunities for 10,000 attempts.
A hint for your attempt
This is an upper limit before change filtering.
Compare with a possible solution
- Opportunities
- 5,400,000.
- Writes
- The number of writes must be measured or estimated with additional assumptions.
Apply to your project
Define a change rate as a new assumption.