The bridge to agent-scale Git infrastructure
GitHub copied 99.99999% of its repositories into Azure. The busiest rest are held back by a 25ms round trip, and per-reference locking is the plan.

Over the past year GitHub copied 99.99999% of its Git repositories into Azure, and Azure now serves about half of Git traffic; the remaining repositories are among the busiest and are held back by a 25ms round trip. The cause is the write quorum, which waits for every healthy replica while holding a repository-wide lock, so the slowest replica sets the throughput ceiling for the whole repository. GitHub is narrowing the lock to individual references, because pushes to different branches rarely depend on each other, and in internal testing writes to different references saw 3–4x higher throughput at lower latency. If a migration stalls on a few hot shards, check what your write path serializes that it does not need to.
Comments
Loading comments…