Part 2: Event-Driven Architecture — Kafka at Scale, Transactional Outbox & Idempotency

Previous Chapter: Part 1 — Microservices & GitOps Blueprint | Series Hub | Next Chapter: Part 3 — Data Infrastructure: From Aurora to TiDB Answer-First: Handling sudden promotional payment spikes of thousands of TPS requires complete decoupling of synchronous ingress requests from asynchronous ledger persistence. PayPay implements an Event-Driven Architecture centered on Apache Kafka. To guarantee zero financial discrepancies between the database and event streams, PayPay utilizes the Transactional Outbox Pattern with Debezium CDC, avoiding dual-write race conditions. Downstream consumer microservices enforce strict idempotency via Redis distributed locks and UUIDv7 idempotency keys, paired with isolated Dead Letter Queues (DLQ) to prevent poisoned payloads from blocking partition processing. ...

Event Sourcing & CQRS: Immutable Ledger for Microservices

Series Navigation: This is Part 3 of the Core Banking Systems Architecture Masterclass. ← Previous: Part 2 — Distributed SQL ACID Latency | Master Curriculum Hub | Next: Part 4 — Saga Pattern → | Pillar Hub: Banking Microservices Architecture Event Sourcing & CQRS: Immutable Ledger for Microservices Answer-first: Event Sourcing and CQRS resolve the fundamental architectural tension in core banking between immutable auditability on the write path and ultra-low latency on the read path. By treating append-only domain event streams as the single source of truth and publishing via NATS JetStream transactional outbox pipelines, core platforms eliminate dual-write hazards and achieve sub-millisecond balance projection latencies. ...