StackMonkey
Home / Templates

10 Production System Design Templates & Simulations

Production system design architectures with capacity sizing, API contracts, data models, and discrete-event failure modes. Read the deep-dive architectural specifications or launch them directly in the simulator to stress-test bottlenecks under live traffic.

The capacity numbers in each template are design targets for that scenario, not measurements. The simulator engine that runs them is checked against queueing theory. No account is needed to open one.

High-Throughput API 50k Read QPS 路 <15ms P99

URL Shortener System Design

Base62 encoding, 100:1 read-to-write skew, 80/20 Pareto Redis working set (167 GB), and Little鈥檚 Law database connection pool saturation.

Base62 Redis Cluster PostgreSQL Kafka
Real-Time Messaging 500k Sockets 路 5k msgs/s

Chat System Design

Persistent full-duplex WebSockets, Linux epoll file descriptor limits, Redis Pub/Sub session affinity routing, and Cassandra time-series commit logs.

WebSockets Epoll RAM Redis Pub/Sub Cassandra
Social Timeline 300M DAU 路 350k QPS

News Feed System Design

Hybrid push and pull fan-out trade-offs, celebrity thundering herd mitigation, and Redis sorted set timeline caching.

Fan-Out Push/Pull Sorted Sets Celebrity Cache Kafka
Media Pipeline 100M Views 路 4.8 Tbps

Video Streaming System Design

Adaptive Bitrate (HLS/DASH) chunking, multi-tier CDN origin shielding, client buffer heuristics, and Erlang-B CDN capacity models.

HLS / DASH CDN Origin Shield Transcoding S3 Storage
Storage & Sync 50M Users 路 10 PB

File Storage System Design

Content-defined chunking (FastCDC), 62% SHA-256 block deduplication, optimistic CAS file synchronization, and conflicted copy resolution.

Block Dedup FastCDC Optimistic Sync Object Store
Geospatial Dispatch 1M Drivers 路 250k pings/s

Ride Sharing System Design

Uber H3 hexagonal spatial indexing, rolling 3-second batch bipartite matching, double-booking race condition mitigation, and surge pricing queues.

Uber H3 Grid Batch Matching Redis Geo Distributed Locks
Traffic Management 1M req/s 路 <2ms SLA

Rate Limiter System Design

Token Bucket vs Sliding Window Counter algorithms, atomic Redis Lua scripts, retry storm dampening, and fail-open circuit breakers.

Token Bucket Sliding Window Redis Lua Circuit Breaker
Priority Messaging 500M Alerts/day 路 P0/P1/P2

Notification System Design

Priority queue isolation (P0 OTP vs P1 Transactional vs P2 Promotional), atomic idempotency deduplication, and carrier failure circuit breakers.

Priority Queues Idempotency Keys APNs / FCM Dead Letter Queues
Web Scale Scraping 1B Pages/mo 路 72GB Bloom

Web Crawler System Design

Mercator two-tier frontier queues (Priority vs Host Politeness), 72 GB scalable Bloom filter deduplication, and crawler trap defense mechanics.

Bloom Filters Politeness Queues DNS Cache Frontier Scheduling
Financial Engineering 10k tx/s 路 Idempotent

Payment System Design

Double-entry bookkeeping, Saga orchestration with compensating transactions, Transactional Outbox pattern with Debezium CDC, and zero-loss guarantees.

Double-Entry Saga Orchestrator Transactional Outbox Idempotency