ExitEvent Filtering: Per-destination matching1 / 9
Explanationassociate9 steps · 4 exercises

Publish once, match separately

How routing rules match an event’s source, type, or payload fields to decide which destinations receive it without changing what the producer publishes.

A producer publishes what happened, not a separate message for each team. Here, a Lambda function publishes deployment events to one Amazon EventBridge event bus.

Each rule on the bus checks the published event against its own pattern. A match selects the rule’s target for delivery. We use one rule per destination because the two queues need different sets of events.

Deployment eventsEvent to evaluateFull failure eventEvent to evaluateFull production failure
Deployment event publisherAWS Lambda
Deployment event busAmazon EventBridge
All deployment failures — source: com.example.deploy; detail-type: Deployment FailedAmazon EventBridge
Failure Review queueAmazon Simple Queue Service (Amazon SQS)
Production deployment failures — same source and detail-type; detail.environment: prodAmazon EventBridge
Production Response queueAmazon Simple Queue Service (Amazon SQS)

Stage 1 of 7: The Lambda publisher creates an event describing a deployment outcome, including its source, event type, and environment.

Next up: Complete the diagram on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.