Uploaded October 2025 | Updated November 2026, 3 hours ago
My talk title mimics Gunnar Morling’s article, "Revisiting the Outbox Pattern." The pattern isn't new, but the article summarizes implementations well. I'll show how to implement these in Go.
Problem & Naive Solutions
The pattern solves the dual-write problem when storing data and publishing events. Writing to a DB first risks losing messages; writing to a queue first risks inconsistency. Holding a DB transaction open while sending events can exhaust connections.
Outbox Table & Relay
A safer approach is inserting events into an outbox table within the DB transaction. The challenge is efficiently reading and publishing them.
Implementations
Debezium (Java, CDC) has high memory overhead.
Polling in Go (SELECT + UPDATE) creates dead tuples.
Offset tracking avoids updates (Watermill SQL).
Logical replication in Go (jackc/pglogrepl) is promising but complex.
Outbox remains relevant in 2025, with emerging Go solutions.
About the speaker:
Nikolay Kuznetsov is a Senior Software Engineer at Zalando Finland. He is an author of pgx-outbox Go library and CDC (change data capture) enthusiast. He is a regular speaker at Go meetups in Helsinki and occasionally at international conferences.
My talk title mimics Gunnar Morling’s article, "Revisiting the Outbox Pattern." The pattern isn't new, but the article summarizes implementations well. I'll show how to implement these in Go.
Problem & Naive Solutions
The pattern solves the dual-write problem when storing data and publishing events. Writing to a DB first risks losing messages; writing to a queue first risks inconsistency. Holding a DB transaction open while sending events can exhaust connections.
Outbox Table & Relay
A safer approach is inserting events into an outbox table within the DB transaction. The challenge is efficiently reading and publishing them.
Implementations
Debezium (Java, CDC) has high memory overhead.
Polling in Go (SELECT + UPDATE) creates dead tuples.
Offset tracking avoids updates (Watermill SQL).
Logical replication in Go (jackc/pglogrepl) is promising but complex.
Outbox remains relevant in 2025, with emerging Go solutions.
About the speaker:
Nikolay Kuznetsov is a Senior Software Engineer at Zalando Finland. He is an author of pgx-outbox Go library and CDC (change data capture) enthusiast. He is a regular speaker at Go meetups in Helsinki and occasionally at international conferences.










