Pipe and Filter Design Pattern

Break up logic in small steps instead of a long-run service or process.

Approach

  • Each request must call services separately instead of a long-running service.
  • Data is passed from one filter to another filter.
  • Filters exchange data use a standardized format and protocol.

Why filter data must be standardized?

  • We can add or remove filters to/from pipeline.
  • Reorder filter execution.
  • Use the same filter in different pipelines.

2 thoughts on “Pipe and Filter Design Pattern

Leave a comment