chavangorakh1999/sde-skills/capacity-estimation
Claude Code and agent skill by chavangorakh1999/sde-skills
- community
Checking that the SKILL.md file is still in the repository.
Back-of-envelope capacity estimation: QPS, storage, bandwidth, cache sizing with worked numbers and scale implications. Use when sizing infrastructure or answering 'how big does this need to be?'
Install
npx vskill@latest install chavangorakh1999/sde-skills/capacity-estimationSKILL.md
The same SKILL.md was published earlier as chavangorakh1999/sde-skills/capacity-estimation.
Capacity Estimation
Turn vague scale requirements into concrete numbers that drive infrastructure decisions. Every estimate should answer: what hardware, how much of it, and when do we need to scale?
Context
System to estimate: $ARGUMENTS
Step 1: Nail Down the Inputs
Before calculating anything, extract:
Useful reference points:
- Twitter: ~300M DAU, ~500M tweets/day
- YouTube: ~80M DAU uploads, ~5B views/day
- Average user session: 10-30 min
- Pareto principle: 20% of users generate 80% of traffic
Step 2: Traffic (QPS)
Rule of thumb:
- < 1K QPS: single server fine
- 1K-10K QPS: caching layer critical, consider read replicas
- 10K-100K QPS: horizontal scaling + CDN required
- > 100K QPS: sharding, regional deployment, serious infra work
Step 3: Storage
Storage tiers:
- Hot (< 30 days): SSD, fast retrieval, expensive — keep minimal
- Warm (30d - 1y): HDD or S3 Standard
- Cold (> 1y): S3 Glacier, cheap but slow retrieval
Step 4: Bandwidth
Bandwidth → server count:
- Standard 1Gbps NIC: ~100 MB/s effective
- Standard 10Gbps NIC: ~1 GB/s effective
- Divide total bandwidth by per-server capacity to get minimum server count
Step 5: Cache Sizing
Cache hit rate targets:
- < 80%: revisit data model or cache strategy
- 80-90%: acceptable for most apps
- > 95%: good for read-heavy systems
- > 99%: exceptional (static content, pre-computed results)
Redis memory sizing:
- Overhead: ~50-100 bytes per key beyond value size
- Eviction: LRU for general cache, LFU for frequency-biased access
maxmemory-policy:allkeys-lrufor pure cache,volatile-lruif TTLs mixed
Step 6: Database Connections
Database server sizing:
- Single Postgres: handles ~5K-10K simple queries/sec on decent hardware
- Read replica: offload reads, add 1 replica per 3K read QPS above primary capacity
- Sharding trigger: > 1TB data and query performance degrading, or > 10K writes/sec
Step 7: Implications Summary
After calculating, always state:
- How many API servers do you need?
- Do you need DB sharding now or can you defer?
- What's the biggest cost driver?
- When does the current architecture hit its limits?
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsde-system-design/skills/capacity-estimation/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/chavangorakh1999/sde-skills/capacity-estimation)