GitHub ships Spokes a new Git architecture

GitHub is rebuilding its Git infrastructure while GitHub keeps running. There is no maintenance window and no version change.

The current architecture stores five complete copies of each repository on local fileservers. This creates fundamental problems at agent scale.

Durability and scale are coupled. Background maintenance blocks serving. Every push multiplies into thousands of reads.

This architecture becomes a ceiling at high activity levels. Adding replicas slows down writes. Losing a replica reduces read capacity. Losing quorum stops writes entirely.

The new Spokes design decouples storage from compute minimizes coordination and delivers up to 35x higher write throughput.

Why agent-scale development demands a new architecture

Agentic software development is driving the next architectural shift. With developers and agents working concurrently in repositories that receive millions of commits a day these workloads demand a different Git architecture.

Pushes grew 4.9x year over year from 0.69B to 3.35B per month. Each push multiplies into thousands of reads as CI and code scanning clone or fetch the same branch tip thousands of times per minute.

GitHub Actions alone ran 3.26B times in September 2026 -- 4x as many as a year ago.

Git events per repository show the gap between a typical repository and the busiest ones is wider than most expect. The busiest repository on GitHub saw roughly a billion requests in August 2026.

Total Git activity on GitHub increased to more than 2x its previous level from 218.2B to 473.3B events per month between September 2025 and August 2026. In September alone developers and agents made 7.38B commits on GitHub -- more than five times as many as a year earlier.

The Spokes system has been in production since 2016. GitHub originally called it DGit for Distributed Git and announced it in April 2016. By that year 58% of repositories and 96% of Gists representing 67% of Git operations were in DGit. The system was renamed Spokes later that year.

License and activity

GitHub's Spokes architecture is proprietary. The source code for the Git platform is not open source.

The engineering blog post describes the design principles but does not publish the implementation. The architecture runs on Azure Blob Storage which provides durability and replication at cloud scale.

GitHub's earlier Spokes articles are open source: the original DGit post from April 2016 and the resilience post from September 2016 are both at github.blog.

When this matters

The Spokes design affects any team that uses GitHub for agent-scale development. Compute workers can be added or removed as traffic changes instead of provisioning for peak load in advance.

Losing a compute worker is closer to a cache miss. A replacement worker can start serving requests right away and fill its cache from durable storage as traffic arrives.

Object storage validation and secret scanning proceed in parallel to pushes and fetches. Coordination is minimized to only reference updates that need agreement.

The three-phase commit protocol keeps replicas in sync with four round trips to distant replicas. GitHub also contributed reference update transactions to the open source Git project to make this work.

What Spokes introduces

While the new architecture resolves the Spokes system limitations it introduces new considerations. Storage layer dependency. Cache coherency. Network latency. Partial failure scenarios.

GitHub mitigates these risks through Azure built-in storage redundancy and global distribution cache invalidation and warm-up strategies for worker failures gradual rollout with production traffic shadowing and comprehensive observability into both storage and compute layers.

The original Spokes system survived individual server crashes from kernel deadlocks and faulty RAM chips. The new architecture inherits those resilience patterns.

Links

  • Building Git infrastructure for agent-scale development -- @url:https://github.blog/engineering/architecture-optimization/building-git-infrastructure-for-agent-scale-development/ 2026.
  • Introducing DGit -- @url:https://github.blog/engineering/architecture-optimization/introducing-dgit/ 2016. GitHub original post announcing the distributed storage system that became Spokes.
  • Building resilience in Spokes -- @url:https://github.blog/engineering/infrastructure/building-resilience-in-spokes/ 2016. Details how Spokes keeps three copies of every repository and survives server failures.
  • Stretching Spokes -- @url:https://github.blog/engineering/infrastructure/stretching-spokes/ 2017. How Spokes replication spans widely separated datacenters.
  • How GitHub Uses Spokes for Cross Data-Center Replication -- @url:https://infoq.com/news/2017/10/github-spokes-replication/ 2017. An independent overview of the Spokes architecture.
  • GitHub DGit Improves Reliability Performance and Availability -- @url:https://infoq.com/news/2016/04/github-dgit/ 2016. An independent overview of the original DGit system.
  • How GitHub Actually Works -- @url:https://udaykumar-dhokia.github.io/insidethestack/articles/how-github-works/ 2026. A deep dive into GitHub architecture including Spokes.
  • Spokes architecture diagram -- @url:https://github.blog/wp-content/uploads/2017/10/spokes-diagram.jpg -- used as the article hero image credited to GitHub Blog.