Skill Issue ›
Browse Skills ›
Scaling patterns
Scaling patterns
Scaling patterns is an AI agent skill from the GitHub repository rnavarych/alpha-engineer . Scaling patterns: horizontal/vertical scaling, async processing, data partitioning, connection pooling, rate limiting, backpressure. Use when scaling services.
How to use this skill
Claude Code: save it as .claude/skills/scaling-patterns/SKILL.md
Cursor: save it as .cursor/rules/scaling-patterns.md
Codex: save it as .agents/skills/scaling-patterns/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Scaling Patterns
When to use
Scaling a service beyond current capacity
Choosing between horizontal and vertical scaling
Implementing async processing, sharding, or rate limiting
Core principles
Measure before scaling — profile first, scale second
Stateless services scale horizontally — move state to databases/caches
Connection pooling is mandatory — direct connections exhaust DB limits
Backpressure prevents cascading failure — reject early rather than queue forever
Rate limiting protects everyone — including your own services from each other
References available
references/horizontal-scaling.md — stateless services, load balancing, autoscaling configs
references/vertical-scaling.md — when vertical is enough, instance sizing, connection pool tuning
references/resource-optimization.md — CPU/memory profiling, bottleneck identification, LRU cache, I/O optimization
references/async-processing.md — queues (SQS, RabbitMQ, Kafka), worker patterns, backpressure, circuit breaker
references/background-jobs.md — BullMQ job scheduling, retry with exponential backoff, DLQ management, cron workers
references/data-partitioning.md — sharding strategies, partition key design, consistent hashing, PostgreSQL native partitioning
references/shard-management.md — shard rebalancing, cross-shard queries, scatter-gather, operational concerns
Scripts available
scripts/estimate-capacity.sh — input RPM and data size, output infra recommendations
Use this skill with your AI agent:
Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.