chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.62k stars 825 forks source link

Shadow/mirror requests #918

Open justinpenguin45 opened 1 year ago

justinpenguin45 commented 1 year ago

Describe the feature you'd love to see

Maybe this feature already exists, however I could not find a way to do it. We would like to mirror requests to replica server. Is this already possible?

Additional context (optional)

No response

chimurai commented 1 year ago

Could you elaborate more on the use case and motivation for this feature?

justinpenguin45 commented 1 year ago

Sure - We want to take requests sent to a production environment and mirror those requests to a copy of the production environment. We are using http-proxy-middleware as a proxy to a 3rd party API/application. We want to take all those proxied requests to the 3rd party and mirror them to a clone of the production. Does that help?