The problem
The integration layer sits between everything, so it is blamed for everything. When a channel reports errors, the first call goes to the integration team, whether the cause is a backend, the network, a certificate or the channel itself.
Without a method, the first half hour goes to joining calls and restarting things. Restarts destroy the evidence, and the incident returns a day later.
This playbook gives the on-call engineer a fixed order of work. The goals, in order: stop the harm, find the failing hop, restore service, keep the evidence. Root cause comes later.
Minutes 0–5: Establish the scope
Three questions narrow the search faster than any dashboard.
| Question | If yes |
|---|---|
| Is one consumer affected, or all of them? | One consumer: look at that consumer, its credentials and its limits. |
| Is one operation affected, or all of them? | One operation: look at the backend behind it. |
| Did it start at a precise time? | Find what changed at that time: a release, a configuration change, a certificate expiry, a scheduled job. |
Most incidents follow a change. Check the change record for the last 24 hours before anything else. If a release went out just before the start time, roll it back first and investigate afterwards.
Minutes 5–15: Find the failing hop
For each hop on the path, look at the same four signals. The failing hop is the first one, going inward, where they turn bad.
| Signal | What it tells you |
|---|---|
| Request rate | A drop means requests are not arriving. A spike means a retry storm or an unusual load. |
| Error rate | Which errors, and from where. A rejection by the backend is different from a failure to reach it. |
| Response time | Slow responses come before errors. Timeouts at exact, repeated values point to a configured limit. |
| Saturation | Connection pools, threads, queue depth, memory. A full pool makes a healthy backend look dead. |
Symptom at the integration layer Most likely place
--------------------------------------- --------------------------------
Connection refused Backend down, or network rule
Connection timed out Network path, or backend overloaded
Security handshake failure Certificate expired or changed
Authentication rejected (all consumers) Identity service, or a rotated secret
Authentication rejected (one consumer) That consumer's credentials
Read timeout, backend healthy Pool exhausted on our side
Queue depth rising, nothing consumed Consumer stopped, or a poison message
Minutes 15–30: Restore service
Choose the least drastic action that stops the harm. Work down this list.
-
Roll back the last change
If anything was released or reconfigured near the start time. This resolves more incidents than every other action together.
-
Fail fast on the broken backend
Stop calling a backend that is not answering. Return a clear error straight away. This frees threads and connections, so the operations that do work keep working.
-
Shed load
Lower the limits for the least critical consumers. Protect payments before reports.
-
Pause, do not purge
For message flows, stop the consumer and let messages wait in the queue. They are safe there. A purged queue is lost business.
-
Move the poison message aside
If one message fails again and again and blocks the rest, move it to a holding queue with its details, and let the others flow.
-
Restart, last, and one instance at a time
Capture the logs and a thread dump first. Restart one instance and confirm that it helps before touching the others.
A full restart removes the evidence, drops work in progress, and sends every waiting consumer back at the same moment. If the cause was load, the restart recreates it.
Throughout: One short update every 15 minutes
One person works on the problem and another one communicates. The update has four lines, and it is sent even when nothing has changed.
Impact: What users cannot do, and since when.
Scope: Which channels and operations. What still works.
Status: What we know. What we have done. What we are doing now.
Next: Time of the next update.
State facts only. “We do not know yet” is an acceptable status. A guess that turns out to be wrong costs more time than it saves.
After service returns: Recover the work safely
- Count what was affected. Requests that failed, messages that waited, items with an unknown outcome.
- Resolve unknown outcomes by inquiry. Do not resend writes until you know whether the first attempt landed.
- Replay slowly. Release held messages at a controlled rate. A backend that has just recovered will fall over again under the full backlog.
- Reconcile. Compare both sides for the incident window before declaring it closed.
The next day: Three questions
-
How did we find out?
If a user told us before an alert did, the first action is a new alert.
-
What took the longest?
Finding the hop, getting access, reaching the right person. That step gets fixed.
-
What would have limited the damage?
A shorter timeout, a limit, an automatic fail-fast. That goes into the design, with an owner and a date.
Write the timeline from the logs, not from memory. Name systems and decisions, not people.
Prepare before the incident
Everything above is faster if these exist before the first call.
| Item | Why |
|---|---|
| A map of every path | Channel, gateway, flow, backend, with the owner and contact for each hop. |
| One dashboard per path | The four signals for each hop, side by side. |
| A list of recent changes | One place to see what was released in the last day, across teams. |
| Certificate expiry alerts | At 30, 14 and 7 days. Expired certificates are the most avoidable incident. |
| Tested switches | Fail-fast, load shedding and pause controls that the on-call engineer is allowed to use, and has used in a drill. |
| A rehearsal | Twice a year, break something in a test environment and run this playbook. |
Pitfalls
- Hunting root cause while users are down. Restore first. The evidence you saved will still be there.
- Raising timeouts or pool sizes in the middle of the incident. It often moves the pressure to a weaker system.
- Ten people changing things. One person decides. Every action is written in the incident channel before it is taken.
- Closing when the errors stop. The incident is closed when the affected work is recovered and reconciled.