Engineering Pattern Catalog
Connect recurring system design problems to proven structural solutions. Evaluate problem fit, operational trade-offs, failure modes, and alternatives.
❖ Browse Mode
Pattern Catalog
Cache-Aside & Read-Through Pattern
Mitigating high database latency under read-heavy workloads while maintaining consistency.
Caching keeps a reusable copy of data so an application can avoid repeating a database query, calculation, or network call. It can make responses faster and reduce database load. The trade-off: the copy may be out of date.
Cache-Aside & Read-Through Pattern
Cache-Aside & Read-Through Pattern
Cache-Aside & Read-Through Pattern
Mitigating high database latency under read-heavy workloads while maintaining consistency.
Caching keeps a reusable copy of data so an application can avoid repeating a database query, calculation, or network call. It can make responses faster and reduce database load. The trade-off: the copy may be out of date.
Token Bucket Rate Limiting Pattern
Token Bucket Rate Limiting Pattern
Preventing service degradation and cascading resource exhaustion under sudden bursts of incoming client traffic.
Rate limiting enforces caps on request or resource consumption per caller, tenant, or endpoint over time to protect downstream capacity, ensure fair multi-tenant sharing, and blunt abuse.
Circuit Breaker Fault Isolation Pattern
Circuit Breaker Fault Isolation Pattern
Failing fast and isolating cascading downstream service latency before exhaustion of connection pools.
A stateful proxy that monitors downstream failures and slow calls over a sliding window, tripping open to fail fast in microseconds instead of letting 2,000ms+ timeouts exhaust caller thread pools.
Horizontal Database Sharding Pattern
Horizontal Database Sharding Pattern
Scaling relational storage throughput and capacity beyond the physical constraints of a single database node.
Horizontally partitioning a dataset across independent database nodes by a shard key—using either contiguous key ranges or consistent hashing—to scale write throughput and storage beyond a single primary's CPU, IOPS, and memory ceiling.
Distributed Locking with Fencing Tokens
Distributed Locking with Fencing Tokens
Enforcing mutual exclusion across distributed stateless workers accessing shared non-atomic resources.
Distributed locking coordinates mutually exclusive access to a shared resource across independent processes that share no memory, using a network-accessible lease store such as Redis, etcd, or ZooKeeper.
Log-Structured Merge-Tree (LSM) Write Buffering
Log-Structured Merge-Tree (LSM) Write Buffering
Optimizing high-throughput sequential write ingestion without stalling on random disk seeks.
B-Trees update fixed-size disk pages (4-16 KiB) in place for fast, predictable point and range reads, whereas LSM-Trees buffer writes sequentially in memory (MemTable + WAL) and merge immutable sorted runs (SSTables) in the background for orders-of-magnitude higher write throughput.
Transactional Outbox
Transactional Outbox
Publishing integration events reliably after local database commits without dual-write races.
The Transactional Outbox pattern eliminates dual-write split-brain by inserting domain events into an `outbox` table inside the exact same ACID database transaction as the business state change, then relaying them asynchronously to Kafka/RabbitMQ.
Need an ordered sequence for a specific engineering goal?
Generate an end-to-end learning path with prerequisites based on your target role or topic.