Routing rules versus subscription filters
How EventBridge and SNS differ in routing models, integration boundaries, and delivery contracts when choosing an event distribution service. · advanced
EventBridge separates event classification from destination selection. In its rule-and-target event bus model, producers emit events and independently configured rules match fields such as source, detail-type, and nested detail. Every matching rule can invoke its configured targets; matching is not a first-match decision.
SNS organizes distribution around a topic chosen by the publisher. Each subscription identifies an endpoint and can filter messages using message attributes or a JSON message body. SNS therefore supports content filtering too: the distinction is not “filtering versus no filtering,” but rules selecting targets versus subscriptions selecting messages within a topic.
This lesson compares that EventBridge bus model with SNS Standard topics, then identifies where SNS FIFO changes the delivery choice. Choose the distribution boundary first: a shared event stream with independently defined routes, or a named publication channel with independently managed subscribers.
| Decision | EventBridge bus rules | SNS topics |
|---|---|---|
| Publisher addresses | Event bus | Topic |
| Routing configuration | Rule and targets | Subscription and filter |
| Filter input | Structured event fields | Attributes or JSON body |
| Multiple recipients | Matching rules and targets | Matching subscriptions |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.