Skip to content

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

Railway 11 min read Case study mediumAdept

So You Want to Build Your Own Data Center

Railway moved off Google Cloud by building its own colocation cages, going from project kickoff to first live site in California in about eight months. Power is the binding constraint more than floor space. That drives server choice by power density, dual independent feeds per rack, and metered, remotely controlled PDUs. Networking relies on at least two regionally strong Tier 1 ISPs per site, full BGP tables to pick paths per prefix, and dark fiber or wavelength links between zones. The physical build involves hot/cold aisle layout, 800mm racks, reverse-airflow switches and cabling matrices covering 300+ cables, plus a catalogue of real installation surprises such as WYE vs Delta wiring and fiber polarity.

Related posts

  • Claude please rack me a datacenter, make no mistakes

    Railway mediumAdept

    Railway's infrastructure team used Claude to plan, document and qualify a multi-site bare-metal datacenter buildout across 4 geographies with about one and a half planners. The approach rests on primitives inside their internal DCIM, Railyard: immutable changesets as version control for physical infrastructure, design rule checks, a parts library with attribute and constraint data generated from spec sheets, and curated MCP tools plus skills. Applied changesets move assets through a Draft/Buildout/Active lifecycle that auto-generates work orders, bills of materials and technician-friendly Excel cabling matrices. A /dc-provision skill then validates the build using LLDP, transceiver DOM stats and a burn-in Linux agent, checking wiring and light levels against the DCIM spec across SONiC and Arista EOS switches.

  • Reinventing Facebook’s data center network

    Meta Engineering hardMaster

    Meta redesigned its data center network around F16, a fabric with 16 single-chip planes of 128x100G switches built on Broadcom Tomahawk 3. It delivers 4x the per-rack bandwidth (1.6T) using mature 100G CWDM4 optics instead of scarce, power-hungry 400G. Compared with a multichip 400G design it needs 3x fewer fabric chips and cuts hops to six intra-fabric and eight inter-building. The core building block is Minipack, a modular single-ASIC switch that uses half the power and space of Backpack, with swappable PIMs for 40G–400G ports and reverse gearboxes bridging 50G PAM4 SerDes to 25G NRZ optics. HGRID extends Fabric Aggregator to connect six buildings per region, all running FBOSS.

  • Hello, World: We’re Railway

    Railway mediumAdept

    Railway launches US-East, EU-West and Southeast Asia regions alongside its original US-West GCP zone, with one-click region moves that need no URL or DNS changes. Getting there required several building blocks: private networking built on a WireGuard mesh with eBPF NAT and per-project IPv6 /64 address spaces, a global edge that splits Envoy edge proxies from regional routing proxies behind GeoDNS, and lazy-loading L4 TCP proxies that subscribe to a memdb-backed control plane for cache invalidation. Volumes use ZFS send/receive snapshots, orchestrated with Temporal, to move databases across regions with minimal downtime. The team also restructured a copy-pasted, module-less Terraform and Ansible stack so new regions are cheap to add.

  • The next generation of Metal; Railway Metal Gen 2

    Railway easyNovice

    Railway has rolled out a second generation of its self-owned bare-metal infrastructure, with roughly 5x the compute and network throughput of Gen 1. The rebuild was driven by heavier workloads that shifted the CPU:RAM demand ratio from 1:20 toward 1:8, a tripling of RAM prices, and a demand spike that left a new Gen 1 site with only about three months of runway. Gen 2 uses AMD Zen 5c EPYC hosts with DDR5 and dual 100G NICs, NVMe storage servers with 4x 100G, and a Tomahawk 3 fabric with 400G spine uplinks, consolidating four SKUs into two and cutting network capex per host by about 30%. Each Gen 2 site sits beside its Gen 1 sibling over dark fiber; Gen 1 keeps running existing workloads while new and stateful workloads migrate over, and about 40% of workloads currently burst to GCP/AWS.

  • Running Border Gateway Protocol in large-scale data centers

    Meta Engineering hardMaster

    Facebook runs BGP as the routing foundation of its data centers, and found it works well only when co-designed with the topology, configuration, switch software and fleet-wide operations pipeline. The design reuses a uniform AS numbering scheme with BGP confederations across fabrics and applies hierarchical route summarization at every level to keep hardware forwarding tables small. Routing policies set propagation scopes, predefine backup paths, and allow graceful traffic draining from faulty devices. A minimal in-house BGP agent is shipped through unit testing, emulation, canary testing and multi-phase deployment so it can be updated frequently.

The quest for software engineering knowledge.

Look:
Layout: