An integration becomes critical when its failure disrupts a relevant business process: preventing order creation, delaying billing, leaving customer data outdated, or blocking an internal operation. In these scenarios, knowing the architecture is not enough. The team needs a procedure that enables safe decisions under pressure. That procedure is the runbook for critical integrations.
A good runbook is not a generic list of technical checks or a document understood only by the person who wrote it. It must indicate which business service is affected, how to detect the issue, who can decide on containment, which actions are reversible, and what evidence confirms recovery. Its purpose is not to eliminate every incident, but to reduce diagnosis time, limit the scope, and prevent the response from worsening data loss or corruption.
What Makes an Integration Critical

Criticality does not depend solely on whether a connection uses an API, a message queue, or a scheduled process. It depends on its consequences. To classify it, assess the entire flow using verifiable criteria:
- Business impact: revenue, contractual compliance, customer service, logistics, billing, or operational decisions that depend on the data.
- Tolerance window: how long the process can be delayed before causing harm. A daily analytical synchronization is not the same as validating a real-time transaction.
- Integrity: whether an error can create duplicates, omit records, modify incorrect statuses, or expose information.
- Dependencies: source and destination systems, authentication, network, external provider, data schema, queues, and processing tasks.
- Recoverability: the ability to retry or reprocess without side effects, and the ability to revert changes.
Also define service boundaries. For example: “the integration delivers order creations to the management system; it does not update stock or confirm payment.” This scoping prevents the incident from expanding through assumptions and clarifies which teams must intervene.
The Minimum Inventory Before Writing the Runbook
A useful runbook relies on a concise, maintained inventory. It does not need to replicate all architecture documentation, but it must provide the information needed to act. For each flow, document:
- Flow name and affected business process.
- Source system, destination system, and intermediate components.
- The event or schedule that starts processing.
- Data exchanged, unique correlation identifier, and idempotency rules.
- Credentials or authentication mechanism, without including secrets in the document.
- Approved dashboards, logs, and queries for observing status.
- Technical owner, business owner, executing team, and escalation channel.
- Available actions: pause, retry, reprocess, quarantine, and revert.
If an integration is published or distributed through a platform such as Apification, the inventory should include the approved URL or operational reference, the publication owner, declared dependencies, and the procedure for replacing or withdrawing a version. Do not assume that the platform alone resolves observability, retries, or recovery: these controls must be validated in the specific integration design.
Signals and Thresholds That Enable Action
Useful alerts are based on symptoms that require a decision, not on every technical variation. Each signal must answer three questions: what it measures, what threshold triggers intervention, and what the first action is. Combine at least these categories:
- Failures: authentication errors, invalid responses, destination rejections, or tasks completed with errors.
- Delay: age of the oldest message, time since the last successful delivery, or failure to meet a processing window.
- Abnormal volume: a drop to zero when there should be activity, an unusual increase in events, or a queue that grows continuously.
- Duplicates: the same business key processed more than once outside the intended rule.
- Loss of traceability: events without a correlation identifier, incomplete records, or an inability to associate source and destination.
Avoid arbitrary thresholds. Calculate a baseline using normal behavior by time slot and set limits tied to business tolerance. If an order can wait fifteen minutes, an alert after two hours is not actionable. If automatic retries are expected, alerting on the first failed attempt will only generate noise.
Structure of a Useful Runbook Under Pressure
The procedure must be possible to follow from top to bottom during an incident. Use short instructions, direct links to evidence, and explicit conditions for moving forward. An effective structure contains six phases.
- Check: confirm the alert using a dashboard, a sample of logs, and the correlation identifier. Rule out scheduled maintenance or a false positive.
- Classify: identify whether it affects availability, data validity, compatibility, capacity, or partial processing. Estimate scope by period, entity, and affected systems.
- Contain: stop propagation when there is a risk of corruption. This may involve pausing the consumer, disabling a trigger, or sending records to a quarantine queue.
- Communicate: report facts: affected flow, estimated start time, known impact, containment measure, and next update. Do not communicate unconfirmed causes.
- Recover: apply the approved fix, run retries or controlled reprocessing, and verify the result of a sample before expanding the scope.
- Record: preserve the timeline, decisions, commands or actions performed, evidence, and pending work.
Include prerequisites and permissions. An instruction such as reprocess pending messages is insufficient if it does not explain from which interval, which filter prevents duplicates, who authorizes the operation, and how the result is validated.
Decision Tree for Common Failures
A decision tree reduces ambiguity. It can be expressed simply and adapted to each integration:
Is the destination available?
- No: check status and credentials; pause if the queue grows beyond the limit.
- Yes: does the message meet the data contract?
- No: send it to quarantine; do not retry without a correction.
- Yes: has the contract or expected version changed?
- Yes: stop deployments and apply compatibility measures or revert.
- No: review limits, timeouts, and transient errors.In the event of unavailability, prioritize preserving events and avoid overwhelming the destination with retries. For invalid data, isolate affected records and determine whether the defect is in the source, transformation, or contract. For an incompatible change, freeze additional changes, compare schemas, and revert only if reverting does not break already processed records. If retries are exhausted, do not restart them indiscriminately: classify the cause and confirm idempotency.
Partial processing deserves a specific section. This is the case in which the source considers an operation complete, but the destination does not, or vice versa. Recovery requires reconciliation using business identifiers, not only counters. A total number of processed events may match even when there are incorrect or duplicated entities.
When to Pause, Retry, Reprocess, or Revert
These actions carry different risks. The runbook must turn them into decision criteria:
- Pause when incorrect information continues to arrive, there is insufficient traceability, or accumulation threatens integrity. Define the maximum retention capacity before choosing this option.
- Retry for verified transient errors, such as temporary unavailability, provided that the operation is idempotent or has a deduplication key.
- Reprocess after correcting the cause and defining the affected interval or set. Do so in controlled batches, with validation between batches.
- Revert a change when there is a known previous version, the reversion is compatible with data in progress, and the effect on consumers and dependencies has been assessed.
Speed does not justify changing data without control. If idempotency cannot be guaranteed, treat reprocessing as a risky operation: request approval, test with a sample, and prepare for subsequent reconciliation.
Responsibilities, Closure, and Learning
Separate roles even if the same person can take them on in small teams. The on-call responder performs the initial diagnosis; the technical owner approves architecture changes or complex recovery; the business owner decides on priorities and impact communications. Establish escalation timeframes and a single channel for incident status.
Do not close an incident because the alert has disappeared. Require evidence: confirmed affected interval, preserved error logs, reconciled data between source and destination, reviewed pending queues or tasks, and final communication issued. Create follow-up actions with an owner and date: fix a contract, add a signal, adjust a threshold, improve idempotency, or update contacts.
Test and Maintain the Procedure

An untested runbook is a hypothesis. Conduct controlled simulations of invalid credentials, unavailable destination, duplicate event, schema change, and sustained delay. Verify that alerts reach the appropriate team, that access works, and that steps can be executed without relying on tacit knowledge.
Review the document after every relevant incident and whenever systems, contracts, owners, or deployment mechanisms change. A periodic review can check links, permissions, thresholds, contacts, and reversion procedures. The result is an integration treated as an operable service: with clear boundaries, repeatable decisions, and evidence-based recovery.
