Pipe and Filter Pattern
Learn Pipe and Filter Pattern (Software Architecture Patterns, Architectural Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is Pipe and Filter? Processing is broken into a sequence of independent filter stages, each doing one transformation, connected by pipes that pass data from one filter to the next. Unix command pipelines ( cat file | grep error | sort | uniq ) are the textbook example - and Java's Stream API is essentially this pattern in library form.