Skip to main content

What this group covers

Use these modules when an integration can fail, slow down, duplicate itself, or overwhelm a remote service. Each module targets one concern; combine them for production-grade resilience.

RetryPolicy

Configurable retry logic with exponential backoff and custom predicates.

CircuitBreaker

Stop hammering unstable dependencies with automatic open/half-open/closed transitions.

RequestCache

Cache request results with TTL and stale-while-revalidate support.

RequestDeduplicator

Share a single in-flight promise across equivalent concurrent requests.

RateLimiter

Token bucket and sliding window limiters for outbound request control.

ErrorBoundary

Centralized error normalization, retries, and boundary utilities.

Quick example: combining primitives

In day-to-day application code, many teams combine ApiClient, RetryPolicy, CircuitBreaker, RequestCache, and RateLimiter rather than using just one primitive.