Design resilient integrations with external services and asynchronous messaging, including timeouts, retries, idempotency, delivery guarantees, and failure recovery.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of External Integrations And Messaging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sivaprasadreddy-external-integrations-and-messaging)
---
name: external-integrations-and-messaging
description: Design resilient integrations with external services and asynchronous messaging, including timeouts, retries, idempotency, delivery guarantees, and failure recovery.
---
# External Integrations and Messaging
## Purpose
Make interactions across process and organizational boundaries explicit, resilient, secure, and observable.
## When to use
Use when calling third-party APIs, publishing or consuming messages, processing webhooks, scheduling background work, or coordinating workflows across services.
## Principles
- Assume every remote dependency can be slow, unavailable, inconsistent, or return malformed data.
- Set explicit connection, request, and overall operation timeouts.
- Retry only transient failures and use bounded exponential backoff with jitter.
- Avoid retry storms; use concurrency limits, rate limits, and circuit-breaking where appropriate.
- Make side-effecting operations idempotent or protect them with deduplication.
- Distinguish at-most-once, at-least-once, and effectively-once business behavior; do not promise exactly-once processing without precise guarantees.
- Treat message ordering, duplication, delay, and redelivery as normal conditions.
- Validate webhook authenticity, timestamp/replay protections, and payloads.
- Keep external contracts behind adapters or clear integration boundaries.
- Do not let a remote system's data model become the application's internal domain model by accident.
## Synchronous integration workflow
1. Identify the dependency, business purpose, data exchanged, and trust boundary.
2. Define timeout budgets across the full request path.
3. Classify failures: transient, permanent, business rejection, throttling, and unknown.
4. Define retry eligibility, attempt limits, backoff, and cancellation.
5. Define fallback or degraded behavior when the dependency is unavailable.
6. Protect credentials and restrict outbound destinations.
7. Record latency, failure rates, throttling, and correlation identifiers.
## Asynchronous messaging workflow
1. Define event meaning, producer, consumer, and ownership.
2. Specify schema, versioning, key, ordering needs, and retention.
3. Decide delivery semantics and duplicate-handling strategy.
4. Ensure consumer effects are idempotent.
5. Define acknowledgement, retry, dead-letter, and replay procedures.
6. Handle poison messages and schema incompatibility.
7. Consider transactional outbox/inbox patterns when database updates and message delivery must stay coordinated.
8. Monitor queue depth, age, redelivery, and dead-letter volume.
## Workflow consistency
For multi-step processes spanning systems, define:
- State transitions and invariants.
- Compensation behavior for completed steps when later steps fail.
- Timeout and expiry behavior.
- Human intervention and reconciliation paths.
- Auditability and duplicate request handling.
## Review checklist
- Are timeouts explicit and compatible with upstream budgets?
- Are retries bounded and safe?
- Can duplicate messages or callbacks cause duplicate effects?
- Are ordering and consistency assumptions explicit?
- Is there a dead-letter/replay/reconciliation strategy?
- Are secrets, payloads, and personal data handled safely?
- Can operators see and diagnose failures?
Avoid introducing a message broker or distributed workflow engine when a simpler in-process or scheduled solution is sufficient.