Skip to main content
❖ Architectural Decision Patterns

Engineering Pattern Catalog

Connect recurring system design problems to proven structural solutions. Evaluate problem fit, operational trade-offs, failure modes, and alternatives.

7Reviewed Patterns
7Pattern Categories
7Canonical

❖ Browse Mode

Pattern Catalog

⭐ Featured Architectural PatternPerformance & Caching

Cache-Aside & Read-Through Pattern

Mitigating high database latency under read-heavy workloads while maintaining consistency.

Structural Solution Shape

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.

Performance & Cachingcanonical

Cache-Aside & Read-Through Pattern

Mitigating high database latency under read-heavy workloads while maintaining consistency.

Structural Solution Shape

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.

Traffic Shaping & Resiliencycanonical

Token Bucket Rate Limiting Pattern

Preventing service degradation and cascading resource exhaustion under sudden bursts of incoming client traffic.

Structural Solution Shape

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.

Traffic Shaping & Resiliencycanonical

Circuit Breaker Fault Isolation Pattern

Failing fast and isolating cascading downstream service latency before exhaustion of connection pools.

Structural Solution Shape

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.

Distributed Storage & Partitioningcanonical

Horizontal Database Sharding Pattern

Scaling relational storage throughput and capacity beyond the physical constraints of a single database node.

Structural Solution Shape

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.

Concurrency & Coordinationcanonical

Distributed Locking with Fencing Tokens

Enforcing mutual exclusion across distributed stateless workers accessing shared non-atomic resources.

Structural Solution Shape

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.

Storage Engines & Internalscanonical

Log-Structured Merge-Tree (LSM) Write Buffering

Optimizing high-throughput sequential write ingestion without stalling on random disk seeks.

Structural Solution Shape

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.

Integration & Data Consistencycanonical

Transactional Outbox

Publishing integration events reliably after local database commits without dual-write races.

Structural Solution Shape

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.

Learning Journeys & Roadmaps

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.

Explore Learning Roadmaps →