Bulkhead Pattern
バルクヘッドパターン
バルクヘッドパターンは共有リソースを別々のプールに分割します。一つのプールでの問題が他のプールが必要とするすべてのスロットを消費することはありません。
critical pool + optional pool + per-pool limit + queue + saturation signalcritical pool + optional pool + per-pool limit + queue + saturation signalSREもう一つの例
サムネイル作業は4つの接続スロットをすべて埋めます。チェックアウトには8つの個別スロットがあるため、サムネイルが待機している間も注文は終了します。
主な部分
- 01失敗境界
- 02クリティカルプール
- 03オプションプール
- 04プールごとの制限
- 05別のキュー
- 06飽和信号
以下の場合に使用します
クリティカルな作業とオプションの作業がスレッド、接続、キュー、またはインスタンスを共有する場合は、別々のプールを使用してください。すべてのプールのサイズを決めて監視してください。
以下の場合は使用しないでください
実際の失敗境界がないのにリソースを分割しないこと。あまりに多くの小さなプールは容量を浪費し、過負荷を隠す可能性がある。
コードで使用する名前
critical pool + optional pool + per-pool limit + queue + saturation signal 出荷前に
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome:Complete the task with バルクヘッドパターン (Bulkhead Pattern)。 User context:サムネイル作業は4つの接続スロットをすべて埋めます。チェックアウトには8つの個別スロットがあるため、サムネイルが待機している間も注文は終了します。 Technical concept or control:バルクヘッドパターン (Bulkhead Pattern)。 Why it fits:クリティカルな作業とオプションの作業がスレッド、接続、キュー、またはインスタンスを共有する場合は、別々のプールを使用してください。すべてのプールのサイズを決めて監視してください。 Do not use it when:実際の失敗境界がないのにリソースを分割しないこと。あまりに多くの小さなプールは容量を浪費し、過負荷を隠す可能性がある。 Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary):単一の公式標準が全体の用語を管理するわけではありません。その意味はチーム、プラットフォーム、またはフレームワークによって変わる可能性があります。 Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
このリクエストを確認する
Review how バルクヘッドパターン (Bulkhead Pattern) is used now. Definition: バルクヘッドパターンは共有リソースを別々のプールに分割します。一つのプールでの問題が他のプールが必要とするすべてのスロットを消費することはありません。 Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.