apollo-performance-tuning

Featured

Optimize Apollo.io API performance. Use when improving API response times, reducing latency, or optimizing bulk operations. Trigger with phrases like "apollo performance", "optimize apollo", "apollo slow", "apollo latency", "speed up apollo".

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

# Apollo Performance Tuning ## Overview Optimize Apollo.io API performance through response caching, connection pooling, bulk operations, parallel fetching, and result slimming. Key insight: **search is free but slow (~500ms), enrichment costs credits** — cache aggressively and batch enrichment calls. ## Prerequisites - Valid Apollo API key - Node.js 18+ ## Instructions ### Step 1: Connection Pooling Reuse TCP connections to avoid TLS handshake overhead on every request. ```typescript // src/apollo/optimized-client.ts import axios from 'axios'; import https from 'https'; const httpsAgent = new https.Agent({ keepAlive: true, maxSockets: 10, maxFreeSockets: 5, timeout: 30_000, }); export const optimizedClient = axios.create({ baseURL: 'https://api.apollo.io/api/v1', headers: { 'Content-Type': 'application/json', 'x-api-key': process.env.APOLLO_API_KEY! }, httpsAgent, timeout: 15_000, }); ``` ### Step 2: Response Caching with Per-Endpoint TTLs ```typescript // src/apollo/cache.ts import { LRUCache } from 'lru-cache'; // Different TTLs based on data volatility const CACHE_TTLS: Record<string, number> = { '/organizations/enrich': 24 * 60 * 60 * 1000, // 24h — company data rarely changes '/people/match': 4 * 60 * 60 * 1000, // 4h — contact data changes occasionally '/mixed_people/api_search': 15 * 60 * 1000, // 15min — search results are dynamic '/mixed_companies/search': 30 * 60 * 1000, // 30min — company search '/co...

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

attio-performance-tuning

Optimize Attio API performance -- caching, batch queries, pagination strategies, connection pooling, and latency reduction. Trigger: "attio performance", "optimize attio", "attio slow", "attio latency", "attio caching", "attio batch requests".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-cost-tuning

Optimize Apollo.io costs and credit usage. Use when managing Apollo credits, reducing API costs, or optimizing subscription usage. Trigger with phrases like "apollo cost", "apollo credits", "apollo billing", "reduce apollo costs", "apollo usage".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-performance-tuning

Optimize Klaviyo API performance with caching, batching, and pagination tuning. Use when experiencing slow API responses, implementing caching strategies, or optimizing request throughput for Klaviyo integrations. Trigger with phrases like "klaviyo performance", "optimize klaviyo", "klaviyo latency", "klaviyo caching", "klaviyo slow", "klaviyo batch".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-rate-limits

Implement Apollo.io rate limiting and backoff. Use when handling rate limits, implementing retry logic, or optimizing API request throughput. Trigger with phrases like "apollo rate limit", "apollo 429", "apollo throttling", "apollo backoff", "apollo request limits".

2,266 Updated today
jeremylongshore
AI & Automation Featured

appfolio-performance-tuning

Optimize AppFolio API performance with caching and batch operations. Trigger: "appfolio performance".

2,266 Updated today
jeremylongshore