Global Payment Gateway (4/4): Reconciliation & Settlement - The Architecture of Trust

Internal systems do not become correct at the API boundary; they become correct through reconciliation with external truth.

April 24, 2026 · 6 min · Hiep

Global Payment Gateway (3/4): The Contended Ledger - Correctness Under Concurrency

Balance is a lie; the journal is the truth. Explore how to architect a high-throughput ledger that preserves financial correctness under extreme concurrency.

April 18, 2026 · 6 min · Hiep

Global Payment Gateway (2/4): Distributed Transactions & The Saga Pattern

Why Two-Phase Commit (2PC) fails at scale, and how to architect the Saga Pattern and Transactional Outbox to guarantee data consistency across microservices.

April 11, 2026 · 6 min · Hiep

Global Payment Gateway (1/4): The Idempotent Payment API

Exactly-once delivery is an illusion in distributed networks. In this post, we architect an Idempotent Payment API to guarantee financial correctness amidst network timeouts, race conditions, and retry storms.

April 3, 2026 · 8 min · Hiep