The Chain of Responsibility Pattern

archetype Military CommandObject-Oriented Design

Categories: software-engineering

What It Brings

The Chain of Responsibility pattern takes its name from military and bureaucratic hierarchies where requests escalate through ranks until someone with sufficient authority handles them. A private can’t authorize a battalion movement; the request climbs the chain until it reaches a colonel who can. The GoF pattern maps this onto object design: a request passes along a chain of handlers until one accepts responsibility.

Key structural parallels:

Where It Breaks

Expressions

Origin Story

The Chain of Responsibility pattern appears in the Gang of Four’s Design Patterns (1994), where they cite help systems as a motivating example: clicking “Help” in a dialog might be handled by the dialog, or escalate to the window, application, or operating system. The name itself draws on the organizational principle of chains of command, which became formalized in military and corporate structures during the 19th and 20th centuries. The metaphor works because software developers in the 1990s were often building enterprise applications for organizations that actually had chains of command, making the mapping feel direct rather than metaphorical.

References

Related Mappings