Message Filter Pattern
Learn Message Filter Pattern (Message Routing & Transformation Patterns, Integration & Messaging Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is the Message Filter Pattern? A Message Filter sits on a channel and discards (or diverts) messages that don't match a given criteria, so that whatever is downstream only ever sees messages it actually cares about. Filter vs Router • A Router sends every message somewhere (it chooses a destination for all messages). • A Filter may send a message nowhere at all - it simply drops non-matching messages instead of routing them.