Nebo15 / annon.api

Configurable API gateway that acts as a reverse proxy with a plugin system.
http://docs.annon.apiary.io/
MIT License
331 stars 25 forks source link

RFC: Request Shadowing #272

Open AndrewDryga opened 6 years ago

AndrewDryga commented 6 years ago

Redirecting or shadowing (duplicating) small percent of requests to a staging environment works really well for complex projects with microservice architecture. In some cases, shadowing allows getting rid off "monolith-style" integration tests entirely (when people trying to test at the same time).

This plugin can be fairly simple to implement: with given probability we duplicate request to a shadow back-end and then persist diff between responses in a database.