Tagged “Distributed-Systems”
5 articles with this tag.
- Consistency & consensusWhat consistency means in distributed systems: the spectrum from linearizability to eventual consistency, session guarantees, CAP and PACELC explained correctly, quorums, Raft consensus, clocks and ordering, isolation levels, and how to choose per use case.
- CQRS & event sourcingSeparating writes from reads with CQRS, storing state as events with event sourcing, aggregates and projections, snapshots, upcasting and GDPR, read-model consistency, when to use each pattern, and the tools.
- Distributed transactionsWhy ACID across services is hard: how two-phase commit and XA work, why they rarely fit microservices, distributed SQL as an alternative, and the toolkit that replaces them: local transactions, outbox, idempotency, sagas, TCC and reservations.
- Saga patternManaging business transactions across services with sagas: local transactions and compensations, choreography vs orchestration, saga state machines, pivot and retriable steps, isolation countermeasures (semantic locks, commutative updates), durable execution with Temporal, and testing and observability.
- Outbox, CDC & idempotencyThe three patterns that make event-driven systems reliable: the transactional outbox (polling vs log-based CDC with Debezium), the inbox and idempotent consumers, idempotency keys for APIs, deduplication strategies, and ordering.