Architecture Patterns - Complete Reference Map

// All 9 categories Β· Every major pattern Β· Layered top-to-bottom as a real system flows

56 total patterns
Client
Deployment
Security
Integration
Reliability
Distributed
Messaging
Data
Structural
UI/Frontend
00Internet / Client Zone- Who initiates requests into your system
↓
01Deployment & Infrastructure Patterns- How software is deployed, run, and released
↓
02Security Patterns- Verifying identity, controlling access, protecting data β˜… applies across ALL layers
↓
03Integration & Gateway Patterns- How clients connect to internal services
πŸšͺAPI Gatewayβ˜… entry point
Single entry point for ALL clients. Handles routing, auth, rate-limiting, caching, load balancing before touching any service.
Client -> [API Gateway] auth OK -> route -> rate limit OK -> cache OK -> forward to correct service
e.g.: Kong, AWS API GW, Nginx, Express Gateway
πŸ“±BFF - Backend for Frontendintegration
Separate backend tailored for each client type. Mobile gets a lean API. Web gets a richer one.
Mobile -> BFF-Mobile -> services Web App -> BFF-Web -> services TV App -> BFF-TV -> services
e.g.: Netflix APIs, Next.js API routes, NestJS
πŸͺ—Aggregatorintegration
Calls multiple downstream services in parallel, merges all results into one single response for the client.
Client -> Aggregator -> [Svc A] + [Svc B] + [Svc C] <- merge -> single response
e.g.: GraphQL resolvers, Apollo Server, DataLoader
⚑Circuit Breakerresilience
Stops calls to failing downstreams to prevent cascade failures via CLOSED -> OPEN -> HALF-OPEN recovery probes.
CLOSED: normal traffic 5 failures in window -> OPEN: fast-fail + fallback resetTimeout -> HALF-OPEN: allow 1 probe probe success -> CLOSED | probe failure -> OPEN
e.g.: Hystrix, Resilience4j, Polly, opossum
πŸ”Retry / Fallbackresilience
Automatically retry transient failures. If retries exhaust, return cached/default fallback.
Attempt 1 fail -> wait 100ms Attempt 2 fail -> wait 200ms Attempt 3 OK OR -> fallback
e.g.: axios-retry, p-retry, async-retry, Polly
πŸ”ŒAdapter / Anti-Corruption Layerintegration
Translates between incompatible interfaces or domain models. Keeps your domain clean from 3rd-party concepts.
Your Domain <- [ACL/Adapter] <- External translates models both ways your core stays clean
e.g.: SDK wrappers, zod mappers, legacy adapters
↓
04Reliability & Scalability Patterns- Keep the system up and handle load β˜… applies across ALL layers
↓
05Distributed Systems Patterns- How services are organized across machines
↓
06Messaging & Communication Patterns- How services talk to each other asynchronously
↓
07Data Management Patterns- How data is stored, accessed, and kept consistent
↓
08AStructural / App Architecture
08BUI / Frontend Patterns
Security patterns (Zero Trust, OAuth, JWT) and Reliability patterns (Circuit Breaker, Bulkhead, Rate Limiting, Cache) are cross-cutting: they apply at every layer above, not just their designated row.