Smartly Academy

Smartly Academy

The Architecture Logbook

Breaking the Outbox — Five Edge Cases That Will Find You in Production

Duplicate delivery, ordering illusions, table bloat, competing publishers, and the cleanup problem. The outbox pattern works — until these arrive.

Anto Semeraro's avatar
Anto Semeraro
Mar 05, 2026
∙ Paid

What happens when two instances of your publisher poll the outbox at the same time?

This was the question that woke me up — not literally at 3 AM, but close enough. We had deployed a second instance of the notification service for redundancy. A reasonable thing to do. Load balancer in front, health checks configured, infrastructure team satisfied. Nobody…

User's avatar

Continue reading this post for free, courtesy of Anto Semeraro.

Or purchase a paid subscription.
© 2026 Antonello Semeraro · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture