customerio-performance-tuning

Featured

Optimize Customer.io API performance for high throughput. Use when improving response times, implementing connection pooling, batching, caching, or regional routing. Trigger: "customer.io performance", "optimize customer.io", "customer.io latency", "customer.io connection pooling".

AI & Automation 2,944 stars 440 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

# Customer.io Performance Tuning ## Overview Optimize Customer.io API performance for high-volume integrations: HTTP connection pooling, identify deduplication caching, event batching with flush control, fire-and-forget async tracking, and regional routing. ## Prerequisites - Working Customer.io integration - Understanding of your traffic patterns and volume - Monitoring to measure improvement (see `customerio-observability`) ## Performance Targets | Operation | Baseline | Optimized | Technique | |-----------|----------|-----------|-----------| | Single identify | ~200ms | ~80ms | Connection pooling | | Single track | ~200ms | ~80ms | Connection pooling | | 100 events batch | ~20s serial | ~500ms | Parallel batching | | Duplicate identify | ~200ms | ~0ms | Dedup cache | | Non-critical track | Blocking | Non-blocking | Fire-and-forget | ## Instructions ### Step 1: HTTP Connection Pooling ```typescript // lib/customerio-pooled.ts import { TrackClient, RegionUS } from "customerio-node"; import https from "https"; // The customerio-node SDK creates new connections by default. // Reuse connections with a keep-alive agent. const agent = new https.Agent({ keepAlive: true, maxSockets: 25, // Max concurrent connections maxFreeSockets: 10, // Keep idle connections open timeout: 30000, // 30s socket timeout keepAliveMsecs: 15000, // TCP keep-alive probe interval }); // Apply to the SDK by creating a singleton with the agent // Note: customerio-node ...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category