Bottlenecks and trade-offs
Which signal distinguishes backlog from delayed devices?
The initial architecture prioritises durable acceptance and explainable evaluation. Growing backlogs, frequent quarantine and slow time-range queries indicate different causes and require different responses.
Starting point Step 7 shows that duplicate, late and future time have different end states.
Assumptions for the example case
Example design with 10,000 temperature devices, one value every 10 seconds. An example of a time period ranges from 12:00 to immediately before 12:01. The evaluation will be completed at 12:03 at the earliest. The waiting time of 120 seconds after the end of the time period is an evaluation rule and not a permitted deviation of the instrument clock. Numbers and temperatures are illustrative design assumptions.
From observed symptom to justified measure
Diagnostic route · from symptom to reasoned design step
- 01Finalization is lateAge of open W-17 or timer delay increases.
- 02Separating the pathObserve ingestion log, checkpoint, hot key and result store separately.
- 03Time or flow rateReception and projection time separate network delay, clock diagnosis and internal backlog.
- 04Targeted ExtensionChange the time rule, partitioning or query store based on the verified finding.
Accepted trade-off Late raw measurements remain visible for investigation and leave final alerts unchanged.
Reassess Only when the timer delay is measured, the query bottleneck is confirmed or a correction policy is required.
- Conspicuous condition and measure
- Measurement
- Cause
A growing backlog alone does not establish a faulty time rule. The signal and cause determine whether evaluation, device operations or storage access needs adjustment.
Trade-offs with triggers
Measure checkpoint lag, partitioning and replay throughput; parallelise evaluation where a bottleneck is confirmed.
Backlogs may arise at ingestion, a hot key, the timer or the result store.
- Trade-off
- More parallel processing requires clear key and time domain boundaries.
- Reassess
- If window finalization misses its agreed deadline.
Keep late values visible and assess data quality.
Finality makes alerts testable; silent changes weaken their explanation.
- Trade-off
- The raw history and final aggregate may differ.
- Reassess
- When the domain requires an explicit correction policy.
Scale aggregated results and raw-data access separately.
The team needs fast time-series queries; operations needs complete replay capability.
- Trade-off
- Additional projection requires consistency and retention monitoring.
- Reassess
- When real query load and resolution are measured.
Measure before expanding
- Assumptions require measurement
- The figures in this case are assumptions. A test profile does not yet prove a production bottleneck.
- Return to an earlier step
- A missed finalisation deadline first leads back to step 3; an invalid alert leads back to steps 2 and 5.
Terms in this step
- Bottleneck
- The limiting point of a concrete path. It is measured before an architectural measure is considered effective.
Try it yourself
Choose a signal, cause and possible response for projector backlog and future timestamps.
A hint for your attempt
Backlog concerns platform processing; a future timestamp initially points to device time or assignment.
Compare with a possible solution
- Backlog
- Signal: Age of the oldest unprocessed message and timer delay. Cause: measured throughput bottleneck in the projector. Measure: partition by device/window key and parallelize in a targeted manner. Replay with 5,000 values/s should show decreasing backlog without a second effect.
- Future time
- Signal: future-clock for D-17. Cause: a confirmed incorrect device clock. Response: device operations synchronises the clock or corrects firmware and checks new measurements. Quarantined values still do not change W-17 retroactively.
Apply to your project
What additional measurement in your system separates a suspected cause from a mere symptom?