Skip to main content

Bulkhead Pattern

Learn Bulkhead Pattern (Core Microservices Patterns, Microservices Design Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

The Problem If one service calls three downstream dependencies (Inventory, Payment, Shipping) using a SHARED thread pool, and Inventory starts responding very slowly, all the threads in that shared pool can end up stuck waiting on Inventory - leaving none available to handle Payment or Shipping calls either, even though those two dependencies are perfectly healthy. What is the Bulkhead Pattern? Named after a ship's bulkheads - watertight compartments that stop one flooded section from sinking the whole ship. The software version isolates resources (thread pools, connection pools) per...

More lessons in Core Microservices Patterns