Agent skill · marketing growth · jeremylongshore

customerio-performance-tuning

Optimize Customer.io API performance for high throughput.

Why this skill is useful

Adds specific optimization scripts for Customer.io API performance that are not available in public documentation.

What it needs

Requires npm installed locally. Requires customer.io account access. About 5k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Customer.io Performance Tuning Output A measured delivery/API performance baseline with a scoped optimization, owner, and rollback trigger. A capacity decision that preserves consent, message correctness, rate limits, and provider reliability. Examples Measure event throughput, response latency, error rate, and queue depth in a development workspace using synthetic payloads. Change one batch/concurrency parameter, compare against the baseline, and revert if errors, rate limits, or message ordering regress. Do not increase concurrency by replaying production recipient data. 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 Step 2: Identify Deduplication Cache Step 3: Batch Processor Step 4: Fire-and-Forget Async Tracking Step 5: Regional Routing Performance Monitoring Error Handling Issue Solution ------- ---------- High p99 latency Enable connection pooling, check DNS resolution Timeout errors Increase timeout, reduce payload size Memory growth Cap LRU cache size, limit batch buffer Dedup cache misses Increase TTL if same identify calls are >5min apart Resources Track API Reference About Customer.io APIs Account Regions Next Steps After performance tuning, proceed to customerio-cost-tuning for cost optimization.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/customerio-performance-tuning--4af1bb

View the source on GitHub

Browse the @skills marketplace