Scale and contention
How do the total rate of change and load of a single common document differ?
The requirements are tested under a concrete, fictitious scale: 500 active devices with 2 changes/s. Mean, peak and contention are considered separately.
Starting point Define a deterministic merge rule.
Assumptions for the example case
Our own fictitious example design: A text document with a character sequence and comments; several devices per person; deterministic merging; server-side checked permissions during synchronization. Figures and quality goals are illustrative test assumptions. Outside are table formulas, encrypted end-to-end cooperation and automatic content conflict resolution.
Throughput and the contended resource
Device Rate, Document Hotspot and Fan-out
1,000 changes/s load the acceptance path; 100/s in the same document load merging and distribution.
Reproducible test profile calculations
- 01
Average load
500 active devices with 2 changes/s500 × 2 = 1000 changes/s
For the designThe rate describes the assumed total volume; response time still requires measurement.
- 02
Peak test
50 people in a document × 2 = 100 changes/s as a hotspot1,000 × 200 bytes = 200,000 bytes/s payload before metadata and fan-out
For the designThe additional quantity calculation defines a separate check of resource or retention needs.
Test concurrency separately
- Test oracle
- O-91 and O-92 in both delivery sequences and with duplicates: all confirmed replicas show AXYB. Withdrawal of rights before acceptance rejects the new change; acceptance before withdrawal remains historically confirmed.
Measure fanout
Test document hotspots separately from overall load.
50 people share the same document.
100 changes/s can reach many recipients.
- Alternative considered
- Overall rate alone underestimates distribution.
- Trade-off
- Hotspots need their own measured values.
- Reassess
- Large events exceed 50 editors.
Terms in this step
- Measure fanout
- 100 changes/s can reach many recipients.
Try it yourself
Calculate total rate and document hotspot for the assumptions of the case.
A hint for your attempt
Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.
Compare with a possible solution
- First part of the solution
- 500 devices times two changes/s result in 1,000 changes/s in total.
- Second part of the solution
- 50 people times two make 100 changes/s in a document. Distribution to many receivers must be measured in addition to the acceptance throughput.
Apply to your project
Which corresponding assumption in your project would you check first? Use as an occasion: large events exceed 50 editors.