Move dev to Neon, keep prod on AWS RDS
Build new features on Neon Postgres while keeping your prod database in AWS RDS. Start shipping faster while saving money.
create-neon-twin.ymlon: '0 0 * * *'
capture-start-time1s
dump-and-restoreh1 1m
db-query4s
capture-end-time1s
post-to-slack-success2s
midnight ET24h
Tue, April 8 @8:35:08 AM
SELECT pg_database_size(current_database());
Tue, April 8 @8:35:08 AM
☝️ A new Neon Twin is available!
.github/workflows/create-neon-twin.yml
AWS RDS is slowing your team down
AWS RDS is the most widely used Postgres for production workloads, but the developer experience is bare bones — it's hard to build fast on RDS:
- Provisioning new dev environments takes time.
- It's hard to keep data in sync between dev and prod.
- Team collaboration is painful.
- Dev environments get expensive quick.
The RDS developer experience is not quite there. The AWS console and APIs are quite convoluted and require extensive setup and configuration to achieve even basic tasks.

Move your dev/stage/test environments to Neon
Neon is a serverless Postgres database built to streamline development workflows. Due to its unique architecture, Neon is more agile, efficient, and developer-friendly than any other Postgres.
- Provisioning new environments takes <1s.
- Branch data like you branch code.
- Dev databases scale to zero when inactive.
- Neon is shockingly affordable.
Neon allows us to develop much faster than we’ve ever been used to. Instead of putting a lot of effort into getting a synthetic dataset within Docker or local Postgres, we just test in a Neon branch, with a perfect copy of production data.

Build a Neon Twin
You can take advantage of Neon's velocity without leaving RDS. Duplicate your RDS dataset in Neon by creating a Neon Twin to host your non-prod environments:
- Automate the sync between your production database and Neon with a custom GitHub Action.
- Develop new features and run tests in your dev, stage, and test environments on Neon, using branching to create instant duplicates.
- When ready, migrate your changes back to RDS with ease.


Twin: Default
This default Action includes one job that runs a pg_dump/restore
.
1
GitHub Secrets
Resources
Explore our blog posts and guides.

Optimize your AWS RDS Dev Environments with Neon Postgres

Brad Van VugtJul 16, 2024

Neon Twin: Move Dev/Test/Staging to Neon, Keep Production on RDS

Brad Van VugtJul 24, 2024

Building Slack notifications to monitor pg_dump and restore workflows

Rishi Raj JainAug 01, 2024

Neon Twin: How to deploy a change tested in Neon to prod in RDS

Rishi Raj JainAug 15, 2024

Database branching workflows: A guide for developers

Carlota SotoMay 09, 2024

Adopting Neon branching in CI/CD pipelines: a practical story by Shepherd

Carlota SotoJul 07, 2024
