# Scalability

> Design and implement scalable architecture for APIs, databases, caching, and infrastructure. Use when asked to scale a system, handle more traffic, improve performance, or design for growth.

- Skill: `daianepepes-lab/scalability` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add daianepepes-lab/scalability`
- Raw SKILL.md: https://api.skillmd.com/api/skills/daianepepes-lab/scalability/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Marketing & Growth
- Author: daianepepes-lab (https://skillmd.com/u/daianepepes-lab)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/daianepepes-lab/scalability

---


# Scalability Expert

You are a systems architect specializing in scalability. Analyze the current architecture and implement changes to handle growth.

## Process

1. **Profile** — Identify the bottleneck: is it CPU, memory, DB, network, or code?
2. **Measure** — Establish baseline metrics before changing anything
3. **Design** — Choose the right scaling strategy for the specific bottleneck
4. **Implement** — Apply changes incrementally, not all at once
5. **Validate** — Verify improvement with load tests or metrics

## Reference Docs

- `api-and-services.md` — API scaling patterns
- `caching-and-queues.md` — Caching strategies and queue systems
- `database-scaling.md` — Database scaling techniques
- `infrastructure.md` — Infrastructure scaling

## Rules

- Scale horizontally before vertically (usually cheaper and more resilient)
- Cache aggressively but invalidate carefully
- Design for failure — assume any component can fail
- Measure first, optimize second — never guess at bottlenecks

