vercel-reliability-patterns

Solid

Implement reliability patterns for Vercel deployments including circuit breakers, retry logic, and graceful degradation. Use when building fault-tolerant serverless functions, implementing retry strategies, or adding resilience to production Vercel services. Trigger with phrases like "vercel reliability", "vercel circuit breaker", "vercel resilience", "vercel fallback", "vercel graceful degradation".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vercel Reliability Patterns ## Overview Build fault-tolerant Vercel deployments with circuit breakers, retry logic, graceful degradation, and instant rollback integration. Addresses reliability at two levels: function-level resilience (protecting against dependency failures) and deployment-level resilience (protecting against bad deploys). ## Prerequisites - Vercel project deployed to production - Understanding of failure modes in serverless - External dependencies (databases, APIs) identified ## Instructions ### Step 1: Circuit Breaker for External Dependencies ```typescript // lib/circuit-breaker.ts type CircuitState = 'CLOSED' | 'OPEN' | 'HALF_OPEN'; class CircuitBreaker { private state: CircuitState = 'CLOSED'; private failures = 0; private lastFailure = 0; private readonly threshold: number; private readonly resetTimeMs: number; constructor(threshold = 5, resetTimeMs = 30000) { this.threshold = threshold; this.resetTimeMs = resetTimeMs; } async call<T>(fn: () => Promise<T>, fallback: () => T): Promise<T> { if (this.state === 'OPEN') { if (Date.now() - this.lastFailure > this.resetTimeMs) { this.state = 'HALF_OPEN'; } else { console.warn('Circuit OPEN — returning fallback'); return fallback(); } } try { const result = await fn(); this.onSuccess(); return result; } catch (error) { this.onFailure(); console.error('Circuit breaker caught error:', error); ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

customerio-reliability-patterns

Implement Customer.io reliability and fault-tolerance patterns. Use when building circuit breakers, fallback queues, idempotency, or graceful degradation for Customer.io integrations. Trigger: "customer.io reliability", "customer.io resilience", "customer.io circuit breaker", "customer.io fault tolerance".

2,266 Updated today
jeremylongshore
AI & Automation Solid

resilience-patterns

Circuit breaker, bulkhead, retry with jitter, graceful shutdown, health check patterns for production resilience.

495 Updated 1 months ago
vibeeval
AI & Automation Solid

vercel-sdk-patterns

Production-ready Vercel REST API patterns with typed fetch wrappers and error handling. Use when integrating with the Vercel API programmatically, building deployment tools, or establishing team coding standards for Vercel API calls. Trigger with phrases like "vercel SDK patterns", "vercel API wrapper", "vercel REST API client", "vercel best practices", "idiomatic vercel API".

2,266 Updated today
jeremylongshore
AI & Automation Featured

figma-reliability-patterns

Build resilient Figma integrations with circuit breakers, fallbacks, and graceful degradation. Use when implementing fault tolerance, handling Figma outages gracefully, or building production-grade reliability into Figma API consumers. Trigger with phrases like "figma reliability", "figma circuit breaker", "figma fallback", "figma resilience", "figma graceful degradation".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clade-reliability-patterns

Build fault-tolerant Claude integrations — retries, circuit breakers, Use when working with reliability-patterns patterns. fallbacks, timeouts, and graceful degradation. Trigger with "anthropic reliability", "claude fault tolerance", "anthropic circuit breaker", "claude fallback".

2,266 Updated today
jeremylongshore