New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make calls against API resilient #1061
Comments
@Brutus5000 in order to implement this properly, Traefik needs to return HTTP 503. Retrying on 404 as in #2385 is not a good solution. |
This is not possible with the current setup of faf-stack. It's just not how Traefik works in a single-instance non-swarm docker environment. Traefik listens to events on the Docker daemon. If it sees a service going up that has certain set of labels. A retry on 404 is something that can be easily changed. |
Well that's simply not true. It's just a matter of configuration. Please see https://doc.traefik.io/traefik/getting-started/faq/ |
That FAQ is fairly new (since 2.4), good to know. So far I only deducted what is described there as well:
However this chapter seems to be worth a shot. |
If we make calls against the API running into errors due to the API being down due to restart (deployment of new version). It's not a good user experience to fail on first try and show some stacktrace to the user.
Spring Retry offers mechanics to automatically retry failed calls in a configurable time span. Unresolvable errors can be globally catched.
The text was updated successfully, but these errors were encountered: