跳到正文
Skillpedia
其他48k · #5234

scale-benchmarks

它能做什么

这个工具可以帮你估算一个应用需要的容量,比如能承载多少用户,需要多少存储空间和网络流量。它针对不同规模的用户群体,提供了计算公式和示例。

适用场景

  • ✓你在规划新应用的基础设施时。
  • ✓你在估算网站或服务的托管成本时。
  • ✓你要把应用扩展到能支持更多用户时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monopoly/scale-benchmarks/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/monopoly/scale-benchmarks/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“一个每日活跃用户(DAU)为 100,000 的应用,大概需要多少流量和存储空间?”

每周 5 个新技能,1 分钟读完。

工作原理

工具会根据用户数量、数据大小和使用频率等信息,套用公式计算出每秒请求数(RPS)、磁盘空间和带宽等指标。它还会对比常见技术方案。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MONOPOLY — Scale Benchmarks & Estimation Formulas

When to Use

  • Use this skill when the task matches this description: Reference document for monopoly scale-benchmarks.

Quick Estimation Formulas

User → RPS Conversion

Requests per second (avg) = DAU × avg_requests_per_user_per_day / 86400
Requests per second (peak) = avg_RPS × peak_multiplier

Peak multipliers by app type:
  Social media:      5–10×
  E-commerce:        3–5× (higher during sales)
  News / media:      10–20× (breaking news spike)
  B2B SaaS:          2–3× (business hours spike)
  Gaming:            5–15× (event-driven)

Storage Estimation

Storage per day    = requests_per_day × avg_payload_size
Storage per year   = storage_per_day × 365
With replication   = storage_per_year × replication_factor (3× typical)
With CDN/cache     = reduce by cache_hit_ratio (80% hit = 20% origin load)

Common payload sizes:
  Tweet / short text:    500B
  Social post with text: 2KB
  Profile data:          5KB
  Image (compressed):    200KB–2MB
  Video (per minute):    50MB (720p), 150MB (1080p)
  API JSON response:     1–20KB

Bandwidth Estimation

Inbound bandwidth  = avg_request_size × RPS
Outbound bandwidth = avg_response_size × RPS

Convert: 1 Gbps = 125 MB/s
         10 Gbps = 1.25 GB/s

Known Scale Limits of Common Technologies

Databases

Technology Single Node Writes Reads (with replicas) Recommended Shard/Cluster Trigger
PostgreSQL ~5K–20K writes/s ~50K–200K reads/s >5TB data or >20K writes/s
MySQL ~10K–25K writes/s ~60K–250K reads/s >5TB or >25K writes/s
MongoDB ~20K–50K writes/s ~50K–100K reads/s >100GB or >50K writes/s
Cassandra ~200K–1M writes/s ~200K–500K reads/s Almost never needs explicit sharding
DynamoDB Unlimited (managed) Unlimited (managed) Use provisioned capacity mode
Redis ~500K–1M ops/s Same >50GB data or cluster needed
Elasticsearch ~10K–50K docs/s ~1K–10K queries/s >100M documents per index

Queues / Streams

Technology Max Throughput Max Consumers Retention
Kafka 1M+ msgs/s per cluster Unlimited consumer groups Configurable (days–forever)
RabbitMQ ~50K–100K msgs/s Limited by connections Until consumed
SQS Standard Unlimited (AWS-managed) Unlimited 14 days
SQS FIFO 3K msgs/s per queue Per group 14 days
Redis Pub/Sub ~1M msgs/s Limited by subscribers None (fire-and-forget)

Caching

Technology Max Memory (single) Max Throughput Latency
Redis ~1TB RAM ~1M ops/s <1ms
Memcached ~64GB RAM ~1M ops/s <1ms
In-process (Caffeine/Guava) JVM heap Unlimited (local) <0.1ms

Capacity Planning by User Scale

1K DAU

Avg RPS:       ~1–5 RPS
Peak RPS:      ~10–50 RPS
DB size/year:  ~10–50GB
Infra needed:  Single server, managed DB (RDS t3.medium), basic CDN
Monthly cost:  $50–200

10K DAU

Avg RPS:       ~10–50 RPS
Peak RPS:      ~100–500 RPS
DB size/year:  ~100–500GB
Infra needed:  2–4 app servers, RDS r5.large, Redis t3.medium, CDN
Monthly cost:  $300–800

100K DAU

Avg RPS:       ~100–500 RPS
Peak RPS:      ~1K–5K RPS
DB size/year:  ~1–5TB
Infra needed:  ASG (5–10 app servers), RDS r5.xlarge + 2 replicas, Redis cluster, CDN, ALB
Monthly cost:  $2K–8K

1M DAU

Avg RPS:       ~1K–5K RPS
Peak RPS:      ~10K–50K RPS
DB size/year:  ~10–50TB
Infra needed:  ASG (20–50 servers), DB sharding or Aurora, Redis cluster, Kafka, CDN, WAF
Monthly cost:  $20K–80K

10M DAU

Avg RPS:       ~10K–50K RPS
Peak RPS:      ~100K–500K RPS
DB size/year:  ~100–500TB
Infra needed:  Multi-region, microservices, distributed DB (Cassandra/CockroachDB), full CDN, dedicated SRE
Monthly cost:  $200K–2M+

Common SLO Targets

Tier Availability Monthly Downtime Allowed
99% Basic 7.2 hours/month
99.9% (three nines) Standard production 43.8 minutes/month
99.95% Important services 21.9 minutes/month
99.99% (four nines) Critical services 4.38 minutes/month
99.999% (five nines) Telecom / payments 26 seconds/month

…

常见问题

DAU 和 RPS 是什么意思?

DAU 是 Daily Active Users 的缩写,指每日活跃用户数;RPS 是 Requests Per Second 的缩写,指每秒请求数。

单次数据量(payload)大小如何影响存储?

数据量越大,每次请求占用的空间就越多。用户一多,随着时间推移,存储需求会迅速增长。

“99.9% 可用性”是什么意思?

意思是服务应有 99.9% 的时间处于正常运行状态,也就是每月大约允许 43 分钟的停机时间。

详情

作者的原始描述

Reference document for monopoly scale-benchmarks.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5234
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能