GithubEleanor WhiteExplainer
The bridge to agent-scale Git infrastructure
Summary
GitHub is migrating Git repository storage to Azure, driven by exponential traffic growth from agentic workflows and physical constraints on data center power. Most repositories already have replicas in Azure, whose traffic share grows with each replica moved, but the busiest 0.00001% of repositories are blocked by a 25ms round trip that multiplies write latency. To overcome this, GitHub changed the quorum serialization from whole-repository to per-reference, so concurrent writes to different branch references no longer queue; internal tests show 3-4x higher throughput with lower latency. Once data is durable in Azure Blob Storage via a virtual write replica, GitHub can add ephemeral virtual read replicas that scale reads independently without joining the quorum. These architectural steps provide headroom for agent-driven Git traffic without waiting for the full end-state redesign, which will be detailed next.
Context
Exponential growth in Git traffic from agentic workflows, combined with physical limits on data center power and supply chain constraints, forced GitHub to migrate its storage to Azure. The busiest repositories faced a write throughput bottleneck from cross-region latency, requiring a change in quorum serialization before they could move.
Approach / What changed
Changing Spokes quorum serialization from repository-wide to per-reference, allowing concurrent writes to different Git references without waiting. Then adding a virtual write replica that streams writes to Azure Blob Storage as a quorum member, enabling ephemeral virtual read replicas that decouple read scaling from the write path.
Takeaways
Per-reference serialization raises write throughput 3-4x for repositories with many concurrently written references, because writes to different branches no longer queue behind each other.
The virtual write replica adds slight latency but does not become a throughput bottleneck; per-reference serialization prevents queue buildup, and it coalesces transactions on disjoint references into a single set of I/Os.
Virtual read replicas warm their cache from Azure Blob Storage and begin serving reads without joining the quorum, enabling independent scaling of read traffic on demand.
FAQ
Why does cross-region latency limit write throughput for the busiest repositories?
Spokes' quorum holds a repository-wide lock for each write until all healthy replicas respond. With a 25ms round trip to Azure, each write takes multiple round trips, and writes queue single-file, so latency multiplies and throughput drops.
How does per-reference serialization avoid this bottleneck?
It reduces the lock scope from the entire repository to individual Git references. Writes to different branches or tags can proceed concurrently instead of queueing, so multiple writes can be in flight simultaneously, raising throughput in proportion to the number of references being written at once.
What is a virtual write replica and how does it help?
An ephemeral compute node that joins the quorum and streams incoming writes to Azure Blob Storage, serving no reads. It adds latency but uses per-reference serialization to avoid becoming a bottleneck, and it coalesces transactions on disjoint references into a single set of I/Os to object storage.
Source and freshness
- Source
- github.blog
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.