0

We are going to migrate our database from Aurora Serverless to Aurora Cluster. Before that, we'd like to test the performance of the new database in a real-time traffic scenario. We have thought about cloning the current API Gateway, targeting the new database and mirroring traffic from the production API to the test API.

Is this crazy? Is there any way to achieve this without affecting the performance of the production API Gateway? (there is a CloudFront in front of our API Gateway) Maybe listen for API Gateway events in Cloudwatch and trigger a lambda to run the query against the test API gateway?

Juanlu
  • 3
  • 3
  • I wonder if you'd be better off with a load testing tool set up for a production-like mix of traffic, or keeping very good logs of API gateway and replaying them with some custom solution. EC2 has traffic mirroring ( https://docs.aws.amazon.com/vpc/latest/mirroring/what-is-traffic-mirroring.html ) but I don't know of any other easy way to do this. I'm not sure you need to both, since you already use Aurora, you're just using a variety where the primary difference is a different scaling method. – Tim Nov 30 '21 at 17:24
  • Hi @Tim, finally we are going to abandon this idea and make load testing with HammerDB. Thank you. – Juanlu Dec 01 '21 at 11:59
  • I will make my comment an answer so you can close the question off. – Tim Dec 01 '21 at 16:56

1 Answers1

0

I wonder if you'd be better off with a load testing tool set up for a production-like mix of traffic, or keeping very good logs of API gateway and replaying them with some custom solution.

EC2 has traffic mirroring but I don't know of any other easy way to do this.

I'm not sure you need to do this, since you already use Aurora, you're just using a variety where the primary difference is a different scaling method.

Tim
  • 30,383
  • 6
  • 47
  • 77