Category

microservices

6 articles across 2 sub-topics

Service Mesh Pattern: Control Plane, Data Plane, and Zero-Trust Traffic

TLDR: A service mesh intercepts all service-to-service traffic via injected Envoy sidecar proxies, letting a platform team enforce mTLS, retries, timeouts, and circuit breaking centrally — without changing application code. Reach for it when cross-te...

14 min read

Saga Pattern: Coordinating Distributed Transactions with Compensation

TLDR: A Saga replaces fragile distributed 2PC with a sequence of local transactions, each backed by an explicit compensating transaction. Use orchestration when workflow control needs a single brain; use choreography when services must stay loosely c...

14 min read

Microservices Data Patterns: Saga, Transactional Outbox, CQRS, and Event Sourcing

TLDR: Microservices get risky when teams distribute writes without defining how business invariants survive network delays, retries, and partial failures. Patterns like transactional outbox, saga, CQRS, and event sourcing exist to make those rules ex...

12 min read

CQRS Pattern: Separating Write Models from Query Models at Scale

TLDR: CQRS works when read and write workloads diverge, but only with explicit freshness budgets and projection reliability. The hard part is not separating models — it is operating lag, replay, and rollback safely. An e-commerce platform's order se...

13 min read

Circuit Breaker Pattern: Prevent Cascading Failures in Service Calls

TLDR: Circuit breakers protect callers from repeatedly hitting a failing dependency. They turn slow failure into fast failure, giving the rest of the system room to recover. TLDR: A circuit breaker is useful only if it is paired with good timeouts, l...

14 min read