April 2018
Intermediate to advanced
250 pages
5h 42m
English
To resolve this problem, many retry pattern implementations usually come with Exponential Back-off Retry. With the exponential back-off strategy, we gradually increase the delay between each retry. For example, we may retry the second call to the service 3 seconds after the fault occurs. If the service still returns an error, we increase the delay to 9 seconds and 27 seconds, for the third and fourth calls respectively. This strategy leaves some room for the service to recover from transient faults. The difference between two kinds of retry strategies is shown in the following figure:

Read now
Unlock full access