Surviving the Dual-Write Problem in Distributed Systems

Room 6Tue 12 May • 11:15–12:15Architecture & LeadershipAdvanced
The dual-write problem appears whenever a system must write to two services (such as a database and an authorization engine) and cannot guarantee atomicity across them. A crash at the wrong moment can leave your system inconsistent, even if each component works perfectly. This talk explains why dual writes are fundamentally unsafe within a single process and what architects can do about it. We’ll explore practical patterns used in real-world distributed systems: - Out-of-band reconciliation - Making a single system the source of truth - Event sourcing - CQRS - Durable execution frameworks like Temporal, and - Transactional outbox designs. Attendees will learn how to identify dual writes in their own architectures and choose the right mitigation strategy based on scale, consistency needs, and team maturity. This session gives engineers clear mental models and actionable tools for building reliable multi-service systems.

About the speaker

Sohan Maheshwar

Sohan is a Lead Developer Advocate at AuthZed, based in the Netherlands. He started his career as a developer building mobile apps and has been living in the cloud since 2013, in companies such as Amazon, Fermyon and Gupshup. He is also an O' Reilly author, having created a course on Cloud Concepts for Everyone. He has always been interested in emerging technologies and how it shapes the world around us. His interests outside work include visual arts, trivia, and playing frisbee.