Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Bulkhead / Timeout / Cache / Fallback Patterns

Pragya Keshap answered on March 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Bulkhead / Timeout / Cache / Fallback Patterns

0

Retries can be useful in case of

Temporary network problems such as packet loss

Internal errors of the target service, e.g. caused by an outage of a database

No or slow responses due to a large number of requests towards the target service

Keep in mind, however, that if the problems are caused by the target service being overloaded, retrying might make those problems even worse. To avoid turning your resilience pattern into a denial of service attack, retry can be combined with other techniques such as exponential backoff or a circuit breaker (see below).

Fallback

The fallback pattern enables your service to continue the execution in case of a failed request to another service. Instead of aborting the computation because of a missing response, we fill in a fallback value.

The following animation again depicts the payment service issuing a request to the fraud check service. Again, the fraud check service returns an internal server error. This time, however, we have a fallback in place which assumes that the transaction is not fraudulent. 

https://blog.codecentric.de/resilience-design-patterns-retry-fallback-timeout-circuit-breaker

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on Mar 01 2023
Pragya Keshap
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.