Bulkhead Pattern
격벽 패턴
벌크헤드 패턴은 공유 자원을 별도의 풀로 나눕니다. 하나의 풀에서 문제가 발생해도 다른 풀에서 필요한 모든 슬롯을 차지할 수 없습니다.
critical pool + optional pool + per-pool limit + queue + saturation signalcritical pool + optional pool + per-pool limit + queue + saturation signalSRE다른 예시
썸네일 작업은 네 개의 연결 슬롯을 모두 채웁니다. 체크아웃에는 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:썸네일 작업은 네 개의 연결 슬롯을 모두 채웁니다. 체크아웃에는 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.