Design Patterns (GoF) (50 Qs)•Part 2: Behavioral Patterns & Communication (11 - 24)
What is the Chain of Responsibility Pattern?
junior LevelBehavioral
In Simple Words: Passes a request along a dynamic chain of handlers:
- Upon receiving a request, each handler decides either to process the request or to pass it to the next handler in the chain.
- The standard pattern behind HTTP Middleware pipelines (Express, Koa, ASP.NET Core) and authentication filters.