/polymath-scalability:scalability-reviewfrom polymath-scalability
Review an architecture for scale bottlenecks — single writers, shared state, hot keys, fan-out — and rank what breaks first. Not new design.
Ships in polymath-scalability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every system has a first thing that breaks at 10× load. Find it before traffic does — by looking for serialization points, shared state, and amplification, not for slow code.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
Not this when: you're creating the design from scratch — polymath-scalability:system-design; the issue is one slow endpoint's tail — polymath-performance:backend-tail-latency; or you need the date a known resource runs out — polymath-sre:capacity-plan.
[VERIFY].Without current measurements say so, and rank by structural risk only.
max_connections; thread-per-request vs async; file descriptors; ephemeral ports; per-IP/NAT limits.polymath-scalability:capacity-estimation for projected load; unmeasured limits are [VERIFY] with the test that would measure them (polymath-test-automation:load-test).polymath-architecture:resilience-design).polymath-database:db-scaling-strategy, partitioning-sharding, polymath-scalability:async-workload-design).polymath-sre:chaos-experiment), and the alert/trigger that fires before the limit.Scalability review: checkout platform — target 5× (Black Friday)
Request path: edge → api-gw → checkout-svc → {inventory-svc (sync), pricing-svc (sync), payments (sync)} → orders-db (PG primary)
Rank Risk Evidence / headroom Breaks as Lever (cost)
1 orders-db single writer writes 4.1k/s of ~9k measured ceiling = 2.2×; need 5× → short by 2.3× latency cliff → timeouts → retry storm archive + batch inserts (days); then partition/shard decision (weeks) — db-scaling-strategy
2 inventory-svc hot SKUs top-10 SKUs = 31% of reads [VERIFY: Black Friday mix]; row lock on stock decrement lock queue on hot rows split stock counter into N buckets / reserve via queue (days)
3 checkout → 3 sync hops combined availability 99.9%³ ≈ 99.7%; p99 sum = 1.9 s of 2 s budget tail + cascading failure parallelize pricing+inventory; timeout/fallback; shed at edge (days)
4 pool math 40 pods × 20 conns = 800 vs max_connections 500 connection refusal on scale-out pooler (hours)
5 batch export 02:00 shares primary with prime-time order sync IO contention move to replica (hours)
Not a risk (checked): stateless tier (HPA verified at 4×); CDN; auth.
Verification: load test at 5× with Zipf SKU skew; kill one inventory pod and the pricing dependency; alert at orders-db write IOPS > 60% of ceiling.
Unknowns: [TBD: payments provider rate limit at 5×] — ask vendor + test in sandbox.
[VERIFY] headroom against the target multiple.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/async-workload-designDesign async and background processing — queue vs stream, worker sizing, idempotency, retries and DLQ, backpressure, priority lanes./capacity-estimationDo back-of-envelope sizing — QPS, bandwidth, storage, cache load, node count — via a script. Not a growth forecast (capacity-plan)./multi-region-designDesign multi-region deployment — active-active vs standby, RPO/RTO, replication and conflicts, routing, failover. Not single-region HA./rate-limiting-designDesign rate limits and quotas — token bucket vs window, limit keys, distributed enforcement, 429 headers, fairness, rollout./system-designDesign a scalable system end to end — SLOs, capacity, API and data model, components, scaling and failure modes, trade-offs.Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-scalability