---
title: "How we improved availability through iterative simplification"
description: "GitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors."
url: "https://swe.quest/articles/how-we-improved-availability-through-iterative-simplification-1aa63e0def5687e6"
canonical: "https://github.blog/engineering/engineering-principles/how-we-improved-availability-through-iterative-simplification/"
source: "GitHub Engineering"
published: "2024-07-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 6
tags: ["performance","mysql","ruby","observability","deployment"]
---

# How we improved availability through iterative simplification

A post on [GitHub Engineering](https://swe.quest/sources/github.md), published 2024-07-23, 6 min read, Case study. Original: [https://github.blog/engineering/engineering-principles/how-we-improved-availability-through-iterative-simplification/](https://github.blog/engineering/engineering-principles/how-we-improved-availability-through-iterative-simplification/)

## Summary

GitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors. Each change was validated with Scientist experiments or rolled out gradually behind Flipper feature flags. Reordering a Command Palette query to look up a user's contributions before filtering by org removed a large IN clause and was 80-90% faster, and batching access checks added another 20-80% and 30-40%. Skipping unneeded authorization filters on a busy redirect endpoint cut tail latency and timeouts. Not every idea paid off: moving sorting into the application was 40-80% slower, so that experiment was dropped.

Written by swe.quest, not by the author.

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

## Topics

- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- Ruby on Rails controllers and ActiveRecord ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- SQL query performance basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- feature flags ([easy posts on Deployment](https://swe.quest/tags/deployment.md?difficulty=easy))

## Keywords

GitHub, Scientist, Flipper, Datadog, Splunk, MySQL, Ruby on Rails

## Related posts

- [Building PlanetScale with Insights Agent](https://swe.quest/articles/building-planetscale-with-insights-agent-b70b35e12242702e.md): PlanetScale · 2026-11-19 · Medium · 5 min read · MySQL, Performance engineering, AI agents, Ruby, Databases
  PlanetScale ran its Insights Agent, which finds costly queries via Query Insights and opens fix PRs, against its own Rails API on MySQL.
- [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.
- [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.
- [Infrastructure Observability for Changing the Spend Curve](https://swe.quest/articles/infrastructure-observability-for-changing-the-spend-curve-815f49a6391b6804.md): Slack Engineering · 2021-10-07 · Medium · 10 min read · CI/CD, Cost optimization, Observability, Resilience, Capacity planning
  Slack bent the growth curve of its webapp CI spend, which had been rising about 10% month over month, by using observability (dashboards, metrics and tracing) to drive three changes.
- [How we systematically improved our reliability](https://swe.quest/articles/how-we-systematically-improved-our-reliability-84b3da37239114bb.md): Neon · 2026-09-30 · Medium · 11 min read · SRE, Incidents & postmortems, Resilience, PostgreSQL, Deployment
  After two control-plane incidents in one week, each triggered by an external dependency failure that turned into a self-reinforcing loop, Neon rebuilt how it runs reliability for Lakebase Postgres across 70+ cells on three clouds.

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)
