Same Request to multiple endpoints #1243
Replies: 6 comments 5 replies
-
Hi @amarcoaldi77, |
Beta Was this translation helpful? Give feedback.
-
I try. Sometimes you need to train a second environment with same request that you want send to the primary system. Probably because, in a short time, you want switch from the primary endpoint to this secondary endpoint. In this interval you wanna know if that secondary system evolve in the right way with the same request that you send to the primary environment. It's like a fork of the request that came to a primary environment and then arrive to a secondary (or third,...) backend too. Other feature the ability to send the same request to N system (like risk analysis engine) that perform a task and respond with a specific risk score. On the api gateway you wait all the responces (with a timetout) and select the more restrictive response to emit. |
Beta Was this translation helpful? Give feedback.
-
Hi @amarcoaldi77, We are planning to add a kind of splitter, that
Instead of waiting for all three we planned just to call production regularly. The calls to the other backends will be executed asynchronously and should not slow down production. If a call to test or dev fails, we log it but we will ignore the error. It is important that all the environments get the calls to have almost identical data to test with. Maybe that is close to your needs. Otherwise maybe it is possible to make it configurable to match your case too. |
Beta Was this translation helpful? Give feedback.
-
@amarcoaldi77 feature has been canned, branch "parallel-interceptor" has a working prototype, but it doesn't stream the body which makes it potentially slower with large requests. Examples are included as well. Master version will only support traffic shadowing, not the full customizable strategy system. So the only feature is duplicating requests in the background without being able to interact with them. |
Beta Was this translation helpful? Give feedback.
-
The traffic shadowing functionality has been merged into the master branch. For configuration details, refer to the shadowing example |
Beta Was this translation helpful? Give feedback.
-
Hi @amarcoaldi77, I'm not sure this is the right way to accomplish it, hope it is helpfully. |
Beta Was this translation helpful? Give feedback.
-
Hi guys!
I would like to know if is there a specific configuration to send same request to more than one backend, wait for all responses and select one of this responses as outcome message. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions