Home icon

Reduce code duplication in load testing and synthetic monitoring using Amazon CloudWatch Synthetics

AWS Cloud Operations Blog



This article discusses how to use Amazon CloudWatch Synthetics for load testing and synthetic monitoring, reducing code duplication by reusing the same canary script for both purposes.

Specifically, the article covers:

  • Creating a CloudWatch Synthetics canary to check the health of an HTTP endpoint
  • Using AWS Step Functions to invoke the canary's Lambda function in parallel to simulate load testing
  • Modifying the canary code to gather only relevant metrics and data for load testing
  • Monitoring the load test metrics in CloudWatch
  • Considerations for effective load testing, such as concurrency limits and cost optimization
  • Troubleshooting tips and clean-up steps


Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jun 19
2024
Testing Amazon Cognito backed APIs using Amazon CloudWatch Synthetics
Sep 2
2025
Amazon CloudWatch Synthetics adds multi-browser support for application testing
May 10
2024
Testing and debugging Amazon CloudWatch Synthetics canary locally
May 28
2025
Amazon CloudWatch Synthetics Adds Java Runtime for Lightweight API Monitoring

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.