I’m looking for a service proxy that can mirror or shadow traffic (similar to https://goreplay.org) to a staging environment. I didn’t see any specific plugin to do this. Is it possible in current Kong?
Yes, it is possible for Kong to implement request shadowing such as you described. However, no such implementation is available that I know of, as you observed. We would very much welcome one from the community (and even be willing to provide some help in its development)!
Is there some plan to provide traffic shadow/mirror?
This is very much on the roadmap. @hisham can provide more details if he has any.
This sounds neat, a Kong plugin that can capture real time traffic requests in a queue to dump against the backed as a “repeat” would be cool. I would be worried about anything that’s not a GET , would not wanna inject dup records in prod processes by mistake but being able to regenerate complex real query/select calls in prod with replay capabilities could certainly meet some neat “real world” testing capabilities.
Hey @hbagdi ,
This sounds great. Is this actively being worked on?
I have successfully tested traffic mirror with this plugin. GitHub - nhp0712/kong-plugin-http-mirror. I had to modify some parts of it in order to make it work. However, it’s now currently mirroring a single or multiple endpoints at once, so it currently doesn’t support load balancing.
Anyways, many thanks to the creator tarepanda1024 and contributor lgazo .