Catalogue / linear-2024-multi-region

Linear added a European region by copying its whole production deployment and routing requests through a proxy backed by a global authentication service

Linear, 2024. Multi-region hosting of workspace data.

Organisation
Linear
Evidence
Reported from production
Source
How we built multi-region support for Linear

Linear, published 2024-05-23

Records

Decision#d1

Add a region by replicating the entire production deployment, not by sharding the database

Decision#d2

Keep one domain for every region and route requests through a Cloudflare Workers proxy

Decision#d3

Pull authentication out into one global service with a one-way data flow from the regional services

Decision#d4

Keep paired global and regional tables in step with ordered writes, async updates and periodic reconciliation

Decision#d5

Move hand-managed cloud infrastructure into Terraform before adding a second region

Decision#d6

Keep the old authentication path as a fallback and leave hard cut-overs as late as possible

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.