hubspot-reliability-patterns

Featured

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".

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

# HubSpot Reliability Patterns ## Overview Production-grade reliability patterns for HubSpot CRM integrations: circuit breaker, retry with Retry-After, graceful degradation, and dead letter queues. ## Prerequisites - `@hubspot/api-client` installed (has built-in retry) - Optional: `opossum` for circuit breaker - Optional: Redis or database for dead letter queue ## Instructions ### Step 1: SDK Built-in Retry (First Line of Defense) ```typescript import * as hubspot from '@hubspot/api-client'; // The SDK automatically retries 429 and 5xx errors const client = new hubspot.Client({ accessToken: process.env.HUBSPOT_ACCESS_TOKEN!, numberOfApiCallRetries: 3, // retries with exponential backoff }); // This handles most transient failures automatically ``` ### Step 2: Circuit Breaker for HubSpot API ```typescript import CircuitBreaker from 'opossum'; // Circuit breaker wrapping all HubSpot API calls const hubspotBreaker = new CircuitBreaker( async <T>(operation: () => Promise<T>): Promise<T> => operation(), { timeout: 15000, // 15s timeout per call errorThresholdPercentage: 50, // open after 50% failure rate resetTimeout: 30000, // try again after 30s volumeThreshold: 5, // need 5+ calls before evaluating rollingCountTimeout: 60000, // 60s rolling window } ); // Monitor circuit state hubspotBreaker.on('open', () => { console.warn('[HubSpot] Circuit OPEN -- requests failing fast'); // Alert team: Hub...

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

hubspot-rate-limits

Implement HubSpot rate limiting, backoff, and request queuing patterns. Use when handling 429 errors, implementing retry logic, or optimizing API throughput against HubSpot rate limits. Trigger with phrases like "hubspot rate limit", "hubspot throttling", "hubspot 429", "hubspot retry", "hubspot backoff", "hubspot quota".

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

shopify-reliability-patterns

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-sdk-patterns

Apply production-ready @hubspot/api-client SDK patterns for TypeScript. Use when implementing HubSpot integrations, building typed wrappers, or establishing team standards for HubSpot CRM operations. Trigger with phrases like "hubspot SDK patterns", "hubspot best practices", "hubspot typed client", "hubspot api-client wrapper", "idiomatic hubspot".

2,266 Updated today
jeremylongshore