.NET Architecture & System Design Interview Question #134

What is a resilience pipeline in modern .NET?

Resilience, Rate Limiting, Health Checks & Observability Senior Advanced

Quick Interview Answer

A resilience pipeline composes policies such as timeout, retry, circuit breaker, rate limiting, and fallback around outbound or internal operations.

Detailed Explanation

A resilience pipeline composes policies such as timeout, retry, circuit breaker, rate limiting, and fallback around outbound or internal operations.

Modern .NET applications can use resilience libraries and HTTP client integrations to configure these behaviors centrally. The pipeline should reflect the semantics of the dependency and operation rather than applying identical retries to every request.

Code Example

HTTP request
   |
Timeout
   |
Retry
   |
Circuit Breaker
   |
Downstream API