Data Across the Seam
Shared data โ CDC/log-tailing (+ inventory extraction) โ outbox โ event-sourcing/CQRS โ ACIDโACD.
From Shared Data to Owned Data
Shared-database coupling is the hardest coupling to break. Database-per-service trades referential integrity for independence, and the OrderItem foreign key becoming a snapshot is the concrete move that makes inventory extractable.
CDC, Transaction Log Tailing & Extraction 3: Inventory
Log tailing bridges the monolith's live inventory table during cutover, a gRPC contract acts as the anti-corruption layer, an atomic conditional UPDATE reserves stock, and an explicit Release replaces the rollback a shared transaction provided.
The Outbox Pattern, Done Right
The transactional outbox against the dual write, idempotent consumers as its required counterpart, ordering and redelivery, and the first two outboxes chained across services.
Event Sourcing & CQRS
CQRS splits the write model from the read model, shown with order_view, a projection committed in the same transaction as its aggregate. Event sourcing is covered as the heavier, optional pattern and declined.
ACID to ACD: Living Without Isolation
The consistency given up when a transaction shrinks: dirty reads, lost updates and non-repeatable reads across services, where they bite, and the real cost of checkout's 201 to 202 change.