The Real Fullstack

The Retry Avalanche

Inventory lost a third of its capacity for ten minutes. Why did it receive sixty times its normal traffic?

高级工程师10 分钟性能实验室流程模拟器
javaspring-bootresilience4jkuberneteshttp

此挑战尚未翻译为简体中文,你正在阅读英文版本。

任务:Inject the slowdown to watch the avalanche, then keep retries for transient errors while limiting the extra load they create.背景 · 学习目标 ▾

Brightcart's mobile apps call a gateway, which calls the order service, which calls inventory. Each layer was configured independently to retry 3 times on errors. During a short inventory slowdown, error rates went to 100% and stayed there long after inventory recovered.

任务: Inject the slowdown to watch the avalanche, then keep retries for transient errors while limiting the extra load they create.

学习目标

  • Explain multiplicative retry amplification across layers.
  • Retry at one layer, with exponential backoff and jitter.
  • Cap retries with a retry budget.
模拟模拟数据
Mobile appsGatewayOrder serviceInventory
运行模拟

运行模拟以查看输出。

简化说明

Steady-state model; backoff and jitter are not simulated numerically — they matter for recovery dynamics, but a budget is what bounds load. 教学模型——数字用于说明行为,并非基准测试。

概念

建议先完成

相关挑战

参考资料