-
Hi Richard, Does fallback provider work with 5XX errors? For example, if one provider 5XX's and the other does not, does it uses the provider with the 200 response? Or does the whole thing fail? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
A backend returning a 500 is just another failure from the FallbackProvider’s point of view, so its result is ignored. As long as there is enough correct data from the other backends for the FallbackProvider to work with, it will keep on trucking. :) If you only have 2 backends and you have set the quorum to 2 though, they must both return the same result. You have to consider your quorum (how many must agree) with how many backends you are connecting too. Make sense? :) |
Beta Was this translation helpful? Give feedback.
A backend returning a 500 is just another failure from the FallbackProvider’s point of view, so its result is ignored. As long as there is enough correct data from the other backends for the FallbackProvider to work with, it will keep on trucking. :)
If you only have 2 backends and you have set the quorum to 2 though, they must both return the same result. You have to consider your quorum (how many must agree) with how many backends you are connecting too.
Make sense? :)