Scale estimates
Which loads do the average, test peak and hotspot describe for a post?
The guarantee for post B-31 is tested at an explicitly assumed scale. 86400 events are spread over 24 operating hours. A test peak of 50 events per second and a hotspot consisting of one post for 100000 followers test different properties from the average.
Starting point Enforce blocks on every delivery.
Assumptions for the example case
A fictional example design for a local community with text posts, a chronological home feed and traceable moderation. A feed projection with lag below 30 seconds is within the assumed target; from 30 seconds, the backlog is displayed and reported. All figures and test targets are illustrative assumptions.
Baseline load, peak load and domain hotspot
Separate load from fanout size
Daily volume and peak test capacity; reference count and byte volume test fanout.
Reproducible test profile calculations
- 01
Average event rate
1 event/s86400 ÷ (24 × 3600 seconds)
For the designBase load for feed distribution; long business waiting times are not included.
- 02
Assumed test peak
50 events/s50 × 900 seconds = 45000 events in the 15-minute test
For the designThis deliberately higher test load checks response time and backlog. It is an assumption, rather than a peak measured in production.
- 03
Raw data per day
168.75 MiB/day86400 × 2048 byte ÷ 1048576
For the designMetadata budget for posts, relationships, moderation history and feed references; document contents, indexes, replicas and backups add further storage.
- 04
Domain hotspot
One post for 100000 followersSeparate concurrency or ordering test for the same business identity.
For the designPublication and deletion both expect version 3. Deletion first prevents publication. Publication first is followed by deletion after a fresh read; the terminal state gelöscht remains effective against old feed jobs.
A large creator determines peak fanout load
A large creator determines peak fanout load.
One post for 100000 followers
An average of 1 event/s says little about one post for 100,000 followers. The exercise specifies the input and expected result.
- Alternative considered
- A test with only 1 event/s does not capture the concentrated contention.
- Trade-off
- The dedicated hotspot profile requires a controlled sequence in addition to the 45000-event test.
- Reassess
- Measured real peaks above 50 events/s change the load profile.
Try it yourself
Calculate mean rate and number of events in the 15-minute peak test. In addition, explain what the hotspot test proves.
A hint for your attempt
Convert operating hours into seconds first; the peak test lasts 900 seconds.
Compare with a possible solution
- Calculation
- 86400 ÷ (24 × 3600) = 1 event/s. 50 × 900 = 45000 events.
- Domain hotspot
- Publication and deletion both expect version 3. Deletion first prevents publication. Publication first is followed by deletion after a fresh read; the terminal state gelöscht remains effective against old feed jobs. The average rate alone cannot prove this guarantee.
Apply to your project
Which single entity concentrates load more than the daily average when distributing community posts?