Design Pattern: Chain of Responsibility Pattern in PHP

Chain of Responsibility pattern gives responsibility of a process handling to more than one object(a chain of objects) so that the sender and receiver of the request remains decoupled. The chain of objects pushes the processing to the next step until the processing is complete. This article demonstrates Chain of Responsibility pattern implementations in PHP.

Design Pattern: Chain of Responsibility Pattern in TypeScript

Chain of Responsibility decouples the request and response processing of an execution. By chaining the steps of processing this pattern separates the steps clearly and also allows the client to decide the sequence of processing. This article demonstrates Chain of Responsibility pattern implementations in TypeScript.

Design Pattern: Chain of Responsibility Pattern in Go

Chain of Responsibility pattern chains the steps of processing and performs the process step by step. So the processing does not depend on a single object, but multiple objects are responsible for the processing, which is decided on the fly while processing. This article demonstrates Chain of Responsibility pattern implementations in Golang.

Design Pattern: Chain of Responsibility Pattern

Chain of Responsibility pattern forms a chain of objects that is responsible for handling a command/operation request. As the responsibility is distributed into one or more objects and a single object is not responsible for handling a request, so that ensures the decoupling of the request sender and processor. The request is sent to the chain of objects without specifying the handler. Which object will handle the request is not predefined, that is decided on-the-fly while processing.