Phase 13 Interactive Simulators(13)

Browse all 13 labs →
📈 Scale-Up vs Scale-Out Physics — full guide →

Scale-Up vs Scale-Out Physics Lab

Watch Amdahl's Law flatten vertical throughput while cloud price curves turn exponential.

Delivered throughput15,894 QPS
vs no Amdahl loss: 96,000
Monthly cost$5,475
$344 / kQPS·mo
Core efficiency17% of linear
Amdahl: S(N)=1/(s+(1−s)/N)
1-node crash blast radius100% down
SPOF: kernel panic = total outage
A 64-core node plateaus at ~15,894 QPS by Amdahl's Law — demand unmet.
💡 Cheapest strategy that still covers demand: Horizontal (scale-out) — vertical has a hard ceiling. A $0.34/hr c6i.2xlarge fleet scales linearly; a u-24tb1.112xlarge costs $100k+/mo — a 400× price jump for non-linear throughput.
PHASE 13 CURRICULUM

Performance, Scaling & Capacity

Progress0 of 13 (0%)

Phase 13 establishes the quantitative foundation and high-performance scaling principles required to design resilient global distributed systems.

Key Architectural Domains & Syllabus
Topics cover the physics and financial trade-offs of Vertical vs Horizontal Scaling (NUMA boundaries, Amdahl’s Law)
Stateless vs Stateful service architectures (Redis sessions, Kubernetes StatefulSets, WebSocket scale)
Back-of-the-Envelope mental math frameworks (the 100,000 seconds/day rule, Jeff Dean's latency numbers)
a complete 500M DAU End-to-End Capacity Estimation model (QPS, 5-year multi-tier storage, bandwidth line rates, and RAM cache sizing). We deep-dive into Read-Heavy vs Write-Heavy storage engines (B+ Trees vs LSM Trees)
the Hotspot and Celebrity Problem (Hybrid Fanout, Key Salting, in-memory micro-caching)
Connection Pool tuning (Little's Law, PostgreSQL sizing formulas, PgBouncer)
Batching and Bulk Operations (Kafka linger.ms, SQL COPY protocol)
Data Compression (Brotli, Zstandard, Snappy, Protobuf serialization)
Data Locality and Speed-of-Light global latency limits
Multi-Region Disaster Recovery (Active-Passive failover, RTO/RPO, CRDTs, Spanner TrueTime)
Global Load Balancing (GeoDNS vs BGP Anycast)
Cloud Cost Optimization (FinOps, Spot Fleets, S3 Lifecycle archiving, cross-AZ egress elimination)
13 In-Depth Topics ~104 Minutes Reading Time Interactive Quizzes & Assessments

All Topics in Phase 13

0 of 13 completed

Explore the fundamental engineering trade-offs of scaling: Vertical (Scale-Up) vs Horizontal (Scale-Out), hardware limits, NUMA architecture, Amdahl's Law, and cloud cost inflection curves.

10 min read•3 Quiz Questions

Design highly elastic cloud architectures: Externalizing session state to distributed caches, overcoming sticky session traps, Kubernetes StatefulSets vs Deployments, and scaling stateful WebSocket connections.

10 min read•3 Quiz Questions

Master rapid capacity sizing and mental arithmetic: Powers of two vs powers of ten, the 100,000 seconds/day rule, Jeff Dean's latency numbers, and converting business scale into CPU, RAM, disk, and bandwidth requirements.

10 min read•3 Quiz Questions

Work through a comprehensive, rigorous end-to-end capacity planning model: Sizing a 500M DAU global social platform from QPS and 5-year multi-tier storage to network egress bandwidth and Redis cluster RAM sizing.

11 min read•3 Quiz Questions

Architect for divergent workload profiles: Deep comparison of storage engines (B+ Trees vs LSM Trees), CQRS read denormalization vs write-buffering queues, and fan-out-on-write vs fan-out-on-read.

10 min read•3 Quiz Questions

Solve extreme traffic skew and partition key saturation: Hybrid Fan-Out architecture for viral accounts, write-side salted distributed counters, read-side cache key replication, and local in-memory L1 micro-caching.

11 min read•3 Quiz Questions

Maximize throughput and eliminate OS thread thrashing: PostgreSQL connection pool sizing formulas, Little's Law ($L = \lambda W$), PgBouncer transaction pooling modes, and tuning CPU vs I/O worker thread pools.

10 min read•3 Quiz Questions

Multiply system throughput by 10x–100x: Amortizing system call and network packet overhead, SQL multi-row bulk inserts vs COPY protocols, Kafka producer batch tuning (linger.ms & batch.size), and micro-batching buffer patterns.

10 min read•3 Quiz Questions

Slash cloud bandwidth egress bills and storage footprints: Algorithm benchmarks (Brotli vs Zstandard vs Snappy vs Gzip), binary serialization with Protocol Buffers, and avoiding compression traps.

10 min read•3 Quiz Questions

Overcome the physical speed of light in fiber: Global latency boundaries (~5ms per 1,000 km), edge compute with localized read replicas (LiteFS / Aurora Global), edge TLS termination, and GDPR data residency compliance.

10 min read•3 Quiz Questions

Architect for catastrophic disaster recovery: RTO and RPO modeling, Active-Passive automated failover and split-brain fencing, Multi-Region Active-Active with CRDTs and Spanner TrueTime, and automated regional evacuation.

11 min read•3 Quiz Questions

Steer global user traffic across worldwide datacenters: GeoDNS and EDNS Client Subnet (ECS), DNS TTL caching traps, BGP Anycast Layer-3 routing mechanics, and sub-second disaster recovery failover.

10 min read•3 Quiz Questions

Architect for financial sustainability: Eliminating cloud egress cost traps ($0.08–$0.12/GB), Spot fleet orchestration, S3 lifecycle tiers (95% savings in Glacier Deep Archive), ARM64 Graviton economics, and cross-AZ traffic elimination.

11 min read•3 Quiz Questions