---
title: "Discussion on \"The Transactional Outbox Pattern in Postgres and NestJS: Ending Dual Writes Between Your Database and Your Queue — Field Notes a99fcf\" | Hashnode"
description: "Discussion on \"The Transactional Outbox Pattern in Postgres and NestJS: Ending Dual Writes Between Your Database and Your Queue — Field Notes a99fcf\". Headline: Saving a row in Postgres and then publishing a message to a queue is a dual write, and it loses or invents events whenever the process dies between the two calls. The transactional outbox pa"
url: "https://hashnode.com/posts/the-transactional-outbox-pattern-in-postgres-and-nestjs-ending-dual-writes-between-your-database-and-your-queue-field-notes-a99fcf/6b092b4680deec484de5bde3"
---

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

Discussion

# [The Transactional Outbox Pattern in Postgres and NestJS: Ending Dual Writes Between Your Database and Your Queue — Field Notes a99fcf](https://engahmed.hashnode.dev/the-transactional-outbox-pattern-in-postgres-and-nestjs-ending-dual-writes-between-your-database-and-your-queue-field-notes-a99fcf?utm_source=hashnode&utm_medium=feed)

Headline: Saving a row in Postgres and then publishing a message to a queue is a dual write, and it loses or invents events whenever the process dies between the two calls. The transactional outbox pa

4d ago · 10 min read · engahmed.hashnode.dev  
Read the article

## Written by

[Ahmed Mahmoud](https://hashnode.com/@ahmed-mahmoud)

@ahmed-mahmoud

  
[View profile](https://hashnode.com/@ahmed-mahmoud)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
