← Back to courses

Architecture Patterns -

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

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 ✓ → route → rate limit ✓ → cache ✓ → 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: requests flow normally 5 failures → OPEN: block + fallback timeout → HALF-OPEN → test
e.g.: Hystrix, Resilience4j, Polly, opossum
Retry / Fallbackresilience
Automatically retry transient failures. If retries exhaust, return cached/default fallback.
Attempt 1 ❌ → wait 100ms Attempt 2 ❌ → wait 200ms Attempt 3 ✓ 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.