LmCast :: Stay tuned in

The bridge to agent-scale Git infrastructure

Recorded: Oct. 21, 2026, 6:02 p.m.

Original Summarized

The bridge to agent-scale Git infrastructure - The GitHub Blog

Skip to content

Skip to sidebar

/

Blog

Changelog
Docs
Customer stories

Try GitHub Copilot app

Attend GitHub Universe

AI & ML

AI & MLLearn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry.

Generative AILearn how to build with generative AI.
GitHub CopilotChange how you work with GitHub Copilot.
LLMsEverything developers need to know about LLMs.
Machine learningMachine learning tips, tricks, and best practices.

How AI code generation worksExplore the capabilities and benefits of AI code generation and how it can improve your developer experience.Learn more

Developer skills

Developer skillsResources for developers to grow in their skills and careers.

Application developmentInsights and best practices for building apps.
Career growthTips & tricks to grow as a professional developer.
GitHubImprove how you use GitHub at work.
GitHub EducationLearn how to move into your first professional role.
Programming languages & frameworksStay current on what’s new (or new again).

Get started with GitHub documentationLearn how to start building, shipping, and maintaining software with GitHub.Learn more

Engineering

EngineeringGet an inside look at how we’re building the home for all developers.

Architecture & optimizationDiscover how we deliver a performant and highly available experience across the GitHub platform.
Engineering principlesExplore best practices for building software at scale with a majority remote team.
InfrastructureGet a glimpse at the technology underlying the world’s leading AI-powered developer platform.
Platform securityLearn how we build security into everything we do across the developer lifecycle.
User experienceFind out what goes into making GitHub the home for all developers.

How we use GitHub to be more productive, collaborative, and secureOur engineering and security teams do some incredible work. Let’s take a look at how we use GitHub to be more productive, build collaboratively, and shift security left.Learn more

Enterprise software

Enterprise softwareExplore how to write, build, and deploy enterprise software at scale.

AutomationAutomating your way to faster and more secure ships.
CI/CDGuides on continuous integration and delivery.
CollaborationTips, tools, and tricks to improve developer collaboration.
DevOpsDevOps resources for enterprise engineering teams.
DevSecOpsHow to integrate security into the SDLC.
Governance & complianceEnsuring your builds stay clean.

GitHub recognized as a Leader in the Gartner® Magic Quadrant™ for AI Code AssistantsLearn why Gartner positioned GitHub as a Leader for the second year in a row.Learn more

News & insights

News & insightsKeep up with what’s new and notable from inside GitHub.

Company newsAn inside look at news and product updates from GitHub.
ProductThe latest on GitHub’s platform, products, and tools.
OctoverseInsights into the state of open source on GitHub.
PolicyThe latest policy and regulatory changes in software.
ResearchData-driven insights around the developer ecosystem.
The libraryOlder news and updates from GitHub.

Unlocking the power of unstructured data with RAGLearn how to use retrieval-augmented generation (RAG) to capture more insights.Learn more

Open Source

Open SourceEverything open source on GitHub.

GitThe latest Git updates.
MaintainersSpotlighting open source maintainers.
Social impactHow open source is driving positive change.
GamingExplore open source games on GitHub.

An introduction to innersourceOrganizations worldwide are incorporating open source methodologies into the way they build and ship their own software.Learn more

Security

SecurityStay up to date on everything security.

Application securityApplication security, explained.
Supply chain securityDemystifying supply chain security.
Vulnerability researchUpdates from the GitHub Security Lab.
Web application securityHelpful tips on securing web applications.

The enterprise guide to AI-powered DevSecOpsLearn about core challenges in DevSecOps, and how you can start addressing them with AI and automation.Learn more

Search

Categories
AI & ML

BackAI & MLLearn about artificial intelligence and machine learning across the GitHub ecosystem and the wider industry.

Generative AILearn how to build with generative AI.
GitHub CopilotChange how you work with GitHub Copilot.
LLMsEverything developers need to know about LLMs.
Machine learningMachine learning tips, tricks, and best practices.

How AI code generation worksExplore the capabilities and benefits of AI code generation and how it can improve your developer experience.Learn more

Developer skills

BackDeveloper skillsResources for developers to grow in their skills and careers.

Application developmentInsights and best practices for building apps.
Career growthTips & tricks to grow as a professional developer.
GitHubImprove how you use GitHub at work.
GitHub EducationLearn how to move into your first professional role.
Programming languages & frameworksStay current on what’s new (or new again).

Get started with GitHub documentationLearn how to start building, shipping, and maintaining software with GitHub.Learn more

Engineering

BackEngineeringGet an inside look at how we’re building the home for all developers.

Architecture & optimizationDiscover how we deliver a performant and highly available experience across the GitHub platform.
Engineering principlesExplore best practices for building software at scale with a majority remote team.
InfrastructureGet a glimpse at the technology underlying the world’s leading AI-powered developer platform.
Platform securityLearn how we build security into everything we do across the developer lifecycle.
User experienceFind out what goes into making GitHub the home for all developers.

How we use GitHub to be more productive, collaborative, and secureOur engineering and security teams do some incredible work. Let’s take a look at how we use GitHub to be more productive, build collaboratively, and shift security left.Learn more

Enterprise software

BackEnterprise softwareExplore how to write, build, and deploy enterprise software at scale.

AutomationAutomating your way to faster and more secure ships.
CI/CDGuides on continuous integration and delivery.
CollaborationTips, tools, and tricks to improve developer collaboration.
DevOpsDevOps resources for enterprise engineering teams.
DevSecOpsHow to integrate security into the SDLC.
Governance & complianceEnsuring your builds stay clean.

GitHub recognized as a Leader in the Gartner® Magic Quadrant™ for AI Code AssistantsLearn why Gartner positioned GitHub as a Leader for the second year in a row.Learn more

News & insights

BackNews & insightsKeep up with what’s new and notable from inside GitHub.

Company newsAn inside look at news and product updates from GitHub.
ProductThe latest on GitHub’s platform, products, and tools.
OctoverseInsights into the state of open source on GitHub.
PolicyThe latest policy and regulatory changes in software.
ResearchData-driven insights around the developer ecosystem.
The libraryOlder news and updates from GitHub.

Unlocking the power of unstructured data with RAGLearn how to use retrieval-augmented generation (RAG) to capture more insights.Learn more

Open Source

BackOpen SourceEverything open source on GitHub.

GitThe latest Git updates.
MaintainersSpotlighting open source maintainers.
Social impactHow open source is driving positive change.
GamingExplore open source games on GitHub.

An introduction to innersourceOrganizations worldwide are incorporating open source methodologies into the way they build and ship their own software.Learn more

Security

BackSecurityStay up to date on everything security.

Application securityApplication security, explained.
Supply chain securityDemystifying supply chain security.
Vulnerability researchUpdates from the GitHub Security Lab.
Web application securityHelpful tips on securing web applications.

The enterprise guide to AI-powered DevSecOpsLearn about core challenges in DevSecOps, and how you can start addressing them with AI and automation.Learn more

Changelog
Docs
Customer stories

Attend GitHub Universe

Try GitHub Copilot app

Home / Engineering / Architecture & optimization The bridge to agent-scale Git infrastructure
We moved a copy of 99.99999% of GitHub’s repositories to Azure. Here’s how per-reference quorums will bring over the rest, and how object storage lets reads scale independently.

Eleanor White & Victoria Dye

October 21, 2026

|

8 minutes

Share:

Over the past year, while Git traffic grew exponentially, 99.99999% of the Git repositories on GitHub began living in two places at once: our own data centers and Azure. The rest are among the busiest on the platform, and they’re held back by just one thing: a 25ms round trip.
In an earlier blog post, we laid out the two principles behind our next-generation storage architecture:

Minimize coordination
Decouple storage from compute

In this post, we’ll look at the immediate bridge between our old design and our new one. We’ll talk about how a change to the way our quorum serializes writes gets the busiest repositories into Azure, and how that same step opens the door to replicas that keep no persistent state of their own.
How we got here
The timing and shape of the move were driven by the agentic shift: rapidly growing traffic, a hard ceiling on the power capacity of our data centers and the surrounding geographical region, and physical supply chain constraints. At the beginning of our migration, the remaining capacity with all possible expansion gave us enough time to migrate safely, but not enough to do it slowly.
While we had prototyped new architectural approaches for scaling Git on cloud infrastructure, changing the storage architecture and the hosting platform at the same time, under that growth, carried too much risk. Given our scale and how critical the service is to the community, we needed to sequence the work carefully: move the data first, then evolve the architecture once it arrived.
Git operations are a Tier 0 service: they’re a core function of GitHub, and nearly everything in GitHub depends on the repository data. That meant the data, services, and every dependency had to move first. The first copy of a repository landed in Azure’s Central US region in August 2025. Today, most repositories have two of their five replicas in Azure, and Azure serves about half of Git traffic. For most of that time, Azure absorbed our growth while our own data centers held steady.
During the migration, traffic follows the data. Most repositories have five replicas to balance durability, availability, and scale. To minimize read latency, Spokes uses preferential routing to direct traffic to a replica in the same region and availability zone as the request. As replicas move to Azure, the share of the traffic that can be served from Azure grows with each one, until the last replica arrives and the old region stops receiving requests entirely. Every repository goes through this process:

No repository left behind
So, what about the remaining 0.00001% of repositories?
In our current architecture, a repository hosted in more than one region has a lower write throughput ceiling. Spokes’ quorum only needs a majority to commit a write, but it waits for every healthy replica to respond (up to a timeout) before moving on, so slow replicas delay every write rather than falling behind. In practice, that means the slowest healthy replica sets the latency of every write, and because each write holds a repository-wide lock until it commits, it also sets the throughput ceiling. Once a replica lives in the target Azure region, it’s about 1,000 miles from our data centers, making each network round trip around 25ms, and a write requires multiple round trips. A repository already near its throughput ceiling can’t absorb that on every serialized write; it would fall further behind with every push.
This is where our first principle, minimizing coordination, comes into play. Specifically for this case: don’t serialize what doesn’t need to be. Git’s consistency requirements apply to each reference individually. Once the server accepts an update to a reference, no client should see an older value afterward, only that value or a newer one. That holds whether the update is a fast-forward, a force push, or a delete. But in most cases, updates to different references don’t depend on each other and can be applied independently.
So, we’re changing the scope of the quorum from the whole repository to individual references.
Holding a repository-wide lock for the entire reference update, round trips included, turns the quorum into a single, unordered request queue with one write in flight at a time. Each write in that queue takes as long as the slowest healthy replica. As the write rate grows, so does the queue, and each write waits longer than the one before it.
With per-reference serialization, only writes that contend on a shared reference must wait for each other. In practice, most writes to a repository touch different references—for example, agents and developers pushing to their own branches—so they no longer wait on each other. Each write still experiences the cross-region latency but writes to different references can be in flight at the same time. That removes the single bottleneck on the repository. We can visualize how queueing and timeouts build up by comparing the two approaches side by side under similar load:

These changes raise a repository’s write throughput ceiling roughly in proportion to how many references are being written at once, and get the last remaining repositories into Azure. In internal testing with realistic traffic, writes to different references consistently saw 3–4x higher throughput at lower latency.
Scaling reads on their own
Most repositories are heavily read-skewed, with somewhere between 100 and 1,000 reads for every write. Today, reads and writes hit the same replicas, so they compete for the same resources and can’t be scaled independently.
Decoupling storage from compute changes that. Once repository data is durably stored in Azure Blob Storage and updated with each incoming write, we can begin to decouple read traffic from the write quorum, and independently scale the compute needed for each. For example, reads would benefit from far more in-memory cache than we give them today, but that memory is also needed for compaction. Once they’re separated, each gets its own configuration.
The first step is making object storage a member of the quorum, but a special one that we call a virtual replica. The compute that represents it is our first fully ephemeral node. It serves as a bridge to object storage, streaming incoming writes and serving no reads. Because it’s a member of the quorum, a write isn’t acknowledged until it’s durable in object storage.
That adds a little latency to each write, but just like the cross-region round trip, per-reference serialization keeps it from becoming a throughput bottleneck. The virtual write replica also coalesces transactions on disjoint references into a single set of network I/Os to object storage, so a busy repository pays for one round trip across many concurrent writes instead of one per write. For now, the virtual write replica also handles compaction, and read replicas inherit the compacted state.
With the virtual write replica in place, we can scale out as many virtual read replicas as a repository needs, on demand. Each read replica warms its cache from Azure Blob Storage and starts taking read traffic without joining the quorum, using object storage as the source of truth and reconciling its local state against it in the background.
This step unlocks significant read scale. In internal testing, our distributed load testing harness routinely found ceilings in the current architecture. Against virtual read replicas, the harness hit its own limits first. It also comes with a few challenges that are solved in subsequent steps:

Virtual read replicas start out reconciling with object storage in the background, which makes them a good fit for some read workloads but not all of them. Serving every kind of read requires moving that reconciliation in-line, fetching only the reference state and data that changed since the replica last caught up.
While we’ve incrementally increased write throughput by shifting to a per-reference model, the quorum remains the bounding factor for increasing further.

How can we push write throughput further?
What comes next
The GitHub of today was built on the Spokes quorum, and over the years Spokes has become much more than a quorum coordinator. It’s also an intelligent routing and load balancing layer, a unified API that internal clients use to access and transact repository data at well over 100 billion operations per day, and a collection of background systems we call “sweepers” that handle repository placement, repair, and rebalancing between storage nodes.
The vast majority of what lives under the Spokes service umbrella applies just as well to the new architecture as it does to the existing one. But we also recognize that the commit protocol that has taken GitHub to a billion repositories won’t take it to the next billion and beyond.
We’re not done yet. With these steps in place, the next limit is write throughput. Every write still waits on replicas that each hold a full copy of the repository, yet very little of a write actually needs to be ordered. Git objects are immutable and named by their contents, so they can be stored without anyone agreeing on them. What’s left is small, and the hard part is ordering it as fast as possible without moving the bottleneck somewhere else. Designing for that on a whiteboard is one thing. Doing it underneath a billion repositories that developers and agents are writing to around the clock is another. Getting there forced us to rethink the second-order effects too, like where durable reference state lives and how compaction and garbage collection scale.
Agent traffic isn’t slowing down, and each of these steps gives repositories more headroom as it lands, without waiting for the end state.
Coming next week: At GitHub Universe and in the final post in this series, we’ll take a tour through that end state, what it does for write throughput, the second-order problems we had to solve to get there, and why there’s still a (small) consensus group somewhere in the stack.
Thanks to Brian Celenza for their contributions to this post.

Tags:

Git

Infrastructure

technical deep dive

Written by

Eleanor White

@nellwhite

Senior Software Engineer

Victoria Dye

@vdye

Staff Software Engineer

Git

Infrastructure

technical deep dive

Table of Contents

How we got here

No repository left behind

Scaling reads on their own

What comes next

More on GitBuilding Git infrastructure for agent-scale developmentWe’re rebuilding GitHub’s Git infrastructure while GitHub keeps running, creating a foundation for agent-scale software development.

Brian Celenza

Highlights from Git 2.56The open source Git project just released Git 2.56. Here is GitHub’s look at some of the most interesting features and changes introduced since last time.

Elijah Newren

Related posts


Engineering

Staying Evergreen: How we automated secure access and repo hygiene in a shared org

Put native GitHub features to work to review outside collaborator access and archive stale repositories.

Greg Mohler


Architecture & optimization

From 2,500 requests to 24: Rebuilding star history without the stargazers

Our new repo star history API now provides trends without returning individual identities or requiring unbounded database work. These are the engineering tradeoffs we made.

Taylor Cuilty & Sarita Iyer


Architecture & optimization

Building Git infrastructure for agent-scale development

We’re rebuilding GitHub’s Git infrastructure while GitHub keeps running, creating a foundation for agent-scale software development.

Brian Celenza

Explore more from GitHub


Docs

Everything you need to master GitHub, all in one place.

Go to Docs


GitHub

Build what’s next on GitHub, the place for anyone from anywhere to build anything.

Start building


Customer stories

Meet the companies and engineering teams that build with GitHub.

Learn more


GitHub Universe 2026

Join us October 28-29 in San Francisco or online for GitHub Universe, our flagship developer event uniting people, agents, and the world’s code.

Register now

We do newsletters, tooDiscover tips, technical guides, and best practices in our biweekly newsletter just for devs.

Your email address

*
Your email address

Subscribe

Yes please, I’d like GitHub and affiliates to use my information for personalized communications, targeted advertising and campaign effectiveness. See the GitHub Privacy Statement for more details.

Subscribe

Site-wide Links

ProductFeaturesSecurityEnterpriseCustomer StoriesPricingResourcesPlatformDeveloper APIPartnersAtomElectronGitHub DesktopSupportDocsCommunity ForumTrainingStatusContactCompanyAboutBlogCareersPressShop

© 2026 GitHub, Inc.

Terms

Privacy

Manage Cookies

Do not share my personal information

LinkedIn icon

GitHub on LinkedIn

Instagram icon

GitHub on Instagram

YouTube icon

GitHub on YouTube

X icon

GitHub on X

TikTok icon

GitHub on TikTok

Twitch icon

GitHub on Twitch

GitHub icon

GitHub’s organization on GitHub

ecks inherent in cross-region replication. The migration was deliberately sequenced to prioritize data movement before evolving the underlying architecture, a decision driven by the agentic shift, exponential growth in Git traffic, and physical capacity constraints."

Word count: 123 words.

Paragraph 2: "At the core of this transition are two guiding principles: minimizing coordination and decoupling storage from compute. To bridge the old and new designs, GitHub introduced a shift from repository-wide serialization to per-reference serialization. Previously, the Spokes service used a quorum that required all healthy replicas to respond before committing a write, effectively serializing all operations on a repository. This approach forced the slowest replica to determine write latency and throughput, creating a significant bottleneck, especially when replicas were distributed across regions with high latency. By changing the quorum to operate on individual references rather than the entire repository, writes to different references can be processed concurrently. Since most repository writes target distinct references—such as branches pushed by developers or agents—this eliminates the single point of contention. As a result, write throughput ceilings increase in proportion to the number of concurrently written references, and the last remaining repositories can be safely migrated to Azure."

Word count: 169 words.

Paragraph 3: "To complete the migration of the remaining repositories, GitHub introduced a virtual write replica. This is a fully ephemeral node that acts as a bridge to Azure Blob Storage, a durable object store. The virtual replica coalesces multiple transactions on disjoint references into a single set of network I/Os, ensuring durability before writes are acknowledged. Although this adds a small latency to each write, per-reference serialization prevents it from becoming a throughput-limiting factor. The virtual replica also handles compaction, consolidating state updates and facilitating the synchronization of read replicas."

Word count: 104 words.

Paragraph 4: "A second critical advancement is the decoupling of read traffic from write operations. Traditional architecture forced reads and writes to compete for the same resources, limiting independent scaling. By making object storage a member of the quorum as a virtual replica, GitHub can now separate read and write paths. Read replicas are scaled independently, warming their caches from Azure Blob Storage and serving read traffic without joining the write quorum. This allows for greater in-memory caching for reads while writes are managed separately, unlocking significant read scale. Internal load testing demonstrated that virtual read replicas could absorb traffic beyond the limits of the original architecture."

Word count: 126 words.

Paragraph 5: "Despite these progressions, challenges remain. Virtual read replicas must reconcile their local state with object storage in the background, which is effective for some workloads but not all; serving diverse read types requires moving reconciliation inline to avoid fetching unnecessary reference states. Additionally, write throughput is still bounded by the quorum, which requires replicas to hold full copies of the repository. Future steps aim to further optimize write ordering by leveraging the immutability and naming of Git objects, which can be stored without consensus. This will involve rethinking where durable reference state resides, how compaction and garbage collection scale, and designing ordering mechanisms that do not introduce new bottlenecks. The article notes that agent traffic continues to grow, and each incremental step provides repositories with more headroom as they transition to Azure."

Word count: 150 words.

Paragraph 6: "The authors emphasize that Spokes, the core Git service, has evolved beyond its original quorum coordination role to become an intelligent routing and load balancing layer, a unified API handling over 100 billion operations daily, and a collection of sweepers managing repository placement, repair, and rebalancing. The vast majority of these capabilities are applicable to the new architecture, ensuring continuity. The next installment in the series will explore the end state, the specific improvements to write throughput, the second-order problems addressed, and the small consensus group that still exists within the stack."

Word count: 106 words.

Total: 123 + 169 + 104 + 126 + 150 + 106 = 780 words. Well within 1350.

We can add a bit more detail if needed, but it's already thorough.

Check for any missing key points: We covered the migration, per-reference serialization, virtual write replica, read decoupling, challenges, future steps, Spokes evolution. We also mentioned the principles. Good.

We referenced authors sparingly: "authored by Eleanor White and Victoria Dye" at start, "The authors emphasize" later. That's two references, which is fine.

No markdown, no special characters.

We didn't include any external info.

All good.

Now, produce the final answer.</think>The bridge to agent-scale Git infrastructure, authored by Eleanor White and Victoria Dye, presents a detailed examination of GitHub’s transition from a traditional Git infrastructure to a new architecture capable of supporting agent-scale development. The article explains how GitHub has migrated the vast majority of its repository data to Azure, while the remaining repositories are being connected through a series of architectural modifications that address the bottlenecks inherent in cross-region replication. The migration was deliberately sequenced to prioritize data movement before evolving the underlying architecture, a decision driven by the agentic shift, exponential growth in Git traffic, and physical capacity constraints.

At the core of this transition are two guiding principles: minimizing coordination and decoupling storage from compute. To bridge the old and new designs, GitHub introduced a shift from repository-wide serialization to per-reference serialization. Previously, the Spokes service used a quorum that required all healthy replicas to respond before committing a write, effectively serializing all operations on a repository. This approach forced the slowest replica to determine write latency and throughput, creating a significant bottleneck, especially when replicas were distributed across regions with high latency. By changing the quorum to operate on individual references rather than the entire repository, writes to different references can be processed concurrently. Since most repository writes target distinct references—such as branches pushed by developers or agents—this eliminates the single point of contention. As a result, write throughput ceilings increase in proportion to the number of concurrently written references, and the last remaining repositories can be safely migrated to Azure.

To complete the migration of the remaining repositories, GitHub introduced a virtual write replica. This is a fully ephemeral node that acts as a bridge to Azure Blob Storage, a durable object store. The virtual replica coalesces multiple transactions on disjoint references into a single set of network I/Os, ensuring durability before writes are acknowledged. Although this adds a small latency to each write, per-reference serialization prevents it from becoming a throughput-limiting factor. The virtual replica also handles compaction, consolidating state updates and facilitating the synchronization of read replicas.

A second critical advancement is the decoupling of read traffic from write operations. Traditional architecture forced reads and writes to compete for the same resources, limiting independent scaling. By making object storage a member of the quorum as a virtual replica, GitHub can now separate read and write paths. Read replicas are scaled independently, warming their caches from Azure Blob Storage and serving read traffic without joining the write quorum. This allows for greater in-memory caching for reads while writes are managed separately, unlocking significant read scale. Internal load testing demonstrated that virtual read replicas could absorb traffic beyond the limits of the original architecture.

Despite these progressions, challenges remain. Virtual read replicas must reconcile their local state with object storage in the background, which is effective for some workloads but not all; serving diverse read types requires moving reconciliation inline to avoid fetching unnecessary reference states. Additionally, write throughput is still bounded by the quorum, which requires replicas to hold full copies of the repository. Future steps aim to further optimize write ordering by leveraging the immutability and naming of Git objects, which can be stored without consensus. This will involve rethinking where durable reference state resides, how compaction and garbage collection scale, and designing ordering mechanisms that do not introduce new bottlenecks. The article notes that agent traffic continues to grow, and each incremental step provides repositories with more headroom as they transition to Azure.

The authors emphasize that Spokes, the core Git service, has evolved beyond its original quorum coordination role to become an intelligent routing and load balancing layer, a unified API handling over 100 billion operations daily, and a collection of sweepers managing repository placement, repair, and rebalancing. The vast majority of these capabilities are applicable to the new architecture, ensuring continuity. The next installment in the series will explore the end state, the specific improvements to write throughput, the second-order problems addressed, and the small consensus group that still exists within the stack.