Design Patterns (GoF) (50 Qs)•Part 3: Architectural Patterns & Enterprise Systems (25 - 35)
Bulkhead Pattern: Isolating critical resources to prevent total system collapse.
mid Leveldesign-patternsArchitectural Patterns
In Simple Words: Derived from naval ship hulls that divide the ship into watertight compartments (bulkheads): if water leaks into one section, the ship stays afloat:
- In software, partition resources (thread pools, connection pools, memory):
- Dedicate 50 threads to the core Checkout service.
- Dedicate 10 threads to the third-party Recommendation service.
- If the Recommendation service hangs and exhausts its 10 threads, the Checkout service continues processing orders at full speed!