
EventBridge: core concepts and quotas
EventBridge provides a central, JSON-based event pipeline. Key components:
Important operational quotas to keep in mind:
- 300 rules per event bus.
- Limited number of targets per rule — use SNS or SQS to fan-out when broad delivery is required.
- Maximum event size: 256 KB (including metadata). Note: some presentation slides may reference smaller values (e.g., 64 KB); always verify current AWS quotas in the official documentation.


source, detail-type, and detail to build precise patterns. EventBridge supports deep JSON matching, enabling targeted routing to the right teams or automation.
SNS overview
Amazon SNS is a fully managed pub/sub notification service for multi-protocol delivery and fan-out. You create a topic, subscribers register to that topic, and SNS delivers messages via email, SMS, HTTP/S, Lambda, SQS, and other endpoints. SNS also supports subscription filtering using message attributes so you can avoid unnecessary deliveries and save cost. Key SNS characteristics:- Massive scale: support for millions of subscriptions (e.g., up to ~12.5M subscriptions per topic).
- Both Standard and FIFO topics are available (FIFO preserves ordering).
- Message size limit (SNS/SQS): 256 KB.

Typical integration pattern: EventBridge → SNS
A common, practical pattern:- Event source publishes to EventBridge
- A rule filters the event
- The matching rule targets an SNS topic (e.g., an operator topic)
- SNS fans out to subscribers (human recipients) or remediation systems (Lambda, Step Functions)



Fan-out patterns
- Simple fan-out: SNS → multiple subscriptions (notifications only).
- Processing fan-out: EventBridge → multiple Lambda functions (parallel processing workflows).
- Hybrid: combine both—EventBridge for smart routing and SNS for delivery/fan-out.

SNS subscription filtering and message attributes
Use SNS Message Attributes to filter subscriptions without parsing the message body. Attributes are metadata (key-value) and are evaluated by subscription filter policies. Supported attribute types and limits:- Types:
String,Number,Binary. - Up to 10 attributes per message.
- Message size limit: 256 KB.
- Match a string attribute:
- Numeric condition:

Cross-account event routing and centralization
Centralizing events into a monitoring (central) account provides a single pane of glass for security and operations. Cross-account routing requires explicit configuration:- Destination resource policy: the central event bus must explicitly allow events from member accounts.
- Source IAM permissions: source accounts need
PutEventspermission. - Bi-directional trust: ensure both sides grant required permissions.
- Unified monitoring and alerting.
- Consistent rule application and policy enforcement.
- Simplified incident response across accounts.
- Create a custom event bus in the central account.
- Add a resource policy on the bus allowing member accounts to
PutEvents. - Ensure source accounts have IAM roles/policies with
PutEventspermission. - Create rules on the central bus to process member events.



Dead-letter queues (DLQs) and retry behavior
Both EventBridge and SNS support DLQs to capture messages/events that repeatedly fail after retries. SQS is commonly used as a DLQ so failed items can be inspected or reprocessed. Failure flow:- Initial delivery attempted.
- Automatic retries occur (per configured retry policy/backoff).
- When retries are exhausted, the message/event is routed to the configured DLQ.
- Configure exponential backoff retry policies before routing to DLQs.
- Use SQS as a DLQ for later consumption and automated reprocessing.
- Monitor DLQ depth and message age; set CloudWatch alarms on queue depth.
- Process DLQ items promptly; retain messages long enough for forensic needs but not indefinitely.



Input transformers (event transformation)
EventBridge Input Transformers let you extract fields from incoming events and format a custom output for targets—useful for human alerts, removing sensitive fields, or conforming to downstream API payloads. Example original event (EC2 instance state change):
Archive and replay
EventBridge supports archiving events and replaying them. Common use cases:- Testing and debugging (replay events against unchanged rules).
- Reprocessing after a downstream outage.
- Disaster recovery and forensic analysis.


EventBridge Pipes (point-to-point integration)
EventBridge Pipes provide a straightforward point-to-point path from a supported source directly to a consumer without using an event bus. Pipes are useful for dedicated, lower-latency routing between a single source and a single target, with optional filtering and enrichment. Supported sources include SQS, Kinesis, DynamoDB streams, and others. Pipes support batching, FIFO ordering, and DLQs similar to EventBridge.

Monitoring and observability
Monitor the right metrics for both EventBridge and SNS to detect misroutes, throttling, or failed deliveries. EventBridge key metrics:Invocations(rule matches)FailedInvocationsTriggeredRules(count of rules matched)ThrottledRules
NumberOfMessagesPublishedNumberOfNotificationsFailedNumberOfNotificationsDelivered



Cost optimization and security
Cost optimization tips:- Filter events in EventBridge before forwarding to SNS to avoid broadcasting unnecessary traffic.
- Use SNS message filtering to reduce downstream deliveries.
- Batch events where supported by the target.
- Optimize the target execution model (e.g., webhook vs. Lambda invocation).
- Monitor volume/frequency since they drive operational cost.
- Use resource-based policies for EventBridge buses and SNS topics.
- Encrypt SNS topics with server-side encryption (SSE) when handling sensitive data.
- Isolate event buses when helpful (EventBridge does not charge per bus).
- Apply least-privilege IAM.
- Enable AWS CloudTrail to audit API and configuration changes.



EventBridge Schema Registry
The Schema Registry helps teams discover and manage event schemas flowing through an event bus. Enable schema discovery, let events flow, and EventBridge can generate schemas and provide code bindings for multiple languages—useful for type-safe development, schema versioning, and faster debugging.

When to use EventBridge vs SNS vs SQS
Use the table below to match services to common use cases:
Common serverless pattern:
EventBridge → SNS (fan-out) → SQS (buffering) → Lambda (processing) — provides flexible routing, reliable delivery, and scalable processing.



Key takeaways
- EventBridge is the intelligent event router for complex routing, transformation, and cross-account integrations.
- SNS is the multi-protocol fan-out and notification system for delivering messages to humans and systems.
- Together, EventBridge + SNS enable powerful, maintainable serverless event-driven architectures.
- Design for limits and scalability (e.g., 300 rules per bus, per-rule target quotas, 12.5M subscribers per topic, 10 message attributes per message).
- Use DLQs, input transformers, archives/replay, pipes, the schema registry, and monitoring to build resilient systems.
When designing event-driven systems, filter early, avoid broadcasting unnecessary events, and configure retries and dead-letter queues so failures are observable and recoverable.
Links and references
- Amazon EventBridge documentation
- Amazon SNS documentation
- AWS SQS documentation
- AWS Developer Tools: Schema Registry