---
title: "Beyond synthetic testing: Capturing and replaying real database workloads at Airbnb"
description: "Airbnb replaced fragmented per-language client-side query logging with a client-agnostic capture point in ProxySQL, so real production MySQL traffic can be replayed offline."
url: "https://swe.quest/articles/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-ad8d4a3a0c1cef6e"
canonical: "https://medium.com/airbnb-engineering/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-airbnb-cea7ee9b1ab2"
source: "Airbnb Engineering"
published: "2026-10-06"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["mysql","testing","capacity-planning","performance","databases"]
---

# Beyond synthetic testing: Capturing and replaying real database workloads at Airbnb

A post on [Airbnb Engineering](https://swe.quest/sources/airbnb.md), published 2026-10-06, 11 min read, Case study. Original: [https://medium.com/airbnb-engineering/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-airbnb-cea7ee9b1ab2](https://medium.com/airbnb-engineering/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-airbnb-cea7ee9b1ab2)

## Summary

Airbnb replaced fragmented per-language client-side query logging with a client-agnostic capture point in ProxySQL, so real production MySQL traffic can be replayed offline. A Log Mover sidecar ships ProxySQL query logs to object storage. A Log Processor splits them per cluster, reassembles transactions, buckets them into five-minute windows and rewrites INSERTs to pin last\_insert\_id. A queue-driven fleet of replay workers then uses shared start times to reproduce the original concurrency and pacing, at 1x or accelerated speeds. Replay-and-compare runs during the MySQL 5.7→8.0 upgrade caught a 0.03s→2.6s sort regression, duplicate queries the query cache had been hiding, and non-deterministic ORDER BY/LIMIT results. Accelerated replays locate capacity ceilings, for example commit latency rising from 6 ms to 34 ms at 80% more write traffic.

Written by swe.quest, not by the author.

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

## Topics

- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)

## Prerequisites

- MySQL basics ([easy posts on MySQL](https://swe.quest/tags/mysql.md?difficulty=easy))
- database proxies ([easy posts on Databases](https://swe.quest/tags/databases.md?difficulty=easy))
- load testing concepts ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))

## Keywords

ProxySQL, MySQL 8.0, MySQL 5.7, Kafka, Kubernetes, sysbench, innodb\_autoinc\_lock\_mode

## Related posts

- [We replaced Redis with MySQL for inventory reservations—and it scaled](https://swe.quest/articles/we-replaced-redis-with-mysql-for-inventory-reservations-and-it-scaled-2f8fab4ab3565f02.md): Shopify Engineering · 2026-05-12 · Medium · 10 min read · MySQL, E-commerce, Concurrency, Scaling, Performance engineering
  Shopify moved checkout inventory reservations from Redis to MySQL by modeling one row per sellable unit and using SELECT ...
- [Rebuilding Linear’s delta sync read path](https://swe.quest/articles/rebuilding-linear-s-delta-sync-read-path-c44713dd7fac387a.md): Linear · 2026-08-18 · Medium · 7 min read · Local-first & sync, PostgreSQL, Search, Event-driven architecture, Performance engineering
  Linear moved its delta sync read path, which lets reconnecting local-first clients fetch only changes since their last checkpoint, from a Postgres table to turbopuffer inverted indexes.
- [Scale without limits: Multigres, OrioleDB, and dbarena](https://swe.quest/articles/scale-without-limits-multigres-orioledb-and-dbarena-9dcab6dd01f060fc.md): Supabase · 2026-10-02 · Easy · 4 min read · PostgreSQL, Storage engines, Replication, Performance engineering
  Supabase launched three Postgres scaling efforts. Multigres, from the Vitess team, adds built-in connection pooling and automated failover across three availability-zone nodes, using a consensus protocol over synchronous replication so no committed write is lost.
- [Introducing Postgres Query Insights in ClickHouse Cloud](https://swe.quest/articles/introducing-postgres-query-insights-in-clickhouse-cloud-a9697a827409b984.md): ClickHouse · 2026-05-07 · Medium · 7 min read · PostgreSQL, Observability, Performance engineering, Analytics & OLAP
  Postgres Query Insights, now in preview for ClickHouse Cloud Managed Postgres, ranks every normalized query pattern by impact and aggregates per-execution counters (CPU, cache vs disk reads, temp spills, unlaunched parallel workers, WAL) to explain why a pattern is slow.
- [Turso 0.8: Concurrent writes without SQLite's single-writer bottleneck](https://swe.quest/articles/turso-0-8-concurrent-writes-without-sqlite-s-single-writer-bottleneck-12eb79dda642476c.md): Turso · 2026-09-29 · Medium · 6 min read · SQLite, Concurrency, Performance engineering, Storage engines, Query engines
  Turso 0.8 targets SQLite's single-writer bottleneck with BEGIN CONCURRENT, an MVCC mode where transactions start independently and commit in groups.

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)
