Bulkhead pattern explained in plain terms means understanding how a system stops one failure from sinking everything else. The central question is how a service can keep answering requests when one of its parts is failing, and the answer is isolation: split the system into compartments, so that a flood in one cannot reach the others.
The bulkhead pattern is a resilience pattern that isolates resources, such as thread pools, connections, and queues, so that a failure in one part of a system cannot consume the resources of the rest. It is named after the watertight compartments in a ship’s hull, which keep a single breach from flooding the whole vessel.
The idea is simple: a failure should be contained where it happens, and the rest of the system should carry on. This article explains what the bulkhead pattern is, how it works, and where it is used.
Key takeaways
- The bulkhead pattern isolates resources so one failure cannot consume them all.
- It is named after the watertight compartments in a ship’s hull.
- Each part of a system gets its own pool of threads or connections.
- A slow dependency can then degrade only its own compartment.
- It trades some efficiency for survival when things go wrong.
What the bulkhead pattern is
A bulkhead is a partition between resource pools. Instead of one shared pool of threads serving every request, the system gives each dependency or each kind of work its own pool, with its own size limit. When one pool fills up, only the work that uses it waits, while the rest of the system carries on.
The pattern applies to any shared resource. Thread pools are the classic example, but connection pools, memory budgets, disk quotas, and even whole services can be bulkheaded. The principle is always the same: cap what one part can take, so it cannot starve the others.
The name comes from shipbuilding, where bulkheads are the walls that divide a hull into sealed sections. A breach floods one section, and the ship stays afloat because the water cannot spread. Software bulkheads do the same for load: a slow database or a failing downstream service can only flood its own compartment. Our guide to the circuit breaker explains a pattern that stops calls to a failing service, and our guide to rate limiting explains how to cap the load a client can send.
How the bulkhead pattern works
The simplest bulkhead is a separate thread pool per dependency. A service that calls a payment API and a search API gives each its own pool, so when the payment API slows down and its pool fills, search requests still get threads and still answer.
Connection pools are bulkheaded the same way. Each downstream service gets its own pool of connections, with a fixed maximum, so a slow service can hold only its own connections and cannot exhaust the pool that other services use.
Queues can be bulkheaded too. A system that processes several kinds of job gives each kind its own queue, so a flood of one kind cannot push the others out. This is common in message-driven systems, where a burst of low-priority work must never delay high-priority work.
Bulkheads also apply at the level of whole services. A deployment can run critical and non-critical workloads on separate clusters, or in separate namespaces, so that a runaway job in one cannot take the CPU or memory of the other.
Sizing a bulkhead is a trade-off. A pool that is too small rejects work that could have succeeded, while a pool that is too large offers no protection at all. The right size comes from measuring the normal load of each part and leaving headroom for a burst, and from testing what happens when one part fails.

Comparing the bulkhead pattern with other resilience patterns
The bulkhead pattern is one of several ways to survive failure, and each was built with a different emphasis. A circuit breaker stops calling a failing service, a timeout bounds how long a call can take, and a retry with backoff spreads the load, but each approach protects a different part of the system.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Bulkhead | Circuit breaker | Timeout |
|---|---|---|---|
| What it protects | Resources from being consumed | The caller from a failing service | A single call from hanging |
| How it works | Separate pools per dependency | Opens after repeated failures | Fails a call after a deadline |
| Failure contained | Yes, to one compartment | Yes, by stopping calls | Partly, the call ends but load remains |
| Cost when healthy | Some idle capacity | Almost none | Almost none |
| Best for | Slow or failing dependencies | Services that fail often | Any remote call |
The practical result is that bulkheads contain the damage when a dependency slows down, circuit breakers stop the calls that cause it, and timeouts bound how long any single call can hang.
Where the bulkhead pattern is used
E-commerce platforms bulkhead their payment, search, and recommendation services. When the payment provider slows down at peak shopping time, only checkout waits, while browsing and search keep working, which keeps the shop open even when part of it is struggling.
Airlines and travel sites isolate their suppliers. Each airline or hotel partner gets its own connection pool, so a slow partner cannot block the results from all the others, and a page can still show the offers that did arrive.
Banks bulkhead their core and non-core work. Account lookups and transfers run in separate pools from reporting and analytics, so a heavy report can never delay a payment.
Streaming services bulkhead their content and metadata. The service that streams video runs apart from the service that lists recommendations, so a failure in recommendations never stops playback.
Cloud platforms bulkhead their tenants. Each customer gets quotas for CPU, memory, and requests, so one customer’s burst cannot degrade the service for everyone else on the same hardware.
Strengths and limits
The greatest strength of the bulkhead pattern is that it turns a total failure into a partial one. A system that would have gone down entirely now loses only the part that failed, and the rest keeps serving users, which is often the difference between an incident and an outage.
It is also a strength that bulkheads are simple to understand and to test. A pool with a limit is easy to reason about, and a failure can be rehearsed by filling one pool and watching the rest carry on.
The limits are real, though. Bulkheads waste capacity, because a pool that is idle cannot lend its threads to a busy one, and a system with many small pools needs more tuning than one with a single large pool. The pattern also does nothing for a failure that hits every compartment at once.
Bulkhead pattern checklist
- Give each downstream dependency its own thread or connection pool.
- Size each pool from measured load, with headroom for a burst.
- Separate critical work from non-critical work in different pools.
- Set a queue limit per pool so waiting work fails fast instead of piling up.
- Combine bulkheads with timeouts and circuit breakers, not instead of them.
- Test by filling one pool and confirming the rest still answers.
- Monitor each pool separately; a full pool is an early warning.
- Review pool sizes as traffic patterns change.
- Remember that bulkheads contain failure; they do not fix the failing part.
Frequently asked questions
What is the bulkhead pattern in simple terms?
It is splitting a system’s resources into separate pools, so a failure in one part cannot consume the resources of the rest.
Why is it called a bulkhead?
After the watertight walls in a ship’s hull, which keep a breach in one compartment from flooding the whole ship.
What is the difference between a bulkhead and a circuit breaker?
A bulkhead isolates resources so a failure cannot spread, while a circuit breaker stops calling a service that keeps failing.
What resources can be bulkheaded?
Thread pools, connection pools, queues, memory budgets, disk quotas, and whole services or clusters.
Does the bulkhead pattern waste resources?
Yes, a little: an idle pool cannot lend its capacity to a busy one, which is the price of isolation.
When should I not use bulkheads?
When the system has a single dependency, when pools would be too small to be useful, or when the failure mode affects every part at once.
The bottom line
Bulkhead pattern explained in one line is this: split the system into compartments, so one failure floods only its own.
It is the pattern that turns an outage into a degraded service, and the reason a slow dependency does not have to mean a dead system.
This article is general information about how the bulkhead pattern works, not advice about designing resilience for a particular system.







