System design / 5 simulations
Distributed Systems Patterns for System Design
Distributed systems patterns you can break: CDN caching, event sourcing and CQRS, the transactional outbox, gossip failure detection and CRDTs.
Open the lab → Change the load, break a part, watch what happens. Free, no sign-up.
All topics: distributed patterns
- CDN edge caching: TTL, cache keys, purge and stale contentBeginner · 5 min
Tune the TTL, break the cache key with cookies, purge on deploy and turn on stale-while-revalidate. Watch hit ratio, origin load and staleness.
- Event sourcing and CQRS: replay the log, rebuild read modelsAdvanced · 5 min
Store every change as an event, build read models from the log, ship a bug and rebuild. Compare with CRUD, watch projection lag and snapshots.
- Transactional outbox: no lost events, no dual writesIntermediate · 5 min
Kill the order service between the DB write and the Kafka publish. Dual writes lose events; the outbox and CDC never do, but send some twice.
- Gossip protocol and failure detection: heartbeats and timeoutsAdvanced · 5 min
Kill a node and watch the news spread. Compare a central monitor, all-to-all heartbeats and gossip, and see short timeouts flag healthy nodes.
- CRDTs vs last-write-wins: resolving conflicting writesAdvanced · 5 min
Split two regions, keep counting likes on both sides, then heal. Last-write-wins loses likes, vector clocks need merge code, CRDTs merge themselves.
Other topics
- System Design Basics
- Scaling Databases and Caches
- Queues, Kafka and Streaming
- Reliability and API Gateways
- Security and Authentication for System Design
- Testing and Reliability for System Design
- Networking and API Design for System Design
- Database Internals for System Design
- Data Platform and Data Engineering for System Design
- Observability for System Design
- DevOps and Cloud Infrastructure
- Payment System Design
- System Design Interview Questions