---
title: "Discussion on \"The Outbox Pattern — How to Stop Losing Events When Your Database and Message Broker Disagree\" | Hashnode"
description: "Discussion on \"The Outbox Pattern — How to Stop Losing Events When Your Database and Message Broker Disagree\". TL;DR — Writing to a database and publishing to RabbitMQ in two separate steps is a ticking time bomb. The Outbox Pattern eliminates this risk by making your database the single source of truth for all outgoing events."
url: "https://hashnode.com/posts/the-outbox-pattern-how-to-stop-losing-events-when-your-database-and-message-broker-disagree/6a2d761716f0df1b62d84777"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Outbox Pattern — How to Stop Losing Events When Your Database and Message Broker Disagree](https://dipikesh.hashnode.dev/the-outbox-pattern-how-to-stop-losing-events-when-your-database-and-message-broker-disagree?utm_source=hashnode&utm_medium=feed)

TL;DR — Writing to a database and publishing to RabbitMQ in two separate steps is a ticking time bomb. The Outbox Pattern eliminates this risk by making your database the single source of truth for all outgoing events.

Jun 13 · 8 min read · dipikesh.hashnode.dev  
Read the article

## Written by

[DIPIKESH KUMAR](https://hashnode.com/@dipikesh)

@dipikesh

  
[View profile](https://hashnode.com/@dipikesh)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
