Production-grade system design · Open source

Design systems that survive the real world.

Work from product requirements to the decisions that keep software correct: data models, transactions, races, queues, security, observability, and scale.

Start with the productActors, workflows, constraints, and non-goals before infrastructure.
Correctness before scaleTransactions, idempotency, concurrency, and explicit consistency.
Evolve with evidenceSimple beginnings and workload-driven architecture transitions.
10 flagship systems

Project explorer

Each case study makes its own domain tradeoffs. Filter by the engineering problem you want to understand.

Compare two systems →
01 / Case studyAdvanced

E-commerce Platform

Catalog, inventory, checkout, fulfillment, and returns without overselling.

Database
PostgreSQL
System traits
Queue · Payments
TransactionsInventoryIdempotencySearch
02 / Case studyExpert

Food Delivery Platform

Coordinate customers, restaurants, couriers, menus, dispatch, and live delivery state.

Database
PostgreSQL + PostGIS
System traits
Realtime · Queue · Payments
GeospatialDispatchWebSocketsSagas
03 / Case studyExpert

Ride Hailing Platform

Match riders and drivers under location churn and acceptance races.

Database
PostgreSQL + PostGIS
System traits
Realtime · Queue · Payments
GeospatialMatchingConcurrencyStreaming
04 / Case studyAdvanced

Hotel PMS

Property operations, room inventory, reservations, folios, and housekeeping across time zones.

Database
PostgreSQL
System traits
Queue · Payments · Multi-tenant
Multi-tenancyBookingsTimezonesAudit logs
05 / Case studyIntermediate

Appointment SaaS

Multi-tenant scheduling with availability rules, holds, reminders, and calendar sync.

Database
PostgreSQL
System traits
Queue · Payments · Multi-tenant
SchedulingMulti-tenancyTimezonesWebhooks
06 / Case studyAdvanced

Project Management Platform

Tenant-safe projects, tasks, comments, permissions, activity, and collaborative updates.

Database
PostgreSQL
System traits
Realtime · Queue · Multi-tenant
Multi-tenancyAuthorizationRealtimePagination
07 / Case studyExpert

Video Streaming Platform

Ingest, transcode, package, authorize, and deliver on-demand video globally.

Database
PostgreSQL + Object Storage
System traits
Queue
Media pipelinesCDNObject storageQueues
08 / Case studyExpert

Social Network

Create social graphs and feeds while controlling fan-out, abuse, and privacy.

Database
PostgreSQL
System traits
Realtime · Queue
FeedsFan-outGraph dataModeration
09 / Case studyAdvanced

Cloud File Storage

Secure resumable uploads, hierarchy, sharing, versioning, and background scanning.

Database
PostgreSQL + Object Storage
System traits
Realtime · Queue · Multi-tenant
Object storageUploadsACLsQuotas
10 / Case studyExpert

Payment Platform

Safely orchestrate provider payments, idempotency, ledger entries, webhooks, and reconciliation.

Database
PostgreSQL
System traits
Queue · Payments · Multi-tenant
LedgerIdempotencyReconciliationWebhooks
Inside every case study

Learn the decisions between the boxes.

01

Model the invariant

Identify the rule that must remain true under retries and concurrent requests.

02

Place the transaction

Decide which state changes belong in one commit and which must converge.

03

Design failure behavior

Handle timeouts, duplicate delivery, stale caches, and interrupted workers explicitly.

04

Draw the security boundary

Connect actors and objects to authorization, isolation, and audit requirements.

05

Observe the workflow

Measure the domain signals that reveal stuck, slow, or incorrect work.

06

Evolve with evidence

Add partitions, replicas, and specialized stores only when workload pressure justifies them.

Built in public

Improve the engineering reference.

Correct an invariant, add a missed failure, sharpen a diagram, or propose a domain-specific case study.