Skill 1.2.2

Running load/stress tests, performance benchmarking, and application testing at scale

Key Concepts

A pipeline can deploy to a staging environment and then run a load test from CodeBuild using tools such as JMeter, Locust, k6 or Gatling. For large tests, the Distributed Load Testing on AWS solution runs many Fargate containers to simulate thousands of users and reports response times and errors.

Benchmark results should be compared with a baseline, and the stage should fail when latency or error thresholds are exceeded. CloudWatch metrics and X-Ray traces captured during the test identify the bottleneck: CPU, database connections, throttling or a slow downstream dependency.