Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

AWS Architecture Blog 14 min read Case study mediumAdept

Modular regression testing framework built on AWS for large-scale systems

A traffic-replay regression testing framework built on AWS captures production requests and responses, replays a sample against new code in pre-production, and gates deployments on a CloudWatch alarm over the fraction of matching outputs (typically 99.9%). Step Functions toggles a Lambda event source mapping on a DynamoDB stream, replayed requests carry simulation IDs so stateful services can skip side effects and seed randomness deterministically, and responses are reduced and normalized before comparison via CloudWatch Logs Insights. Over six months it caught five customer-impacting regressions with zero false positives, using about 5% traffic replay with 200-record batches and reserved concurrency to cap load.

Related posts

  • How Zillow runs 100 million daily notifications on AWS Step Functions

    AWS Architecture Blog mediumAdept

    Zillow replaced more than 10 per-campaign notification generator services with a configuration-driven Campaign Orchestrator that runs each of 100M+ daily email and push notifications as a short-lived AWS Step Functions Express Workflow, calling a shared library of stateless, schema-driven content modules (the Universal Content Generator) via HTTP Invoke. Step Functions beat Temporal, Flowable and an in-house engine at roughly a quarter of the build and maintenance effort. Express mode was chosen over Standard for its higher start quota and low latency, with at-least-once semantics handled by idempotent modules. Key techniques include an SQS-fed router for pausing, replay and throttling, EventBridge connections for API-key auth, component inheritance compiled into task states, a declarative config layer that AI tools can safely generate, and batching for throughput and cost.

  • Automating performance tests

    Supabase mediumAdept

    Supabase built its performance-testing pipeline while rewriting its WebSocket-based Realtime service, starting with manual k6 load generators on AWS VMs and adding Grafana/Prometheus to diagnose loader resource exhaustion. When load-test metric volume overwhelmed Prometheus's push endpoint, they added Telegraf as an intermediary buffer that also collects host metrics. Because k6 Cloud would have cost hundreds of thousands per year for their concurrency levels, they wrote a small Go app that runs Terraform and k6 scenarios, tears down infrastructure, tracks launch history and exposes an API for GitHub Actions. With it they have run tests of up to 1M concurrent virtual users for Supavisor and 200K for Realtime, and onboarded other services in hours to days.

  • Inside Laravel Nightwatch’s Observability Pipeline: Real-Time Event Processing with Amazon MSK and ClickHouse Cloud

    ClickHouse easyNovice

    Laravel Nightwatch, Laravel's first-party observability platform, ingests telemetry through API Gateway and Lambda into Amazon MSK Express brokers, then streams it into ClickHouse Cloud via ClickPipes, with materialized views pre-aggregating raw JSON. Transactional data such as accounts and billing stays in RDS PostgreSQL, keeping it separate from analytical workloads. MSK sustained over 1 million events per second in load testing, and the launch handled 500 million events on day one with 97 ms average dashboard latency. Sub-second queries at billions of rows rely on time-series partitioning, ClickHouse codecs and compute separation, though the write-up stays high-level and reads partly as vendor marketing.

  • How OpenAI’s Performance Factory keeps ChatGPT fast

    OpenAI mediumAdept

    OpenAI's Performance Factory is a cloud-based system of Codex agents that automates performance regression handling end to end, from alert to root cause, proposed fix, and verified recovery. It is built from four parts: a task service with Markdown/TOML-defined workflow states, a dispatch loop that assigns ready tasks to agents, an API running Codex turns inside the internal network under a service identity, and event subscriptions that wake tasks on PR comments or deployments. A separate adversarial-review agent tries to disprove each diagnosis and each proposed fix, and a shared `perf-forensics` skill encodes the team's investigation playbook. In about three months the workflow ran over 1,700 investigations and root-caused more than 600, and 70% of 100 sampled diagnoses were graded accurate. Fixes proved harder than diagnosis and still go through engineer review.

  • Monitor your CI performance using Sentry

    Sentry mediumAdept

    Sentry's tracing model can represent GitHub Actions workflows as traces, with each job's steps as spans, so slow steps and run-to-run variance show up the same way they would for an API request. Applied to the Sentry .NET SDK's macOS build job, it showed the Build step taking about 44 of 83 minutes. Better caching across runs and parallelized tests cut the job to about 24 minutes, a 71% reduction, and custom dashboards tracking p50/p90 showed overall workflow runs about 64% faster. Setup takes a Sentry project, a private `.sentry` repo with a `sentry_config.ini` holding the DSN, and an experimental GitHub App that reads Actions metadata. Ingested jobs count against your span quota.

The quest for software engineering knowledge.

Look:
Layout: