---
title: "Stream data from Neon to external data sources via logical replication"
description: "Neon now supports outbound Postgres logical replication in beta, letting a Neon database publish WAL-decoded inserts, updates and deletes to warehouses, Kafka, CDC tools and other Postgres databases; inbound replication is coming later."
url: "https://swe.quest/articles/stream-data-from-neon-to-external-data-sources-via-logical-replication-ba0a37ed2d47496f"
canonical: "https://neon.com/blog/stream-data-from-neon-to-external-data-sources-via-logical-replication"
source: "Neon"
published: "2024-08-09"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["postgres","replication","event-driven","data-pipelines"]
---

# Stream data from Neon to external data sources via logical replication

A post on [Neon](https://swe.quest/sources/neon.md), published 2024-08-09, 7 min read, Announcement. Original: [https://neon.com/blog/stream-data-from-neon-to-external-data-sources-via-logical-replication](https://neon.com/blog/stream-data-from-neon-to-external-data-sources-via-logical-replication)

## Summary

Neon now supports outbound Postgres logical replication in beta, letting a Neon database publish WAL-decoded inserts, updates and deletes to warehouses, Kafka, CDC tools and other Postgres databases; inbound replication is coming later. Logical replication covers data changes only, not DDL, so schema changes must be applied to subscribers by hand. It uses publications, decoder plugins like pgoutput, and replication slots that retain WAL until subscribers consume it. In Neon, enabling it restarts all computes, only roles created via Console/CLI/API carry the REPLICATION privilege, and inactive slots are dropped after 75 minutes when other active slots exist. Setup guides cover Airbyte, Fivetran, Confluent, Materialize, Decodable, Bemi, DoubleCloud and Sequin.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)
- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- Write-ahead logging ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Neon, PostgreSQL logical replication, pgoutput, Airbyte, Fivetran, Confluent, Materialize, Decodable

## Related posts

- [Change Data Capture with Serverless Postgres](https://swe.quest/articles/change-data-capture-with-serverless-postgres-4d667a8d26488042.md): Neon · 2023-12-21 · Medium · 7 min read · PostgreSQL, Replication, Event-driven architecture, Serverless
  Neon has released Postgres logical replication in beta, letting Neon databases act as publishers that stream an initial snapshot plus row-level changes to external stores for change data capture and real-time analytics.
- [A Guide to Logical Replication and CDC in PostgreSQL with Airbyte](https://swe.quest/articles/a-guide-to-logical-replication-and-cdc-in-postgresql-with-airbyte-4e37edf2ac1b986b.md): Neon · 2024-01-11 · Medium · 9 min read · PostgreSQL, Replication, Event-driven architecture, Data pipelines
  PostgreSQL logical replication builds on the write-ahead log: logical decoding turns byte-level WAL records into row-level INSERT/UPDATE/DELETE changes, and replication slots track each subscriber's LSN while retaining WAL until it is consumed.
- [Change Data Capture with Neon and Materialize](https://swe.quest/articles/change-data-capture-with-neon-and-materialize-b7e8c6b1f01b6525.md): Neon · 2023-12-21 · Medium · 4 min read · Event-driven architecture, PostgreSQL, Replication, Stream processing
  Neon's logical replication support lets Materialize ingest Postgres changes directly via the native replication protocol, without Debezium or other extra infrastructure, while keeping transactional consistency.
- [Event-driven architectures using Neon and Sequin](https://swe.quest/articles/event-driven-architectures-using-neon-and-sequin-8e1877ce94623987.md): Neon · 2024-10-22 · Medium · 5 min read · Event-driven architecture, PostgreSQL, Replication
  Sequin offers a lighter alternative to Debezium plus Kafka for change data capture on Neon Postgres, using a logical replication slot to build a strictly ordered "Sequence" of table rows that consumers can read, rewind and replay without copying data into a separate system.
- [Postgres Meets Analytics: CDC From Neon to ClickHouse Via PeerDB](https://swe.quest/articles/postgres-meets-analytics-cdc-from-neon-to-clickhouse-via-peerdb-669fe8e963909dd5.md): Neon · 2024-10-02 · Medium · 5 min read · PostgreSQL, Event-driven architecture, Analytics & OLAP, Replication, Data pipelines
  Neon serverless Postgres can serve as the transactional system of record while ClickHouse handles real-time analytics, with PeerDB streaming changes between them via Postgres logical replication.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
