The origin of the bulkhead comes from ship design. A ship is divided into compartments by bulkheads so that even if one compartment floods, the entire ship does not sink. In software, the same principle is applied to isolate failures.
There are several resource isolation methods: thread pool separation (assigning a dedicated thread pool to each service), connection pool separation (separate connection pools per database or external service), semaphore-based limits (limiting the number of concurrent requests), and container-based isolation (per-Pod resource limits in Kubernetes).
Usage scenarios include managing dependencies between services in a microservices environment, preventing failure propagation when calling external APIs, managing database connections, and isolating tenants from one another in a multi-tenant environment.
The advantages are better overall system stability through failure isolation, predictable resource usage, guaranteed resources for critical services, and easier SLA compliance. The disadvantages are reduced resource efficiency (unused resources), increased configuration complexity, and the difficulty of sizing correctly.
It is even more effective when used together with the Circuit Breaker pattern. When the Circuit Breaker quickly detects and cuts off a failure, the Bulkhead protects the remaining resources.