Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Bulkhead Pattern

Isolate resources so one failure cannot sink everything.

The idea

Separate thread or connection pools per dependency, like ship compartments.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

UserWeb appRecommendationsProduct data
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

The page needs product data and recommendations.

step:
1/4
at:
User
1/11

The green dot is a request moving through the system.

Step by step

  1. 1Create separate pools
  2. 2Limit each dependency
  3. 3A slow dependency fills only its pool
  4. 4Others keep working

Where it is used

Systems with several dependencies.

Watch out for

Too many small pools waste capacity.

Related