Bottlenecks and trade-offs
What three times explain a delayed autosave?
A visible autosave failure may originate in the network, a version conflict or the storage path.
Starting point Distinguish browser activity, server acceptance and commit.
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.
Diagnostic path
Measurement-based decisions
Correlate the client request, API latency and commit time
Visible status needs confirmed commit
- Trade-off
- More telemetry
- Reassess
- When introducing a new offline model
Read closesAt, the version and worker lag
Distinguish deadline issues from processing delays
- Trade-off
- Operations needs domain context
- Reassess
- When changing the scheduler
Terms in this step
- Worker lag
- Time between the deadline and a successful completion commit.
Try it yourself
Create a diagnostic chain.
A hint for your attempt
Browser time does not decide a deadline, but helps with UX diagnosis.
Compare with a possible solution
- Chain
- Client start, server-side receivedAt and commit time.
- Interpretation
- The differences separate network path, API processing and storage time.
Apply to your project
Define a signal for worker lag.