Replicate data with Inngest
Learn how to replicate data from Neon with Inngest
Neon's logical replication feature allows you to replicate data from your Neon Postgres database to external destinations.
Inngest is a durable workflow platform that allows you to trigger workflow based on Neon database changes. With its native Neon integration, it is the easiest way to set up data replication with custom transformations or 3rd party API destinations (ex, Neon to Amplitude, Neon to S3).
In this guide, you will learn how to configure your Inngest account for ingesting changes from your Neon database, enabling you to replicate data from Neon to Inngest workflows.
Prerequisites
- A Inngest account
- A Neon account
- Read the important notices about logical replication in Neon before you begin
Enabling Logical Replication on your database
The Inngest Integration relies on Neon’s Logical Replication feature to get notified upon database changes.
Navigate to your Neon Project using the Neon Console and open the Settings > Logical Replication page. From here, follow the instructions to enable Logical Replication:
Configuring the Inngest integration
Your Neon database is now ready to work with Inngest.
To configure the Inngest Neon Integration, navigate to the Inngest Platform, open the Integrations page, and follow the instructions of the Neon Integration installation wizard:
The Inngest Integration requires Postgres admin credentials to complete its setup. These credentials are not stored and are only used during the installation process.
You can find your admin Postgres credentials in your Neon project dashboard’s Connection Details section:
Example: Replicating data to Amplitude
The below example demonstrates how to replicate new users
table rows to Amplitude using Amplitude's API.
Once the Inngest integration is installed, a flow of "db/*"
events will be created when updates are made to your database.
For example, if you create a new user in your database, a "db/users.updated"
event will be created:
Such events can be used to trigger Inngest functions to transform and replicate data to external destinations like Amplitude:
Need help?
Join our Discord Server to ask questions or see what others are doing with Neon. Users on paid plans can open a support ticket from the console. For more details, see Getting Support.