An integration is not a pipe. It is a contract about timing, ownership, failure recovery, reconciliation, and who is responsible when reality diverges from the product state.
Key points
- Design integration contracts before building dependent user flows.
- Separate synchronous customer commitments from asynchronous operational updates.
- Give operators tools to observe and repair integration failures.
Contract
Define ownership and freshness
Every integration should state who owns the data, how fresh it must be, and what the product is allowed to do when freshness cannot be guaranteed. This changes UI promises, caching strategy, queue design, and support workflows.
- Classify data as authoritative, replicated, cached, or advisory.
- Define freshness budgets for customer-facing and operator-facing views.
- Design reconciliation jobs for data that must eventually agree.
Reliability
Build for retries, duplicates, and partial failure
Real integrations send duplicate webhooks, time out after successful work, change payloads, and fail during dependency outages. Product teams should treat idempotency keys, queues, dead-letter handling, and structured logs as product infrastructure.
- Use idempotent writes for payment, order, fulfilment, and notification workflows.
- Create retry policies that distinguish temporary failure from invalid data.
- Expose failure states to operators with enough context to act.
Product impact
Make integration constraints visible in the user experience
When a system cannot guarantee a delivery date, inventory number, approval, or eligibility result, the product should communicate the uncertainty honestly. Hiding integration constraints creates support load and erodes trust.
- Translate dependency limits into UI states and messaging rules.
- Avoid customer promises that depend on unverified downstream confirmation.
- Use audit records to explain why a workflow changed state.
Integration design checklist
- Data owner, freshness budget, and cache policy
- Authentication, rate limits, and access scopes
- Idempotency, retries, dead letters, and reconciliation
- Observability for request, event, and business outcome
- Operator tools for repair and reprocessing
- Customer-facing promises affected by dependency failure
Related services
