FM-042 Distributed Systems and Data Consistency

Dependency Failure and Fault Isolation

An unrelated dependency failure takes down independent API operations — a down recommendation service makes order lookups unavailable.

Failure explanation

An API operation depends on another service that is unavailable or slow, and the failure propagates to unrelated operations that do not truly require that dependency. Poor timeout boundaries, shared thread pools, synchronous call chains, or missing bulkheads can cause one failing dependency to exhaust resources across the application.

Example

GET /orders/123 requires only order data, but the implementation also synchronously calls a recommendation service to enrich the response. When recommendations time out, order lookup fails even though the order database is healthy.

How to test

  • Stub or disable dependencies individually.
  • Test timeouts, connection errors, partial responses, and slow dependencies.
  • Verify optional enrichment has a fallback or is isolated from core operations.
  • Check circuit breakers, bulkheads, resource pools, and error mapping.

Expected behavior

Failures are contained to operations that genuinely depend on the unavailable service. Essential functionality remains available where the architecture and contract permit it.

Runnable examples

Each example includes a broken server, a fixed server, an OpenAPI spec, and a clrsig scenario that detects the failure.