Neon
Neon is a serverless Postgres hosting platform.
Electric and Neon
You can use Electric with Neon's serverless Postgres hosting.
Need context?
See the Deployment guide for more details.
Deploy Postgres
Sign up to Neon and go through the steps to create a database.
On the project page, go to Settings -> Logical Replication
and click "Enable".
Neon and logical replication
See the Neon guide on logical replication for information about how logical replication works with the rest of the Neon feature set.
Connect Electric
Go to the Dashboard page and copy the database connection string.
Make sure you don't check "Pooled connection". You want the direct connection string in order to use logical replication.
You can then run Electric with this connection string as the DATABASE_URL
, e.g.:
docker run -it \
-e "DATABASE_URL=YOUR_NEON_CONNECTION_STRING" \
electricsql/electric:latest
Need somewhere to host Electric?
If you need somewhere to deploy Electric then Neon works well with Render.
PGlite
Electric and Neon have also collaborated to develop PGlite, which was started as a project by Neon's CTO, Stas Kelvich.