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. 教育用モデルです。数値は挙動を示すためのもので、ベンチマークではありません。

コンセプト

先に取り組むと役立つ課題

関連する課題

参考資料