The concept Production incidents are business events
At 9:15 a.m. finance reports that reconciliation has stopped progressing. The dashboard loads and the API responds, but pending settlement records keep climbing. The team must identify the problem, contain the impact, recover safely and communicate clearly.
Three scenarios How Apex incidents unfold
| Scenario | Symptoms | Investigate | Recover safely |
|---|---|---|---|
| A. Queue processing stopped | Depth and oldest age rising, API healthy, worker throughput zero | Worker health, recent deployments, worker logs, database connectivity, visibility and retries, dead letters, schema or config changes | Restore or roll back the worker, watch the queue drain, reconcile expected and actual totals; never replay blindly |
| B. Database connections exhausted | Latency up, connection errors, timeouts, workers retrying | Active connections, pool usage, long queries, lock waits, traffic changes, leaked connections, retry amplification | Reduce concurrency, stop an identified runaway query through the approved process, fix the cause; a bigger pool can make it worse |
| C. Incorrect reconciliation results | Match rate changes, finance reports wrong matches after a rule release | Affected records and time range, behavior versus the last approved version | Stop or isolate the path, preserve evidence, block further changes, reprocess only with customer approval; never rewrite history silently |
Be ready What a runbook contains
- Trigger and impact: the symptom and who is affected.
- Required permissions: the role needed, never a password.
- Initial checks and diagnostics: dashboard links and safe read-only commands.
- Containment, recovery and validation steps.
- Escalation roles and customer communication guidance.
Practice Write runbooks and run a drill
Practical exercise
Exercise 09: three runbooks and one simulated incident
Write the three runbooks, then simulate one incident with an incident commander and an investigating engineer.
- Runbooks: queue processing stopped, database connections exhausted, incorrect reconciliation results.
- An incident timeline and a customer update.
- A post-incident review with owners and dates.
Show a sample customer update
- 09:40, confirmed: settlement processing stopped at 08:52, after the 08:45 worker release. Payments are still being received and stored. No reconciliation results have been changed.
- 09:40, not yet confirmed: whether any settlement records were partly processed before 08:52. We are checking the batch control totals. We are rolling back the worker. Next update at 10:10.
- 11:05, recovered: processing resumed at 10:20. We declared recovery only after the batch matched its trailer (100,000 records and the control total), no record was posted twice, and reconciliation counts matched the expected file.
2 questions
Check your understanding
Answer every question to submit.
What you can do now
- Run an incident through its lifecycle.
- Classify severity by business impact.
- Write safe, useful runbooks.