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,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

# 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
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 Featured

hubspot-reliability-patterns

Implement HubSpot reliability patterns: circuit breakers, retries, and graceful degradation. Use when building fault-tolerant HubSpot integrations, implementing retry strategies, or adding resilience to production CRM services. Trigger with phrases like "hubspot reliability", "hubspot circuit breaker", "hubspot resilience", "hubspot fallback", "hubspot fault tolerant".

2,266 Updated today
jeremylongshore
AI & Automation Featured

salesforce-reliability-patterns

Implement Salesforce reliability patterns including circuit breakers, idempotent upserts, and fallback caching. Use when building fault-tolerant Salesforce integrations, implementing retry strategies, or adding resilience to production Salesforce services. Trigger with phrases like "salesforce reliability", "salesforce circuit breaker", "salesforce idempotent", "salesforce resilience", "salesforce fallback", "salesforce retry".

2,266 Updated today
jeremylongshore
Web & Frontend Listed

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions. U...

5 Updated 2 months ago
mayurrathi
Web & Frontend Solid

shopify-apps

Expert patterns for Shopify app development including Remix/React Router apps, embedded apps with App Bridge, webhook handling, GraphQL Admin API, Polaris components, billing, and app extensions. Use when: shopify app, shopify, embedded app, polaris, app bridge.

27,681 Updated today
davila7