Recall & Review
beginner
What is retry with exponential backoff in microservices?
It is a strategy where a service retries a failed request multiple times, waiting longer between each try, usually doubling the wait time after each failure to reduce overload.
Click to reveal answer
beginner
Why use exponential backoff instead of fixed retry intervals?
Exponential backoff reduces the chance of repeated collisions and overload by increasing wait times, giving the system time to recover before retrying again.
Click to reveal answer
intermediate
What is a common formula for calculating wait time in exponential backoff?
Wait time = base_delay * (2 ^ retry_count), where base_delay is the initial wait time and retry_count is the number of attempts made.
Click to reveal answer
intermediate
What is jitter and why is it used with exponential backoff?
Jitter adds randomness to the wait time to prevent many clients from retrying at the same time, which helps avoid spikes in traffic and improves system stability.
Click to reveal answer
beginner
Name two scenarios where retry with exponential backoff is useful.
1. When a microservice call fails due to temporary network issues. 2. When a downstream service is overloaded and returns errors temporarily.
Click to reveal answer
What does exponential backoff do after each retry attempt?
✗ Incorrect
Exponential backoff doubles the wait time after each retry to reduce load and collisions.
Why is jitter added to exponential backoff?
✗ Incorrect
Jitter adds randomness to retry delays to prevent many clients from retrying simultaneously.
Which of the following is NOT a benefit of exponential backoff?
✗ Incorrect
Exponential backoff does not retry immediately; it increases wait time between retries.
What is a typical base delay in exponential backoff?
✗ Incorrect
Base delay is usually a small time like milliseconds or seconds to start the retry wait.
In microservices, when should you avoid retrying with exponential backoff?
✗ Incorrect
Retrying permanent failures wastes resources; exponential backoff is for temporary issues.
Explain how retry with exponential backoff works and why it is important in microservices.
Think about how waiting longer between retries helps the system recover.
You got /4 concepts.
Describe the role of jitter in retry with exponential backoff and how it improves system behavior.
Consider what happens if many clients retry at the exact same time.
You got /3 concepts.