Automate schema migrations using DizzleORM and GitHub Actions - Manage thousands of tenants with this workflow
Docs/Features/Logical replication

Get started with logical replication

Learn how to replicate data to and from your Neon Postgres database

Beta

Replicating data to Neon, where Neon is configured as a subscriber in a Postgres logical replication setup, is currently in Beta. We welcome your feedback to help improve this feature. You can provide feedback via the Feedback form in the Neon Console or by reaching out to us on Discord.

Neon's logical replication feature, available to all Neon users, allows you to replicate data to and from your Neon Postgres database:

  • Stream data from your Neon database to external destinations, enabling Change Data Capture (CDC) and real-time analytics. External sources might include data warehouses, analytical database services, real-time stream processing systems, messaging and event-streaming platforms, and external Postgres databases, among others. See Replicate data from Neon.
  • Perform live migrations to Neon from external sources such as AWS RDS, Aurora, and Google Cloud SQL — or any platform that runs Postgres. See Replicate data to Neon.
  • Replicate data from one Neon project to another for Neon project, account, Postgres version, or region migration. See Replicate data from one Neon project to another.

Neon logical replication subscribers image

Logical replication in Neon works like it does on any standard Postgres installation. It uses a publisher-subscriber model to replicate data from the source database to the destination database. Neon can act as a publisher or subscriber.

Replication starts by copying a snapshot of the data from the publisher to the subscriber. Once this is done, subsequent changes are sent to the subscriber as they occur in real-time.

To learn more about Postgres logical replication, see the following topics.

Learn about logical replication

To get started, jump into one of our step-by-step logical replication guides.

Replicate data from Neon

Replicate data to Neon

Last updated on

Was this page helpful?