Advanced Message Filtering

In the previous chapter, you configured a single numeric comparison (quantity >= 5). In enterprise event-driven architectures, routing decisions often require multi-attribute criteria combining strings, prefixes, and numeric operators with boolean AND and OR logic.

In this chapter, we will create a dedicated specialty queue for cold brews — ColdBrewExpressQueue — and configure a multi-dimensional filter policy that requires:

  • Drink type: Matches the prefix "Citrus" (e.g., Citrus Peach Cold Brew).
  • Quantity: Minimum of 2 items (quantity >= 2).

Messages will only be routed to this queue when BOTH conditions evaluate to true (Boolean AND).

Advanced Filtering Concept