REL04-BP02ReliabilityREL43 of 4 practices publishedReference content

Implement loosely coupled dependencies

Framework question: How do you design interactions in a distributed system to prevent failures?

Risk if not established
High
Framework verified
14 Nov 2026

AWS Well-Architected Framework — REL04-BP02 Implement loosely coupled dependencies

Executive summary

Why this practice matters

Connect components through queues, streams, event buses, workflows and load balancers rather than direct, tightly bound calls, so a failure or change in one component does not spread to the others. Components should depend only on a versioned, published interface, and should interact asynchronously wherever an immediate response is not needed.

Business impact

  • Contains failures to a single component instead of the whole system.
  • Lets teams change or scale one component with less risk to others.
  • Makes problems easier to diagnose because the failure surface is smaller.
  • Allows each component to scale to its own demand, which helps control cost.

Assign

Accountable and responsible roles

Responsibilities are held separately from roles, so accountability type and typical roles are stated explicitly.

ResponsibilityAccountability type

Design decoupled interactions

Choose where to use queues, events, workflows or load balancers, and define the interfaces.

Typical roles: Architect, Software Engineer, Architect, Software Engineer

responsible

Build reliable message handling

Implement idempotent processing, dead-letter handling and back pressure.

Typical roles: Software Engineer, DevOps Engineer, Software Engineer, DevOps Engineer

responsible

Own the coupling roadmap

Prioritise removal of tight coupling and accept the risk of what remains.

Typical roles: Service Owner, Team Lead / Manager, Service Owner, Team Lead / Manager

accountable

Assessment

Assessment and evidence state

States describe how far the practice has moved from intent to something continuously validated.

  1. 0

    Not Assessed

    No documented evaluation of the practice has been performed.

    Indicators

    • No one has examined how failure in one component affects the components that depend on it.
  2. 1

    Not Implemented

    The practice is absent or applied only ad hoc.

    Indicators

    • Tiers call each other directly and share data stores.
    • A failure in one component regularly affects others.
  3. 2

    Partially Implemented

    The practice is applied to some workloads or components, with known gaps.

    Indicators

    • Some interactions use queues or events.
    • Shared databases or unversioned interfaces remain.
  4. 3

    Implemented

    The practice is applied consistently across defined scope, with evidence.

    Indicators

    • Components interact through versioned interfaces and durable intermediate layers.
    • Duplicate, failed and stale messages are handled deliberately.
  5. 4

    Continuously Validated

    The practice is regularly tested and improved from measured results.

    Indicators

    • Failure tests confirm a component outage stays contained.
    • Remaining tight coupling is tracked and reduced over time.

Assessment dimensions

  • Interface isolation

    Practice-specific

    Absent · Partial · Operational and verified

  • Asynchronous interaction

    Practice-specific

    Absent · Partial · Operational and verified

  • Message reliability

    Practice-specific

    Absent · Partial · Operational and verified

  • Back-pressure handling

    Practice-specific

    Absent · Partial · Operational and verified

Caution

Do not award maturity for the presence of a message queue alone. Check that components no longer share data stores, depend only on versioned interfaces, and handle duplicates, failed messages and back pressure.

Standard

What you should be able to demonstrate

Statements a reviewer should be able to confirm from evidence, not from intent.

  • Components interact through versioned, published interfaces, not shared databases.
  • Interactions that do not need an immediate reply are asynchronous, through a durable intermediate layer.
  • Consumers can slow or stop intake when they cannot keep up, so back pressure is respected.
  • Messages can be processed more than once without harm, and failed messages are captured for analysis.
  • Stale requests that clients have given up on are discarded rather than processed.

Trade-offs to hold in view

  • Asynchronous designs are harder to trace and debug end to end.
  • Intermediate layers add components to operate and may add latency.
  • Eventual consistency may not suit every business process.

Assess

Questions to ask

Each question exposes the difference between an intention and an operating practice.

  • discovery

    Which components would stop working if a single downstream component became unavailable?

    Reveals tight coupling and hidden shared dependencies.

    Usually asked by: Architect, Software Engineer

  • challenge

    Where do components share a database, and what would it take to separate them?

    Challenges coupling through shared data.

    Usually asked by: Architect, Data Practitioner

  • evidence

    Can we show the message contracts and how duplicate or failed messages are handled?

    Requires evidence of idempotency and failure capture.

    Usually asked by: Software Engineer, Quality Assurance / Test

  • executive

    How often does a change in one team's component force changes or outages in another's?

    Makes the cost of coupling visible to leadership.

    Usually asked by: Team Lead / Manager, Technology Executive

Evidence

Required and expected evidence

Reusable evidence definitions held once in the evidence library and referenced by every practice that relies on them. Each links to what good evidence looks like and to worked examples.

EVD-ARCH-003coreReusable

Dependency / Coupling View

A current view of runtime, data, deployment and external dependencies that makes service coupling and failure propagation visible.

Shows which component interactions are synchronous, which are decoupled, and any shared data stores.

Minimum expected content

  • Major services/components in scope
  • Inbound and outbound dependencies
  • Interaction type such as synchronous, asynchronous, shared data or batch
  • Critical request/data-flow dependencies
  • External/third-party dependencies where material
  • Shared databases or schemas
  • Coordinated deployment/change dependencies
  • Known circular, high-fan-out or high-latency dependencies
  • Runtime/trace evidence source where available
  • Known failure-propagation or blast-radius concerns
  • Owner and last reviewed date

Anti-patterns

  • Only direct HTTP calls are captured while shared databases and deployment coupling are ignored
  • The map is manually drawn once and never validated against runtime behaviour
  • High fan-out or circular dependencies are visible but never assessed
  • Every dependency is treated as equally critical
  • Trace visualisations are presented without interpretation of reliability or change impact
  • The map omits third-party or platform dependencies that can fail critical flows

Review: Keep aligned with material architecture changes and refresh from runtime/deployment evidence where practical.

EVD-ARCH-008supportingReusable

API / Service Contract

A controlled, versioned contract defining the externally observable behaviour of an API or independently evolving service interface, including operations, inputs, outputs, errors, compatibility expectations, lifecycle and ownership.

Shows the versioned interfaces and message contracts components depend on.

Minimum expected content

  • Contract identity, service/API name, owner and current version/status
  • Intended consumers, scope and interface purpose
  • Operations, endpoints, events or callable behaviours in scope
  • Request/input schemas, constraints and required/optional fields
  • Response/output schemas and semantic meaning
  • Expected behaviour, state changes and material side effects
  • Error model, error codes/conditions and retry expectations where relevant
  • Authentication/authorisation and trust expectations where they form part of the interface
  • Compatibility and versioning policy
  • Deprecation, migration and support-window expectations
  • Material reliability, timeout, idempotency or rate/usage expectations where consumers depend on them
  • Machine-readable contract/specification where appropriate
  • Verification or contract-test approach
  • Change history and communication expectations for consumers

Anti-patterns

  • Documentation generated from implementation but never reviewed as a producer-consumer contract
  • Only endpoint names are documented while schemas, semantics and errors remain implicit
  • Breaking changes are released under the same contract/version with no migration path
  • The contract embeds unnecessary implementation internals that prevent independent evolution
  • Versioning exists in the URL or metadata but no compatibility policy defines what versions mean
  • Consumers rely on behaviours not represented in the contract
  • Contract tests validate examples only and miss meaningful compatibility or schema changes
  • The published contract is stale compared with the deployed interface
  • No named owner or change path exists when producers and consumers disagree about expected behaviour

Review: Review whenever the interface, schemas, behaviour, compatibility policy or lifecycle materially changes, and keep the current contract version aligned with the deployed/supported interface.

Diagnosis

Common evidence gaps

  • Direct calls between tiers

    Tiers invoke each other synchronously with no failover or asynchronous path.

  • Shared databases

    Components share a data store, which reintroduces tight coupling and limits scaling.

  • Ignoring back pressure

    Producers keep sending work that consumers cannot handle.

  • Monolith by default

    The workload is deployed as one unit, so any change or failure affects everything.

Implementation

Implementation guidance

Map the coupling

Identify where components call each other directly, share data stores or must be deployed together.

Introduce an intermediate layer

Use queues, streams, event buses or workflow services so producers and consumers do not depend on each other being available.

Publish and version interfaces

Make each component depend only on another's published contract, and evolve event and message formats without breaking consumers.

Handle duplicates and failures

Make message processing idempotent and send messages that repeatedly fail to a dead-letter queue.

Respect back pressure and staleness

Let components slow incoming work when overloaded, and drop requests that are too old to be useful.

Measure

Measurements

  • Share of inter-component interactions that are asynchronous or decoupled
  • Number of shared data stores used by more than one component
  • Messages sent to dead-letter queues and time to resolve them
  • Incidents where a failure spread beyond the component that caused it

Related

Outcomes and practices

Business outcomes

    Practices