Tidbit

Cloud Architecture

Production-grade cloud patterns for event-driven systems, serverless, resilience, data management, and deployment strategies.

24 conceptsInteractive diagrams
Strangler Fig Pattern
Incrementally replaces a legacy system by routing traffic to new services over time.
Sidecar Pattern
Deploys a helper container alongside each service to handle cross-cutting concerns.
Ambassador Pattern
Places a proxy container in front of a service to handle network tasks like retries and routing.
Anti-Corruption Layer (ACL)
Translates between two domain models to prevent a legacy system from polluting a new one.
Event-Driven Architecture
Decouples services by having them communicate through events rather than direct calls.
Event Sourcing
Stores state as an immutable sequence of events rather than current values.
CQRS — Command Query Responsibility Segregation
Separates the write model from the read model for independent scaling and optimisation.
Saga Pattern
Manages distributed transactions across services using a sequence of compensating actions.
Outbox Pattern
Reliably publishes events by writing them to a database outbox before sending.
Serverless Architecture
Runs code in ephemeral, fully-managed functions triggered by events.
Fan-Out / Fan-In Pattern
Splits work across parallel workers then aggregates results back together.
Competing Consumers Pattern
Multiple workers pull from the same queue to process messages concurrently.
Durable Execution Pattern
Persists workflow state so long-running processes survive crashes and restarts.
Circuit Breaker Pattern
Stops calling a failing service to give it time to recover and prevent cascade failures.
Bulkhead Pattern
Isolates failures by partitioning resources so one overloaded consumer cannot sink others.
Retry with Exponential Backoff & Jitter
Re-attempts failed calls with exponential backoff and randomised jitter.
Throttling & Rate Limiting Pattern
Controls the rate of outbound calls using token buckets or sliding windows.
Database per Service Pattern
Each microservice owns its own database to enforce loose coupling.
CQRS + Read Replicas Pattern
Combining separate write and read models with read replicas for maximum read throughput.
Materialized View Pattern
Pre-computes and caches query results for fast reads at the cost of staleness.
Blue/Green Deployment
Maintains two identical environments and switches traffic instantly for zero-downtime deploys.
Canary Deployment
Rolls out a new version to a small percentage of users before a full release.
Feature Flags Pattern
Decouples deployment from release, enabling runtime toggling of features.
Sidecar Service Mesh Pattern
Handles service-to-service communication, observability, and security via a dedicated infrastructure layer.