---
title: "20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog"
description: "Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP."
url: "https://swe.quest/articles/20-the-ci-traffic-without-getting-slower-how-we-rebuilt-git-serving-at-datadog-9f7156670a81ca53"
canonical: "https://www.datadoghq.com/blog/engineering/gitretriever/"
source: "Datadog Engineering"
published: "2026-08-19"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["version-control","ci-cd","scalability","caching","replication"]
---

# 20× the CI traffic without getting slower: How we rebuilt Git serving at Datadog

A post on [Datadog Engineering](https://swe.quest/sources/datadog.md), published 2026-08-19, 13 min read, Case study. Original: [https://www.datadoghq.com/blog/engineering/gitretriever/](https://www.datadoghq.com/blog/engineering/gitretriever/)

## Summary

Datadog replaced CI fetches from a replicated Gitaly/Praefect cluster with gitretriever, a fleet of independent Git mirrors that poll GitHub per changed ref and fan packfiles out to autoscaled relays over a gRPC signaling stream plus HTTP. Because Git objects are content-addressed, relays install received packfiles without re-indexing. A pack cache serves about half of pack-building fetches without redoing delta compression. Traffic grew 20× in four months while median latency held near 40 ms, and fetch-serving CPU on the old backend fell 3–4×. A read-only HTTP API for ref resolution and file reads also replaced many full clones by internal tools and AI agents.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Version control](https://swe.quest/tags/version-control.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)
- [Caching](https://swe.quest/tags/caching.md) (Backend & APIs)
- [Replication](https://swe.quest/tags/replication.md) (Distributed systems)

## Prerequisites

- Git objects and packfiles
- Git protocol basics
- CI pipelines ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

gitretriever, Git protocol v2, Gitaly, Praefect, GitHub, GitLab, gRPC, packfiles

## Related posts

- [Scaling Git at OpenAI](https://swe.quest/articles/scaling-git-at-openai-cd141be9cdce804b.md): OpenAI · 2026-11-02 · Hard · 24 min read · Version control, Distributed systems, Consistency models, Scaling, Storage systems
  Pando is OpenAI's new Git backend for its monorepo, built to handle the concurrent pushes and fetches generated by Codex-driven parallel development while staying fully compatible with the Git protocol and client.
- [Scaling merge-ort across GitHub](https://swe.quest/articles/scaling-merge-ort-across-github-6d05304b446e2f08.md): GitHub Engineering · 2023-07-27 · Medium · 5 min read · Version control, Performance engineering, Deployment
  GitHub replaced its libgit2-based server-side merge and rebase implementation with Git's merge-ort strategy, which needs no working directory and matches what the Git command line does.
- [Scaling Git’s garbage collection](https://swe.quest/articles/scaling-git-s-garbage-collection-9458d212eaaeddf6.md): GitHub Engineering · 2022-09-13 · Hard · 23 min read · Version control, Storage engines, Memory management, Scaling
  Git's garbage collection historically stored recently-written unreachable objects as individual loose files so their mtimes could govern expiry, which bloated storage, exhausted inodes and slowed repacks in busy repositories at GitHub's 18.6 PB scale.
- [Inside GitHub’s new Git storage architecture](https://swe.quest/articles/inside-github-s-new-git-storage-architecture-014a8644555e81c8.md): GitHub Engineering · 2026-11-05 · Hard · 15 min read · Version control, Storage systems, Distributed systems, Scaling, Replication
  GitHub's new Git storage architecture, Rubicon, rests on one observation: only reference updates need ordering.
- [Redesigning source control at Anthropic](https://swe.quest/articles/redesigning-source-control-at-anthropic-ecdbb37746353304.md): Anthropic Engineering · 2026-10-13 · Medium · 17 min read · Version control, System design, Caching, Scaling, AI for coding
  Anthropic replaced git with Scion, an in-house centralized version control system, after its monorepo grew past what git mirrors could serve.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
