resilience-patterns

Implements timeout, retry, and circuit breaker patterns for TypeScript/Node.js external-service calls.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/luansilvadb/agoravai --skill resilience-patterns-luansilvadb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: resilience-patterns
Source: https://github.com/luansilvadb/agoravai/tree/main/.rag/context/resilience-patterns
Command: npx skills add https://github.com/luansilvadb/agoravai --skill resilience-patterns-luansilvadb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Code-level resilience patterns to protect systems from external service failures, timeouts, and unstable build/download processes.

Core Features & Use Cases

  • Isolates failures with timeouts, retries (backoff with jitter), and circuit breakers to prevent cascading outages.
  • Supports typed, safe fallback strategies and telemetry to observe resilience behavior across layers.
  • Applicable to HTTP/gRPC calls, build/download steps, and distributed read queries for fault tolerance.

Quick Start

Integrate this skill into your services and apply timeouts, retries, and circuit breakers to harden external interactions.

Frequently Asked Questions about resilience-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a circuit breaker with exponential backoff and jitter in TypeScript?

You implement a circuit breaker with exponential backoff and jitter in TypeScript by applying resilient patterns that feature a stateful half-open testing flow and dual timeouts to isolate external service failures.

How do I prevent cascading failures from external HTTP and gRPC calls in Node.js?

You prevent cascading failures from external HTTP and gRPC calls in Node.js by isolating faults with timeouts, retries, and circuit breakers, which ensures graceful degradation and provides structured telemetry across distributed read queries.

What is the best way to handle unstable build and artifact downloads with retry patterns?

The best way to handle unstable build and artifact downloads with retry patterns is to apply exponential backoff with jitter and dual timeouts, which ensures fault tolerance and prevents process hangs during external fetches.

Can I use typed fallback strategies when an external service times out or fails?

Yes, you can use typed fallback strategies when an external service times out or fails by defining safe, typed fallback behaviors that ensure graceful degradation and maintain system stability during external outages.

Does this resilience pattern approach support structured telemetry for observing retry behavior?

Yes, this resilience pattern approach supports structured telemetry for observing retry behavior, allowing you to monitor resilience mechanisms like circuit breaker state transitions and timeout events across application layers.

When should I not use a circuit breaker pattern for external service calls?

You should avoid using a circuit breaker pattern for external service calls when operations are not idempotent, because retry mechanisms with backoff and jitter might trigger duplicate writes or unintended side effects in distributed systems.