<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/solving-git-at-scale-cfrubrvxq" -->

---
title: Solving Git At Scale | daily.dev
description: A breakdown of why hosting Git at scale is architecturally hard, based on a GitHub engineer's write-up. It covers Git internals (commits, trees, blobs,...
canonical: https://daily.dev/posts/solving-git-at-scale-cfrubrvxq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Solving Git At Scale | daily.dev
og:description: A breakdown of why hosting Git at scale is architecturally hard, based on a GitHub engineer's write-up. It covers Git internals (commits, trees, blobs,...
og:url: https://daily.dev/posts/solving-git-at-scale-cfrubrvxq
og:image: https://api.daily.dev/og/posts/CFRubrvXQ.png
og:image:alt: Solving Git At Scale
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Solving Git At Scale

**[ThePrimeTime](https://daily.dev/sources/primeagen)** · 12 min read · 3 upvotes · 0 comments

## Summary

A breakdown of why hosting Git at scale is architecturally hard, based on a GitHub engineer's write-up. It covers Git internals (commits, trees, blobs, packfiles), why key-value store approaches (tried by Google) failed due to excessive round trips, and how GitHub's 'Spokes' system (created ~2013) replicates repositories across at least three machines using a three-phase commit, which suffers from the tail-at-scale problem making writes slow on popular repos. It then explains a newer approach called 'Continuity' that replaces consensus-based replication with a write-ahead log stored on S3 and rendezvous hashing, eliminating the need for multiple always-on replicas and enabling up to 16,000 commits per minute.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=AFQW-b2WaRU>

## Questions this post answers

### Why is it so hard to host Git at scale?

Git communicates using packfiles, and reconstructing a file's version requires walking from the commit root through trees to the blob, which makes simple key-value store approaches slow at scale (Google tried this and abandoned it because git clone became too slow). Distributed replication with consensus, like GitHub's Spokes system, also suffers from tail-latency problems as write requests multiply across replicas.

_For deep dives into scaling infrastructure challenges like Git hosting, daily.dev surfaces the write-ups engineers actually discuss._

### How does GitHub's Spokes system replicate Git repositories?

Spokes, developed at GitHub around 2013, replicates each repository across a minimum of three machines on local NVMe disks, keeping them consistently in sync via a routing table. Reads can hit any replica, but writes require a three-phase commit (prepare, lock, commit) across all replicas, which becomes increasingly slow as popular repositories accumulate more replicas.

_Engineers weighing replication strategies for their own systems can track architecture breakdowns like this on daily.dev._

### What is the Continuity approach to solving Git write-latency problems and how fast is it?

Continuity replaces multi-replica consensus with a write-ahead log stored on S3, combined with rendezvous hashing to route requests to the right node without needing multiple synced replicas or voting. Any node can restore a repository's state from the log in milliseconds, and the system can sustain around 16,000 commits per minute using fast NVMe storage alongside S3.

_daily.dev helps developers keep up with new architectural patterns like S3-backed write-ahead logs for Git hosting._

## Similar posts on daily.dev

- [Building Git infrastructure for agent-scale development](https://daily.dev/posts/building-git-infrastructure-for-agent-scale-development-xo12uijhx) · GitHub Blog · 7 upvotes · 0 comments
- [Cursor Uses S3 WAL to Scale Git Storage to More than 300 Pushes per Second](https://daily.dev/posts/cursor-uses-s3-wal-to-scale-git-storage-to-more-than-300-pushes-per-second-eczigcs8g) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#distributed-systems](https://daily.dev/tags/distributed-systems), [#git](https://daily.dev/tags/git), [#github](https://daily.dev/tags/github), [#system-design](https://daily.dev/tags/system-design)

[View this post on daily.dev](https://daily.dev/posts/solving-git-at-scale-cfrubrvxq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Solving Git At Scale","url":"https://daily.dev/posts/solving-git-at-scale-cfrubrvxq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/solving-git-at-scale-cfrubrvxq"},"datePublished":"2026-08-28T13:25:45.156Z","dateModified":"2026-11-01T18:44:36.866Z","description":"A breakdown of why hosting Git at scale is architecturally hard, based on a GitHub engineer's write-up. It covers Git internals (commits, trees, blobs,...","image":"https://i.ytimg.com/vi/AFQW-b2WaRU/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/AFQW-b2WaRU/sddefault.jpg","isAccessibleForFree":true,"articleSection":"ThePrimeTime","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ThePrimeTime","logo":"https://media.daily.dev/image/upload/s--J5-GjDeo--/f_auto/v1704628081/logos/primeagen.jpg","url":"https://daily.dev/sources/primeagen"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/solving-git-at-scale-cfrubrvxq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"distributed-systems,git,github,system-design","timeRequired":"PT12M","video":{"@type":"VideoObject","name":"Solving Git At Scale","description":"A breakdown of why hosting Git at scale is architecturally hard, based on a GitHub engineer's write-up. It covers Git internals (commits, trees, blobs,...","thumbnailUrl":"https://i.ytimg.com/vi/AFQW-b2WaRU/sddefault.jpg","uploadDate":"2026-08-28T13:25:45.156Z","duration":"PT12M","url":"https://api.daily.dev/r/CFRubrvXQ","embedUrl":"https://www.youtube.com/embed/AFQW-b2WaRU"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ThePrimeTime","item":"https://daily.dev/sources/primeagen"},{"@type":"ListItem","position":3,"name":"Solving Git At Scale"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/solving-git-at-scale-cfrubrvxq#faq","mainEntity":[{"@type":"Question","name":"Why is it so hard to host Git at scale?","acceptedAnswer":{"@type":"Answer","text":"Git communicates using packfiles, and reconstructing a file's version requires walking from the commit root through trees to the blob, which makes simple key-value store approaches slow at scale (Google tried this and abandoned it because git clone became too slow). Distributed replication with consensus, like GitHub's Spokes system, also suffers from tail-latency problems as write requests multiply across replicas. For deep dives into scaling infrastructure challenges like Git hosting, daily.dev surfaces the write-ups engineers actually discuss."}},{"@type":"Question","name":"How does GitHub's Spokes system replicate Git repositories?","acceptedAnswer":{"@type":"Answer","text":"Spokes, developed at GitHub around 2013, replicates each repository across a minimum of three machines on local NVMe disks, keeping them consistently in sync via a routing table. Reads can hit any replica, but writes require a three-phase commit (prepare, lock, commit) across all replicas, which becomes increasingly slow as popular repositories accumulate more replicas. Engineers weighing replication strategies for their own systems can track architecture breakdowns like this on daily.dev."}},{"@type":"Question","name":"What is the Continuity approach to solving Git write-latency problems and how fast is it?","acceptedAnswer":{"@type":"Answer","text":"Continuity replaces multi-replica consensus with a write-ahead log stored on S3, combined with rendezvous hashing to route requests to the right node without needing multiple synced replicas or voting. Any node can restore a repository's state from the log in milliseconds, and the system can sustain around 16,000 commits per minute using fast NVMe storage alongside S3. daily.dev helps developers keep up with new architectural patterns like S3-backed write-ahead logs for Git hosting."}}]}
```

