Bulkheads isolate scarce capacity

Critical clients need their own capacity. A single shared limit can still let one failed or noisy workload consume every available slot.ΒΆ

Protect critical clients by giving them their own pool to call.ΒΆ

Source: Q0733; B433, B333.ΒΆ

Failure it prevents

Noncritical load exhausts the pool needed by the primary path.ΒΆ

Our Effect 4.0.0 reading

Separate Semaphore or Queue instances isolate local work admission. Pool manages actual resources. Independent runtime or infrastructure failure domains require more than fibers.ΒΆ

Source: packages/effect/src/Semaphore.ts, packages/effect/src/Queue.ts, packages/effect/src/Pool.ts.ΒΆ

How to check

Saturate one workload. Confirm that the separately reserved critical path still acquires its resources. This check is our proposal. The books do not prescribe it.ΒΆ

Continue with Backpressure reaches the producer10, Effect is not BEAM9.ΒΆ

Connect this to the existing rat-stack guidance34.ΒΆ

Use the durability skill for the full review. Return to the durability index34.ΒΆ

Sources

  1. Nygard, Michael T. Release It!: Design and Deploy Production-Ready Software. Pragmatic Bookshelf, 2007.. Pragmatic Bookshelf. Β§4.4 Unbounded Result Sets; Chapter 5 Stability Patterns: Β§5.1 Timeouts, Β§5.2 Circuit Breaker, Β§5.3 Bulkheads, Β§5.4 Steady State, Β§5.5 Fail Fast, Β§5.6 Handshaking, Β§5.7 Test Harness, Β§5.8 Decoupling Middleware. Accessed 2026-10-23.
  2. Gray II, James Edward; Tate, Bruce A. Designing Elixir Systems with OTP. Pragmatic Bookshelf, 2019.. Pragmatic Bookshelf. Build a Functional Core; Isolate Process Machinery in a Boundary; Customize Your Lifecycle; Big, Loud Worker-Bees; Add Persistence as a Boundary Service; Test the Boundary. Accessed 2026-10-23.
  3. Effect contributors. Effect 4.0.0. Semaphore.ts. Effect-TS. Pinned source for our Effect mapping, not a claim from the book. Accessed 2026-10-23.
  4. Effect contributors. Effect 4.0.0. Queue.ts. Effect-TS. Pinned source for our Effect mapping, not a claim from the book. Accessed 2026-10-23.
  5. Effect contributors. Effect 4.0.0. Pool.ts. Effect-TS. Pinned source for our Effect mapping, not a claim from the book. Accessed 2026-10-23.

Last changed 2026-10-23 in 58dc623. Source on GitHub. Change log.

Linked from

  1. Agent guide. An Effect stack so pure (aspirational) Kit Langton will blush.

    Bulkheads isolate scarce capacity β€” Reserve independent capacity for workloads that must not starve each other.

  2. Backpressure reaches the producer. Bounded consumption helps only when upstream respects waiting or refusal.

    Continue with Admission control protects recovery, Bulkheads isolate scarce capacity.ΒΆ

  3. Change log. What changed in the files served here, newest first.

    Bulkheads isolate scarce capacity β€” new page: docs(lore): land the durability wiki pages and bibliography

  4. Circuit breakers have state. A breaker stops doomed calls and controls probes before restoring traffic.

    Continue with Bulkheads isolate scarce capacity, Supervision chooses what restarts.ΒΆ

  5. durability. Keep a rat-stack app standing when a provider, pool, or dependency slows down or a worker dies. Use at any I/O boundary, connection pool, provider call, shared waiter, fan-out, flag, gate, or work that can outlive a request, or when asked "what happens when this is slow", "add a timeout", "make this durable", or "what survives a crash".

    bounded; Pool for a real resource pool.ΒΆ

  6. Durability starts with a recovery record. A reading order for storage, replay, worker ownership, overload, and recovery tests.

    Bulkheads isolate scarce capacity: Reserve independent capacity for workloads that must not starve each other.ΒΆ

  7. Full agent guide. An Effect stack so pure (aspirational) Kit Langton will blush.
  8. Queries need result bounds. Limit result cardinality before the driver materializes an oversized response.

    Continue with Steady state recycles resources, Bulkheads isolate scarce capacity.ΒΆ

  9. Rat Stack lore | rat-stack. Short, source-grounded notes on the ideas and decisions behind rat-stack.

    Bulkheads isolate scarce capacity β€” Reserve independent capacity for workloads that must not starve each other.

  10. Source change history (log.md). The generated change log as Markdown.

    Bulkheads isolate scarce capacity β€” new page: docs(lore): land the durability wiki pages and bibliography