shadowreader icon indicating copy to clipboard operation
shadowreader copied to clipboard

Feedback / suggestions / comments welcome!

Open ysawa0 opened this issue 5 years ago • 3 comments

ysawa0 avatar May 23 '19 23:05 ysawa0

I've got a use case that Shadowreader would be delightful for: load testing resources through an AWS API Gateway, by mirroring traffic from one stage to another stage.

We have two resource "lanes", each receiving traffic from the same API Gateway endpoint via Stages (one stage per lane.) The primary stage typically routes traffic to the primary lane, but occasionally we route primary stage traffic to the secondary lane while updating the primary lane.

We'd get value out of mirroring primary stage traffic to the secondary stage in (near) real time, such as testing resized/updated resources in the secondary lane with real production traffic and observing the relative performance in (near) real time.

owenville avatar Jun 20 '19 00:06 owenville

I have looked into this a bit before and I believe it should be possible as API Gateway access logs can now be sent to CloudWatch:

https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-logging.html

One note is that there would need to be a process (Lambda) to tail the CW logs and ship them to S3 so that ShadowReader can parse and replay them.

ysawa0 avatar Jun 27 '19 22:06 ysawa0

I went through the documentation, and looks like this only works for GET requests with no body. My team would like to use this for an API that uses different HTTP verbs, some of which have bodies. I know ELB doesn't capture request body, so this might require a different approach.

dskrvk avatar Oct 01 '19 14:10 dskrvk