Stitching resillience #4783
Unanswered
PendingChanges
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Its a bit more complex than just putting polly in. If you want the stitching to be resilient you can use our redis stitching provider where we store the last valid schemas on redis. Whenever one component restarts and we cannot reach one of the downstream services we will refer to the redis cache. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are using schema stitching with HotChocolate 12 with many external services and we are trying to make HTTP clients resillient (like said in the v10 doc of HotChocolate : https://chillicream.com/docs/hotchocolate/v10/stitching/#making-http-clients-resilient).
Today, if one of the service referenced by the gateway is unavailable, the gateway sdl (and the query/mutations calls) are all broken.
I'm trying some things with Polly by wrapping up Retry and Fallback policies : When a service is in error 3 times in a row, I have a fallback policy to return something which is not breaking all the gateway.
I tried returning a 200 status when fallback is reached but it still break everything.
What can I return in my fallback policy to make the gateway understand that one of the services is unavailable and don't break everything?
Beta Was this translation helpful? Give feedback.
All reactions