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

DevFeed: [Modular regression testing framework built on AWS for large-scale systems](<https://devfeed.tech/articles/modular-regression-testing-framework-built-on-aws-for-large-scale-systems-132422.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/architecture/modular-regression-testing-framework-built-on-aws-for-large-scale-systems/>)

Author: Hannah Zhang

Published: 2026-11-12T21:51:43Z

Content type: tutorial

Language: en

Sources: [AWS Architecture Blog](<https://devfeed.tech/sources/aws-architecture-blog.md>)

Topics: [Test automation](<https://devfeed.tech/topics/test-automation.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [AWS Step Functions](<https://devfeed.tech/topics/aws-step-functions.md>), [Amazon CloudWatch Logs](<https://devfeed.tech/topics/amazon-cloudwatch-logs.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [cases](<https://devfeed.tech/tags/cases.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code](<https://devfeed.tech/tags/code.md>), [deployments](<https://devfeed.tech/tags/deployments.md>), [expert-400](<https://devfeed.tech/tags/expert-400.md>), [framework](<https://devfeed.tech/tags/framework.md>), [large](<https://devfeed.tech/tags/large.md>), [modular](<https://devfeed.tech/tags/modular.md>), [production](<https://devfeed.tech/tags/production.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [regression](<https://devfeed.tech/tags/regression.md>), [regression-testing](<https://devfeed.tech/tags/regression-testing.md>), [results](<https://devfeed.tech/tags/results.md>), [sample](<https://devfeed.tech/tags/sample.md>), [scale](<https://devfeed.tech/tags/scale.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>), [systems](<https://devfeed.tech/tags/systems.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

The framework replays sampled production requests against pre-production code and uses a match-fraction CloudWatch alarm as an automated deployment gate. An SNS/SQS event starts a Step Functions workflow; Lambda replays captured traffic, compares normalized business-logic outputs, and logs per-request results. The design can capture at API, service, database, or queue boundaries and is simplest for stateless, deterministic systems. Stateful services need replay IDs and safeguards such as skipping side effects; randomized behavior can use the ID as a seed. Accurate results depend on capturing all relevant request context and choosing domain-specific fields to compare. The framework targets regression detection, not validation of new business logic. The authors report five customer-impacting regressions caught over more than six months, with no false-positive deployment blocks. Replay volume and throttling need controls, and the main cost is processing replayed requests in the tested system.

## Source excerpt

Regression testing must catch behavior changes before they reach production, yet synthetic tests miss real-world edge cases. This post walks through a modular framework, built on AWS, that replays a sample of production traffic against new code and automatically gates deployments on the fraction of results that match production.