Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Railway 9 min read Announcement easyNovice

The Future of Databases is Services

Railway replaced its bespoke per-database Plugins (Postgres, Redis, Mongo, MySQL) with databases deployed as ordinary services, built from general-purpose primitives: ZFS-backed NVMe volumes, Docker image deploys, port-based TCP proxies per region, private networking, cross-service variable references, and a `${{ secret() }}` template function for generated passwords. Because TCP carries no Host header, the proxy routes by assigning a unique port per service. Combined into one-click templates, these primitives let users deploy any database, such as PGVector, Chroma, ClickHouse or Temporal, and Railway plans to add backups and high availability the same way.

Related posts

  • How Cedalio uses Neon for an efficient development workflow

    Neon easyNovice

    Cedalio, an ESG data verification startup, moved from DynamoDB to Postgres and picked Neon over RDS for a simpler API and console. GitHub Actions creates a Neon database branch and a Fly.io app instance for each PR, then deletes both after merge, and scale-to-zero keeps these temporary environments cheap. A one-database-per-customer design gives tenant isolation. Their backend reads the Postgres WAL, bundles and encrypts operations, stores them optionally on IPFS or Arweave, and commits a hash to a client-owned smart contract for tamper-evident auditing.

  • Fly Postgres, managed by Supabase

    Supabase easyNovice

    Supabase and Fly.io launched Fly Postgres, a managed Postgres running on Fly Machines (Firecracker VMs) with Supabase features like Supavisor pooling, pgvector, PITR, branching and auto-generated REST/GraphQL APIs; the offering has since been deprecated. Under the hood, Supabase packages all its services into a single All In One Docker image built from its Packer pipeline. Because Fly volumes lack network-attached storage, they are treated as ephemeral, with WAL-G continuously streaming WAL to S3 for recovery onto new hosts. Open issues include client IPs being masked by the Fly proxy, which breaks network restrictions, and inter-cloud bandwidth costs from backing up to AWS.

  • Breaking up a monolith: How we’re unwinding a shared database at scale

    Datadog Engineering mediumAdept

    Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances. Domain boundaries came from clustering Database Monitoring query samples and validating them with 30+ teams. Inter-domain foreign keys were replaced with CDC or Postgres replication. A homegrown PG Proxy lets teams migrate at their own pace and makes cutover a dynamic config change, with write downtime under five seconds and reverse replication kept for rollback. The platform investments that made this feasible, the Rapid service framework, OrgStore and PG Proxy, are presented as prerequisites, and each phase has concrete progress metrics.

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

    Neon mediumAdept

    A Neon Twin is a nightly-synced copy of an RDS Postgres production database kept in Neon for dev, test and staging, so teams get instant provisioning, branching and scale-to-zero without migrating production. A scheduled GitHub Actions workflow installs Postgres, runs pg_dump in custom format against RDS, then pg_restore with --clean, --if-exists, --no-owner and --no-acl into a Neon main branch, with per-engineer branches created from it. Caveats include GitHub Actions' 6-hour job limit (use self-hosted runners for large databases), IP allowlisting problems with GitHub's changing runner IPs, and SSL certificate handling. Co-locating both databases in the same AWS region speeds up the job and cuts egress costs.

  • Understanding Neon’s object hierarchy

    Neon easyNovice

    Neon organizes serverless Postgres into projects, branches and compute endpoints, built on a separation of storage and compute that avoids sizing a database upfront. A project is a container per application holding a Postgres cluster (default database "neondb"); branches are copy-on-write, isolated copies of data from the current or a past point in time, with the default cluster represented by the "main" branch. Each branch is reached through a compute endpoint that can be fixed-size or autoscale between a minimum and maximum, letting you cap worst-case spend; at time of writing each branch supports only one endpoint, with read replicas planned to allow more.

The quest for software engineering knowledge.

Look:
Layout: