Revisiting the Outbox Pattern in Go - Nikolay Kuznetsov @ContainerDays
Revisiting the Outbox Pattern in Go - Nikolay Kuznetsov  @ContainerDays
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.
Revisiting the Outbox Pattern in Go - Nikolay KuznetsovOpenSearch: The Open Source Path to Search and Observability - Dotan HorovitsRooted in Open Source: How CNCF Projects Mature and Scale - Jeffrey SicaThe Human is the Next Bottleneck in the AI Stack! - Hossein RafieekhahPlatform-as-a-Product: First Insights from CNCF Platform Working Groups Ongoing ResearchBuilding Resilience: Effective Backup and Disaster Recovery for Vector Databases on KubernetesBootable Containers: An entire OS as a Containerfile - Robert GuskeTrash Talk: Stacks, Heaps, and the Art of Garbage Collection - Aleksandr RybolovlevRick RackowCalico Whisker: Free Tool for Kubernetes Policy Troubleshooting and Network VisibilityEnsuring high availability with global load balancing in Kubernetes - Matthias HauberThe Reality of Rootless Containers - Ajitem Sahasrabuddhe
ContainerDays |

Revisiting the Outbox Pattern in Go - Nikolay Kuznetsov

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER