shopify-reliability-patterns

Featured

Implement reliability patterns for Shopify apps including circuit breakers for API outages, webhook retry handling, and graceful degradation. Trigger with phrases like "shopify reliability", "shopify circuit breaker", "shopify resilience", "shopify fallback", "shopify retry webhook".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Shopify Reliability Patterns ## Overview Build fault-tolerant Shopify integrations that handle API outages, webhook retry storms, and rate limit exhaustion gracefully. ## Prerequisites - Understanding of circuit breaker pattern - Queue infrastructure (BullMQ, SQS, etc.) for async processing - Cache layer for fallback data ## Instructions ### Step 1: Circuit Breaker for Shopify API ```typescript import CircuitBreaker from "opossum"; // Create circuit breaker wrapping Shopify API calls const shopifyCircuit = new CircuitBreaker( async (fn: () => Promise<any>) => fn(), { timeout: 10000, // 10s timeout per request errorThresholdPercentage: 50, // Open at 50% error rate resetTimeout: 30000, // Try half-open after 30s volumeThreshold: 5, // Need 5 requests before tripping errorFilter: (error: any) => { // Don't count 422 validation errors as circuit failures // Only count 5xx and timeout errors const code = error.response?.code || error.statusCode; return code >= 500 || error.code === "ECONNRESET" || error.code === "ETIMEDOUT"; }, } ); shopifyCircuit.on("open", () => { console.error("[CIRCUIT OPEN] Shopify API failing — serving cached data"); }); shopifyCircuit.on("halfOpen", () => { console.info("[CIRCUIT HALF-OPEN] Testing Shopify recovery..."); }); shopifyCircuit.on("close", () => { console.info("[CIRCUIT CLOSED] Shopify API recovered"); }); // Usage async function res...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category