Simpler Backoff
a year ago
- #programming
- #backoff
- #optimization
- Exponential backoff with jitter is commonly used for service calls.
- Traditional approach involves calculating delays dynamically with potential for bugs.
- Simplified version uses a lookup table for delays, making it more readable and maintainable.
- Lookup table approach reduces variables and scope, simplifying reasoning about behavior.
- Edits to backoff schedule and attempts are safer and easier with the lookup table method.