Bottlenecks and trade-offs
Backlog needs the right measuring point. What conditions ensure the result?
Feed delivery can be slow even when vote acceptance is fast.
Starting point A unique key on account and poll protects acceptance.
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.
Acceptance or fanout
Acceptance, aggregation or fanout
The measurement paths separate commit latency, watermark lag and recipient distribution.
From symptom to targeted action
| Signal | Validation | Action and limit |
|---|---|---|
| Voting burst | 5000/s × 60 s | Tallying must catch up to the final watermark. |
| Fanout | 500,000 connected devices × 100 chat events/s | Delivering every unfiltered chat post is unsustainable; channels and bounded selections are required. |
Voting burst
- Validation
- 5000/s × 60 s
- Action and limit
- Tallying must catch up to the final watermark.
Fanout
- Validation
- 500,000 connected devices × 100 chat events/s
- Action and limit
- Delivering every unfiltered chat post is unsustainable; channels and bounded selections are required.
Measure backlog at the appropriate point.
Measure ingestion, aggregation and fanout separately.
Feed delivery can be slow even when vote acceptance is fast.
Check partition load and processing progress up to the watermark. Bound channels and selected messages; size transport capacity accordingly.
- Alternative considered
- More API instances do not fix fanout jams.
- Trade-off
- Additional metrics are needed.
- Reassess
- Measurements determine the next improvement.
Try it yourself
Select action for aggregation and fanout jams.
A hint for your attempt
Feed delivery can be slow even when vote acceptance is fast.
Compare with a possible solution
- Aggregation
- Check partition load and processing progress up to the watermark.
- Fanout
- Bound channels and selected messages; size transport capacity accordingly.
Apply to your project
What is the equivalent of “backlog needs the right measuring point” in your own project?