---
title: "How we improved push processing on GitHub"
description: "GitHub replaced RepositoryPushJob, a single sequential background job that ran over 60 push-handling tasks from 20 services, with a Kafka push event fanned out to roughly 16 independently owned, parallel jobs."
url: "https://swe.quest/articles/how-we-improved-push-processing-on-github-ee01af72cf149679"
canonical: "https://github.blog/engineering/architecture-optimization/how-we-improved-push-processing-on-github/"
source: "GitHub Engineering"
published: "2024-06-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["event-driven","messaging","resilience","ruby","scalability"]
---

# How we improved push processing on GitHub

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2024-06-11, 7 min read, Case study. Original: [https://github.blog/engineering/architecture-optimization/how-we-improved-push-processing-on-github/](https://github.blog/engineering/architecture-optimization/how-we-improved-push-processing-on-github/)

## Summary

GitHub replaced RepositoryPushJob, a single sequential background job that ran over 60 push-handling tasks from 20 services, with a Kafka push event fanned out to roughly 16 independently owned, parallel jobs. The monolithic job was hard to retry because different tasks had conflicting retry needs. Its tight coupling meant a failure early in the job, such as in the Pushes MySQL cluster, could block unrelated work like pull request sync, and its sequential design added latency. The migration needed a reliable Kafka publisher, dedicated worker pools, finer observability and per-event feature flags for a safe rollout. Afterward, p50 pull request sync time fell from about 3s to 2s, ownership spread to 15+ teams, and fully processed pushes rose from 99.897% to at least 99.999%.

Written by swe.quest, not by the author.

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

## Topics

- [Event-driven architecture](https://swe.quest/tags/event-driven.md) (Backend & APIs)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [Resilience](https://swe.quest/tags/resilience.md) (Distributed systems)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [Scaling](https://swe.quest/tags/scalability.md) (Distributed systems)

## Prerequisites

- background job queues ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- Kafka basics ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))

## Keywords

GitHub, Kafka, RepositoryPushJob, Ruby on Rails, MySQL

## Related posts

- [How we tripled max concurrent jobs to boost performance of GitHub Actions](https://swe.quest/articles/how-we-tripled-max-concurrent-jobs-to-boost-performance-of-github-actions-9d54244cd033cdac.md): GitHub Engineering · 2022-09-16 · Medium · 5 min read · Performance engineering, Scaling, CI/CD, Caching
  GitHub Actions on GitHub Enterprise Server went from 2,200 to 7,000 max concurrent jobs on 96-core machines between GHES 3.2 and 3.6 through three main fixes.
- [Incident Report: November 20th, 2025](https://swe.quest/articles/incident-report-november-20th-2025-8a5b09711237e8e3.md): Railway · 2025-11-21 · Easy · 3 min read · Incidents & postmortems, Resilience, Deployment, Queues & messaging
  A dip in GitHub push webhooks followed by a 10x surge flooded Railway's asynchronous deployment task queue, delaying all new deployments for about two and a half hours on November 20th, 2025.
- [Building Git infrastructure for agent-scale development](https://swe.quest/articles/building-git-infrastructure-for-agent-scale-development-3f8b84d59639a2ff.md): GitHub Engineering · 2026-10-06 · Easy · 8 min read · Version control, Distributed systems, Scaling, Replication, Storage systems
  GitHub is rebuilding its Git storage layer because agent-driven workloads are colliding with the design of Spokes.
- [Improving Git push times through faster server side hooks](https://swe.quest/articles/improving-git-push-times-through-faster-server-side-hooks-21ad6ccb34bf4962.md): GitHub Engineering · 2022-04-21 · Medium · 5 min read · Performance engineering, Version control, Go, Ruby, Refactoring & migrations
  GitHub cut pre-receive hook execution time on every Git push from about 880ms median to 10ms, dropping P99 by 95%, by rewriting the hooks from Ruby into its Go Git service.
- [Keep the monolith, but split the workloads](https://swe.quest/articles/keep-the-monolith-but-split-the-workloads-a46b5ee6a5f1e352.md): incident.io · 2023-04-12 · Medium · 9 min read · Resilience, System design, PostgreSQL, Go, Microservices
  A Go monolith can get much of the reliability isolation of microservices by splitting workloads into separate deployments of the same binary, instead of breaking it into services.

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)
