Amazon EventBridge
LearningTree ยท AWS ยท Integration

Amazon EventBridge โ€”
Serverless Event Bus

The intelligent event router that connects AWS services, your applications, and SaaS providers โ€” enabling fully reactive, event-driven cloud architectures without managing infrastructure.

โšก EventBridge in 30 Seconds

  • Serverless event bus โ€” routes events between AWS services, apps, and SaaS providers
  • Rules with pattern matching โ€” intelligently filter and route events by content
  • No infrastructure to manage โ€” fully managed, scales automatically
  • Native AWS integration โ€” 200+ AWS services emit events to EventBridge
  • Enables reactive architectures โ€” systems respond to events instead of polling
01
Chapter One

What is Amazon EventBridge

The Central Question: How Do Cloud Systems Communicate? Introductory

In a modern cloud architecture, you have dozens of services that need to coordinate: a file is uploaded, an order is placed, a deployment completes, a security alert fires. How do these events flow between systems?

โš ๏ธ

Traditional Approach (Problematic)

  • Services call each other directly via APIs
  • Each service needs to know about all others
  • Adding a new consumer requires code changes
  • Tight coupling creates cascading failures
  • Polling wastes resources and adds latency
โœ…

Event-Driven Approach (Modern)

  • Services emit events to a central event bus
  • Consumers subscribe to events they care about
  • Adding a new consumer = just add a rule
  • Loose coupling โ€” services don't know each other
  • Reactive โ€” systems respond instantly to events
The Mental Model: An Intelligent Airport Control Tower Introductory

๐Ÿ‘‰ EventBridge is like an intelligent airport control tower. Planes (events) arrive constantly from many sources. The tower examines each plane's details โ€” where it's from, what it's carrying, its priority โ€” and routes it to exactly the right gate (target). No plane needs to know where other planes are going. The tower handles all routing decisions automatically.

Real-world analogies that work well:

๐Ÿ—ผ

Control Tower

Watches all incoming flights (events), examines their details, and routes them to specific gates (targets) based on intelligent rules.

๐Ÿ“ฎ

Mail Sorting Facility

Letters arrive from everywhere. The facility reads the address and routes each letter to the correct destination โ€” senders never coordinate directly.

๐Ÿง 

Smart Home Hub

"Motion detected in living room" โ†’ turn on lights, start recording, send notification. The hub routes events to multiple actions based on rules you define.

What EventBridge Actually Is Introductory

Amazon EventBridge is a fully managed serverless event bus that:

  • Receives events from AWS services, your applications, and SaaS providers
  • Evaluates each event against your rules (pattern matching on event content)
  • Routes matching events to one or more targets (Lambda, SQS, Step Functions, etc.)
  • Operates without any servers to manage โ€” fully serverless and automatically scalable

The core concept is simple:

EventBridge โ€” Core Concept: Events Flow Through Rules to Targets
AWS SERVICE S3 / EC2 / Lambda YOUR APP Custom events SAAS Stripe / GitHub EVENTBRIDGE Event Bus + Rules RULES Pattern matching on event content LAMBDA Process event SQS Queue for workers STEP FUNCTIONS Orchestrate workflow EVENT SOURCES TARGETS
What Problems Does EventBridge Solve? Core

EventBridge addresses five fundamental challenges in modern cloud architecture:

๐Ÿ”—

Service Coupling

Without EventBridge, services must know each other's APIs. With EventBridge, services emit events without knowing who consumes them. Complete decoupling.

๐Ÿ”€

Intelligent Routing

Route events based on their content โ€” not just their type. "Route only failed deployment events from production to the on-call Lambda" โ€” all without code.

๐Ÿ”Œ

SaaS Integration

Native partner integrations let external SaaS apps (Stripe, Zendesk, GitHub) emit events directly into your AWS architecture.

โฐ

Scheduled Automation

Create cron-style scheduled rules that trigger targets on a schedule โ€” no EC2 or Lambda cron hacks needed.

Modern Cloud Systems Are Event-Driven Core

Events happen constantly in any real system. Here are examples of events that flow through a typical AWS architecture:

Event TypeSourceExample Event
File uploadedAmazon S3s3:ObjectCreated:Put in uploads/ bucket
Instance state changeAmazon EC2Instance i-1234 changed from running to stopped
Deployment completedAWS CodePipelinePipeline prod-deploy succeeded
Security alertAWS GuardDutyUnusual API call from IP 203.x.x.x
Payment receivedStripe (SaaS)Invoice inv_123 paid: $500
Custom app eventYour applicationOrderPlaced with orderId ORD-9876

EventBridge is the service that captures, filters, and routes all these events to the right destinations โ€” automatically and at scale.

AWS Service Event Sources โ€” Quick Reference Core

Over 200 AWS services automatically send events to the default event bus. Here are the most commonly used:

ServiceEvent Typesdetail-type Example
EC2Instance state changesEC2 Instance State-change Notification
S3Object operationsObject Created, Object Deleted
CloudWatchAlarm state changesCloudWatch Alarm State Change
CodePipelinePipeline executionCodePipeline Pipeline Execution State Change
GuardDutySecurity findingsGuardDuty Finding
RDSDB instance eventsRDS DB Instance Event
Auto ScalingScaling eventsEC2 Instance Launch Successful
ECSTask state changesECS Task State Change
Step FunctionsExecution statusStep Functions Execution Status Change
Secrets ManagerRotation eventsAWS API Call via CloudTrail

๐Ÿ‘‰ No configuration needed: These events flow to the default event bus automatically. Just create rules to match and route them.

๐ŸŽ“ Exam Insight

When an exam question mentions routing events based on content, SaaS integration, cross-account events, or scheduled triggers โ€” the answer is EventBridge. SNS broadcasts to all subscribers; EventBridge routes based on rules. This routing capability is the key differentiator.

๐Ÿ‘‰ Key Takeaway

EventBridge is the intelligent event router of AWS โ€” it watches events from everywhere and routes them to exactly the right targets based on rules you define, all without managing any infrastructure

02
Chapter Two

Why Event-Driven Architecture Matters

The Traditional Problem: Tightly Coupled Systems Introductory

Before event-driven architecture, systems communicated through direct API calls. This created a tangled web of dependencies:

Traditional Architecture โ€” Direct Service Calls (Tightly Coupled)
ORDER SERVICE Must know ALL targets INVENTORY API call EMAIL API call SHIPPING API call ANALYTICS API call FRAUD API call LOYALTY API call โš ๏ธ Order Service must change whenever a new consumer is added
โš ๏ธ

Problems with Direct Calls

  • Tight coupling โ€” Order Service code contains logic for all 6 downstream services
  • Cascading failures โ€” if Inventory API is down, entire order flow might fail
  • Synchronous blocking โ€” Order Service waits for all 6 calls to complete
  • Change amplification โ€” adding a 7th consumer requires Order Service code change
  • Testing nightmare โ€” must mock all dependencies to test Order Service
๐Ÿ’ฐ

Hidden Costs

  • Deployment risk โ€” Order Service deploys more often because of consumer changes
  • Latency accumulation โ€” user waits while all 6 APIs respond
  • Reliability math โ€” 99%^6 = 94% effective uptime if each service is 99% available
  • Team friction โ€” Order team must coordinate with 6 other teams
The Event-Driven Solution: Loose Coupling Core

๐Ÿ‘‰ With event-driven architecture, the Order Service simply emits an "OrderPlaced" event. It doesn't know โ€” or care โ€” who is listening. EventBridge routes the event to all interested consumers based on rules. The Order Service code never changes when new consumers are added.

Event-Driven Architecture โ€” Loose Coupling via EventBridge
ORDER SERVICE Emits event only OrderPlaced EVENTBRIDGE Rules route events to matching targets INVENTORY โ†’ Lambda EMAIL โ†’ SNS SHIPPING โ†’ SQS ANALYTICS โ†’ Firehose FRAUD โ†’ Step Functions + NEW SERVICE Just add a rule! โœ“ Order Service code never changes when consumers are added
The Five Pillars of Event-Driven Architecture Core
๐Ÿ”—

Loose Coupling

Producers and consumers don't know about each other. The Order Service has no dependency on Inventory, Email, or Shipping. They evolve independently.

โšก

Asynchronous Processing

Events are emitted immediately. The producer doesn't wait for consumers to finish. This dramatically improves response times and throughput.

๐Ÿ”„

Reactive Systems

Systems react to events as they happen โ€” no polling. A file upload instantly triggers processing. An alarm instantly triggers remediation.

๐Ÿ“ˆ

Independent Scaling

Each consumer scales independently. High load on Analytics doesn't affect Inventory. Each service has its own scaling profile.

๐Ÿ›ก๏ธ

Failure Isolation

If the Fraud service goes down, Order, Email, and Shipping continue working. No cascading failures. Each component is isolated.

๐Ÿ”ง

Extensibility

Adding a new consumer = adding a new EventBridge rule. No code changes to producers. No redeployments of existing services.

Real-World Event-Driven Scenarios Core
ScenarioWithout EventsWith EventBridge
Order Processing Order API calls 6 downstream APIs synchronously. User waits 3+ seconds. Order API emits one event, returns in 50ms. 6 consumers process in parallel.
CI/CD Pipeline Build script hardcodes Slack webhook, email script, Jira API. Changes require script edits. Pipeline emits "DeploymentCompleted" event. Rules route to Slack, Email, Jira independently.
Security Response GuardDuty finding โ†’ manual ticket โ†’ manual investigation โ†’ manual remediation. GuardDuty โ†’ EventBridge โ†’ Lambda auto-disables user + creates ticket + alerts security team.
Data Pipeline Cron job polls S3 every 5 minutes. Wasted API calls. 5-minute delay minimum. S3 โ†’ EventBridge โ†’ Lambda triggers instantly when object is created.
Common Mistakes with Event-Driven Systems In-Depth
๐Ÿšซ

Mistake: Using Events for Synchronous Flows

Events are async by nature. If you need a response (e.g., "is this user authorized?"), don't use events โ€” use a direct API call. Events are for "notify and forget."

๐Ÿšซ

Mistake: Giant Event Payloads

Events should be lean notifications, not full data dumps. Include identifiers (orderId), not the entire order object. Consumers can fetch details if needed.

๐Ÿšซ

Mistake: No Dead-Letter Queue

If a consumer fails to process an event, where does it go? Always configure a DLQ so failed events aren't silently lost.

๐Ÿšซ

Mistake: Assuming Order Guarantees

EventBridge does not guarantee event ordering. If order matters, use the detail fields to sequence events or use a different architecture.

๐ŸŽ“ Exam Insight

Key architecture trigger words: When you see "decouple services", "add new consumers without code changes", "react to events in real-time", or "scale services independently" โ€” the answer involves event-driven architecture with EventBridge. This is a fundamental pattern that appears in nearly every AWS architecture exam.

๐Ÿ‘‰ Key Takeaway

Event-driven architecture transforms tightly coupled systems into loosely coupled, independently scalable components โ€” EventBridge is AWS's native service for building this pattern at scale

03
Chapter Three

How EventBridge Works

The Core Flow: Source โ†’ Bus โ†’ Rules โ†’ Targets Introductory

Every EventBridge interaction follows a simple four-step flow. Understanding this flow is the foundation for everything else:

EventBridge Flow โ€” Events Arrive, Rules Evaluate, Targets Receive
โ‘  EVENT SOURCE AWS / App / SaaS Emits JSON event to event bus โ‘ก EVENT BUS Central Channel Receives all events โ‘ข RULES Pattern Matching Evaluate event content Select matching targets โ‘ฃ TARGETS Lambda / SQS... Receive matched events for processing โœ“ Action Events flow left to right โ†’ only matching events reach their targets
Component 1: Event Bus Core

The Event Bus is the central channel that receives all events. Think of it as the "highway" that events travel on.

๐ŸšŒ

Default Event Bus

Every AWS account has one default bus. All AWS service events (EC2, S3, CloudWatch) flow here automatically. Free to use โ€” no setup required.

๐ŸŽฏ

Custom Event Bus

Create separate buses for your applications. Isolate events by domain: orders-bus, payments-bus. Better organization and access control.

๐Ÿ”Œ

Partner Event Bus

SaaS providers (Zendesk, Datadog, Auth0) can send events to a partner bus. No code required โ€” just enable the integration in the console.

Event Bus TypeUse CaseEvent Sources
DefaultAWS service events (EC2 state changes, S3 uploads, etc.)AWS services automatically
CustomYour application events, domain separation, cross-account busesPutEvents API from your code
PartnerSaaS integration (Stripe, GitHub, Shopify, etc.)Partner sends events via integration
Component 2: Events Core

Events are JSON documents that describe something that happened. Every event follows a standard structure:

๐Ÿ“‹

Event Envelope (Metadata)

Standard fields added by EventBridge:

  • version โ€” always "0"
  • id โ€” unique event identifier
  • source โ€” who sent the event (e.g., aws.ec2)
  • detail-type โ€” type of event (e.g., EC2 Instance State-change)
  • time โ€” when the event occurred
  • region, account, resources
๐Ÿ“ฆ

Event Detail (Payload)

The actual event data in the detail field:

  • Free-form JSON โ€” you define the structure
  • AWS services have standardized schemas
  • Maximum event size: 256 KB
  • This is what rules match against
  • Contains business data (orderId, status, etc.)

EXAMPLE EVENT โ€” EC2 Instance State Change

{
  "version": "0",
  "id": "12345678-abcd-1234-efgh-1234567890ab",
  "source": "aws.ec2",
  "detail-type": "EC2 Instance State-change Notification",
  "account": "123456789012",
  "time": "2026-05-07T10:30:00Z",
  "region": "us-east-1",
  "resources": ["arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"],
  "detail": {
    "instance-id": "i-1234567890abcdef0",
    "state": "stopped"
  }
}
Component 3: Rules Core

Rules are the intelligence of EventBridge. They watch the event bus and evaluate each event against a pattern. If the event matches, it's sent to the rule's targets.

๐ŸŽฏ

Event Pattern Rules

Match events based on content:

  • Match by source: "aws.ec2"
  • Match by detail-type: "EC2 Instance State-change"
  • Match by detail fields: "state": ["stopped"]
  • Combine conditions with AND logic
โฐ

Scheduled Rules

Trigger targets on a schedule (no event needed):

  • Rate expression: rate(5 minutes)
  • Cron expression: cron(0 12 * * ? *)
  • Use for periodic tasks: cleanups, reports
  • No external scheduler needed

Rules can have up to 5 targets each. One rule can send a matching event to Lambda, SQS, SNS, and Step Functions simultaneously.

Component 4: Targets Core

Targets are the destinations that receive matched events. EventBridge supports 20+ target types:

ฮป

AWS Lambda

Most common target. EventBridge invokes your function with the event as the payload. Scales automatically with event volume.

๐Ÿ—‚๏ธ

Amazon SQS

Queue events for reliable, buffered processing. Workers poll at their own pace. Great for high-volume workloads.

๐Ÿ“ก

Amazon SNS

Fan out to multiple subscribers. EventBridge routes to the topic; SNS broadcasts to all subscribers.

๐Ÿ”„

Step Functions

Start a state machine workflow. Complex multi-step processing triggered by a single event.

๐Ÿ”ฅ

Kinesis / Firehose

Stream events for real-time analytics. Route to S3, Redshift, OpenSearch automatically.

๐ŸŒ

API Gateway / HTTP

Call external APIs or webhooks. EventBridge can invoke any HTTP endpoint as a target.

AWS Architecture Diagram โ€” Complete Flow Core
EventBridge in AWS โ€” Multiple Sources, Rules, and Targets
AWS CLOUD EVENT SOURCES S3 Object Created EC2 State Change CODEPIPELINE Deploy Complete YOUR APP OrderPlaced EVENTBRIDGE Event Bus + Rules RULE 1 S3 โ†’ Lambda RULE 2 EC2 stopped โ†’ SNS RULE 3 Deploy โ†’ Slack RULE 4 Order โ†’ Step Func TARGETS LAMBDA Image processor SNS Ops alerts ๐ŸŒ HTTP Slack webhook STEP FUNC Order workflow Each rule independently evaluates events โ†’ events can match multiple rules โ†’ reach multiple targets
Input Transformers โ€” Reshape Events for Targets In-Depth

By default, targets receive the entire event JSON. Input Transformers let you reshape the event payload before it reaches the target:

๐Ÿ“‹

Input Path

Extract specific fields from the event:

{
  "instance": "$.detail.instance-id",
  "state": "$.detail.state"
}
โœจ

Input Template

Build custom JSON for the target:

{
  "message": "Instance <instance> is now <state>",
  "severity": "high"
}
Input Transformer โ€” Real-World Examples In-Depth
๐Ÿ’ฌ

Example 1: EC2 โ†’ Slack Message

Input Path:

{
  "instance": "$.detail.instance-id",
  "state": "$.detail.state",
  "time": "$.time"
}

Input Template:

{
  "text": "๐Ÿ–ฅ๏ธ <instance> is <state> at <time>",
  "channel": "#alerts"
}
๐Ÿ“ฆ

Example 2: S3 โ†’ SQS Processing

Input Path:

{
  "bucket": "$.detail.bucket.name",
  "key": "$.detail.object.key",
  "size": "$.detail.object.size"
}

Input Template:

{
  "s3_path": "s3://<bucket>/<key>",
  "file_size_bytes": <size>,
  "timestamp": "<aws.events.event.ingestion-time>"
}

๐Ÿ‘‰ Multiple targets with different transformers: One rule can send the same event to multiple targets, each with its own input transformer. Target A gets a human-friendly Slack message; Target B gets structured JSON for processing.

API Destinations โ€” Call External HTTP APIs Directly In-Depth

EventBridge can invoke external HTTPS endpoints directly without writing Lambda code:

๐ŸŒ

What API Destinations Do

  • Call any public HTTPS endpoint as a target
  • Support API key, OAuth, or Basic Auth
  • Use input transformers to shape payloads
  • Built-in retry and DLQ support
  • No Lambda function needed for simple webhooks
โš™๏ธ

Setup Steps

  • 1. Create Connection (auth credentials)
  • 2. Create API Destination (endpoint URL)
  • 3. Create rule targeting the API Destination
  • 4. (Optional) Add input transformer for payload
Use CaseEndpointAuth Type
Slack notificationshooks.slack.com/services/...None (URL has token)
PagerDuty alertsevents.pagerduty.com/v2/enqueueAPI Key header
Custom webhookapi.yourapp.com/webhooksOAuth 2.0
Datadog eventsapi.datadoghq.com/api/v1/eventsAPI Key header
โš ๏ธ

API Destination Limitations

  • Max timeout: 10 seconds
  • No response handling (fire-and-forget)
  • Requires internet access (VPC needs NAT)
  • Max 300 invocations/second per destination
๐Ÿ’ก

When to Use Lambda Instead

  • Complex request transformation
  • Need to call multiple APIs
  • Response data needs processing
  • More than 10 second timeout needed
Schema Registry โ€” Automatic Schema Discovery In-Depth

EventBridge automatically discovers and stores schemas for events flowing through your bus:

๐Ÿ“‹

What Schema Registry Does

  • Automatically generates JSON Schema for events
  • Stores schemas for discovery by developers
  • Tracks schema versions over time
  • Generates code bindings (TypeScript, Java, Python)
๐ŸŽฏ

Benefits

  • Type safety: Auto-generate typed event classes
  • Discoverability: See available events without docs
  • Onboarding: New team members discover events easily
  • Documentation: Auto-generated from real events

๐Ÿ‘‰ To enable: Default bus auto-discovers AWS service schemas. For custom buses, enable "schema discovery" when creating the bus. Cost: Free for storage; pay for discovery API calls.

๐ŸŽ“ Exam Insight
  • Event Bus โ€” the highway; events flow through it
  • Rules โ€” the traffic controllers; filter events by pattern matching
  • Targets โ€” the destinations; where matching events are delivered
  • One rule = up to 5 targets โ€” one event can trigger multiple actions
  • Input Transformers โ€” reshape event payload before delivery
  • API Destinations โ€” call external HTTP endpoints without Lambda
  • Schema Registry โ€” auto-discover event schemas for type safety
๐Ÿ‘‰ Key Takeaway

EventBridge = Event Bus (receives) + Rules (filter) + Targets (deliver). Events flow through this pipeline, and rules act as intelligent routers that decide which events reach which destinations.

04
Chapter Four

Event Routing & Filtering

The Power of Pattern-Based Routing Introductory

EventBridge's most powerful feature is content-based routing. Unlike SNS (which broadcasts to all subscribers), EventBridge examines the content of each event and routes it only to matching targets.

๐Ÿ‘‰ This is the key differentiator: EventBridge doesn't just pass events through โ€” it intelligently filters and routes them based on what's inside. "Send EC2 stopped events to the ops team, but only if the instance is tagged as production."

Event Patterns โ€” The Filtering Language Core

Event patterns are JSON objects that define which events a rule matches. They match against the event envelope and detail fields:

๐ŸŽฏ

Basic Matching

Match exact values:

{
  "source": ["aws.ec2"],
  "detail-type": ["EC2 Instance State-change Notification"]
}

Matches all EC2 state change events.

๐Ÿ“‹

Detail Field Matching

Match on event payload:

{
  "source": ["aws.ec2"],
  "detail": {
    "state": ["stopped", "terminated"]
  }
}

Matches only stopped or terminated instances.

Advanced Pattern Operators In-Depth

EventBridge supports powerful pattern operators for complex filtering:

OperatorSyntaxExample Use Case
Exact match ["value1", "value2"] Match specific states: "state": ["stopped"]
Prefix [{"prefix": "prod-"}] Match resources starting with prod-
Suffix [{"suffix": ".jpg"}] Match S3 keys ending in .jpg
Anything-but [{"anything-but": ["test"]}] Match all environments except test
Numeric [{"numeric": [">", 100]}] Match orders over $100
Exists [{"exists": true}] Match events that have a specific field
Wildcard [{"wildcard": "*.example.com"}] Match subdomains of example.com
Pattern Matching Examples Core
๐Ÿšจ

Production Alerts Only

Route only production failures:

{
  "source": ["my.app"],
  "detail": {
    "environment": ["production"],
    "status": ["failed", "error"]
  }
}
๐Ÿ’ฐ

High-Value Orders

Route orders over $500:

{
  "source": ["orders.service"],
  "detail-type": ["Order Created"],
  "detail": {
    "amount": [{"numeric": [">=", 500]}]
  }
}
๐Ÿ”

Security Events

Catch unauthorized API calls:

{
  "source": ["aws.guardduty"],
  "detail": {
    "severity": [{"numeric": [">=", 7]}]
  }
}
๐Ÿ–ผ๏ธ

Image Uploads Only

S3 events for images:

{
  "source": ["aws.s3"],
  "detail": {
    "bucket": {"name": ["uploads-bucket"]},
    "object": {
      "key": [{"suffix": ".jpg"}, {"suffix": ".png"}]
    }
  }
}
JSONPath Syntax Reference In-Depth

EventBridge uses JSONPath syntax to extract fields for input transformers and match patterns:

PathWhat It SelectsExample Result
$.detailEntire detail object{"state":"stopped",...}
$.detail.stateSingle field"stopped"
$.detail.instance-idField with hyphen"i-12345678"
$.detail.tags.environmentNested field"production"
$.resources[0]First array element"arn:aws:ec2:..."
$.detail.items[0].priceNested array element99.99

๐Ÿ‘‰ Built-in variables for input templates: <aws.events.event.ingestion-time> (event time), <aws.events.rule-arn> (rule ARN), <aws.events.rule-name> (rule name)

Complex Event Pattern โ€” Real-World Example In-Depth

Combine multiple operators for sophisticated routing:

๐Ÿ”

High-Severity Production Security Alerts

GuardDuty or Inspector findings, severity โ‰ฅ7, production only:

{
  "source": ["aws.guardduty", "aws.inspector"],
  "detail": {
    "severity": [{"numeric": [">=", 7]}],
    "resource": {
      "tags": {
        "environment": ["production"]
      }
    }
  }
}

Matches: source=GuardDuty OR Inspector AND severityโ‰ฅ7 AND env=production

๐Ÿ’ณ

Large Regional Payments

Payments over $10K from specific regions:

{
  "source": ["payments.service"],
  "detail-type": ["PaymentReceived"],
  "detail": {
    "region": ["us-east", "us-west"],
    "amount_usd": [{"numeric": [">", 10000]}]
  }
}

Matches: region=us-east OR us-west AND amount>$10K

Event Filtering Diagram Core
Event Filtering โ€” Rules Selectively Route Events to Targets
INCOMING EVENTS EC2 stopped prod-web-01 EC2 stopped dev-test-01 S3 PutObject image.jpg S3 PutObject data.csv EVENTBRIDGE Evaluates all rules RULE: Prod EC2 source=aws.ec2 tag:env=production RULE: Images source=aws.s3 key suffix=.jpg/.png RULE: All EC2 source=aws.ec2 (no detail filter) ๐Ÿ“ง OPS ALERT SNS โ†’ PagerDuty ๐Ÿ–ผ๏ธ THUMBNAIL Lambda ๐Ÿ“Š AUDIT LOG Firehose โ†’ S3 โœ“ โœ“ โœ“ โœ“ = matches rule โ†’ delivered dev-test-01 โ†’ no prod rule match
Multi-Rule Matching Core

A single event can match multiple rules and be delivered to multiple targets. Each rule evaluates independently:

1๏ธโƒฃ

Event Arrives

An EC2 instance stops. The event enters the event bus and is evaluated against all rules.

2๏ธโƒฃ

Rules Evaluate

Rule A matches (send to Slack). Rule B matches (log to S3). Rule C doesn't match (different source filter).

3๏ธโƒฃ

Targets Receive

The event is delivered to both Slack and S3. Rule C's target receives nothing. No code coordination needed.

Scheduled Rules โ€” Cron Without Servers Core

EventBridge can trigger targets on a schedule without any external event. This replaces traditional cron jobs:

โฐ

Rate Expressions

  • rate(5 minutes) โ€” every 5 minutes
  • rate(1 hour) โ€” every hour
  • rate(1 day) โ€” daily

Simple intervals. Always singular: rate(1 day) not rate(1 days)

๐Ÿ“…

Cron Expressions

  • cron(0 12 * * ? *) โ€” daily at noon UTC
  • cron(0 8 ? * MON-FRI *) โ€” weekdays 8am
  • cron(0 0 1 * ? *) โ€” first of month

Full cron syntax. Always UTC timezone.

๐ŸŽ“ Exam Insight
  • "Route based on event content" โ€” EventBridge with event patterns
  • "Only process production errors" โ€” detail field filtering in the rule
  • "Replace cron jobs" โ€” EventBridge scheduled rules
  • SNS filter policies vs EventBridge rules โ€” SNS filters on message attributes; EventBridge filters on the full event body with richer operators
๐Ÿ‘‰ Key Takeaway

EventBridge rules act as intelligent filters โ€” they examine event content and route only matching events to targets. This content-based routing is what makes EventBridge more powerful than simple pub/sub systems.

05
Chapter Five

EventBridge vs SNS vs SQS

The Integration Services Confusion Introductory

AWS has three major messaging services: EventBridge, SNS, and SQS. They're often confused because they all "send messages between services." The key is understanding their primary purpose:

๐Ÿ”€

EventBridge

"Intelligent event routing"

Routes events based on content. Pattern matching, SaaS integration, scheduling. The smart router.

๐Ÿ“ก

SNS

"Broadcast notifications"

One message โ†’ many subscribers. Push-based fan-out. Simple pub/sub broadcasting.

๐Ÿ—‚๏ธ

SQS

"Reliable message queue"

One message โ†’ one consumer. Pull-based buffering. Durable work queue.

๐Ÿ‘‰ Mental model: EventBridge is the router, SNS is the broadcaster, SQS is the buffer. They solve different problems and work best together.

Full Comparison Table Core
FeatureEventBridgeSNSSQS
Pattern Event Bus / Router Publish / Subscribe Message Queue
Delivery Push to targets Push to subscribers Pull by consumers
Consumers per message Multiple (via rules) Multiple (all subscribers) One (single consumer)
Filtering Rich content-based filtering on full event body Filter policies on message attributes No filtering
Message retention No โ€” event bus is transient No โ€” delivers immediately Yes โ€” up to 14 days
Ordering No guarantee Standard: no / FIFO: yes Standard: no / FIFO: yes
Scheduling Yes โ€” cron/rate rules No No
SaaS integration Yes โ€” 35+ partners No No
Cross-account Yes โ€” event bus policies Yes โ€” topic policies Yes โ€” queue policies
Schema registry Yes โ€” automatic discovery No No
Archive & replay Yes โ€” event archive No No (DLQ only)
Max message size 256 KB 256 KB 256 KB
When to Use Each Service Core
๐Ÿ”€

Choose EventBridge whenโ€ฆ

  • You need content-based routing
  • Events from SaaS providers (Stripe, GitHub)
  • Cross-account event sharing
  • Scheduled triggers (cron jobs)
  • AWS service events (EC2, S3, etc.)
  • Schema discovery and event archive
๐Ÿ“ก

Choose SNS whenโ€ฆ

  • Simple broadcast to multiple subscribers
  • Fan-out to SQS queues
  • Email, SMS, push notifications
  • High-throughput pub/sub
  • Simple filter policies are sufficient
  • Triggering multiple Lambda functions
๐Ÿ—‚๏ธ

Choose SQS whenโ€ฆ

  • Reliable work queue needed
  • Consumer may be slow or unavailable
  • Need message retention
  • Backpressure handling
  • One consumer per message
  • Batch processing with retries
How They Work Together Core

In production architectures, these services are often combined:

EventBridge + SNS + SQS โ€” Working Together
๐ŸŒ STRIPE Payment event (SaaS partner) EVENTBRIDGE Routes by content payment.success payment.failed SNS TOPIC Fan-out LAMBDA Fraud alert SQS Billing queue SQS Analytics queue Billing Worker Analytics Worker EventBridge routes โ†’ SNS broadcasts โ†’ SQS buffers โ†’ Workers process
EventBridge vs Kinesis โ€” Event Bus vs Stream Core

Another common confusion: both EventBridge and Kinesis handle events, but they serve different purposes:

FeatureEventBridgeKinesis Data Streams
Primary useEvent routing to applicationsReal-time data streaming
Data modelEvents (processed then gone)Persistent stream (1-365 days)
ReplayArchive + Replay featureBuilt-in (any offset)
OrderingNo guaranteePer-partition ordering
ConsumersRules fan-out to different targetsAll consumers read same data
FilteringRich content-based rulesConsumer must filter
Message size256 KB1 MB
Data sourcesAWS services, apps, SaaSApp logs, IoT, clickstreams
RetentionNot persistent (archive optional)Persistent (configurable)
๐Ÿ”€

Use EventBridge When

  • Route events based on content
  • AWS service or SaaS events
  • Different events โ†’ different targets
  • Scheduled triggers (cron)
  • Event-driven microservices
๐ŸŒŠ

Use Kinesis When

  • Stream large volumes of data
  • Multiple consumers read same stream
  • Replay from any point in time
  • Real-time analytics (clickstream, IoT)
  • Ordering within partitions matters

๐Ÿ‘‰ They complement each other: Kinesis can be an EventBridge event source (via Lambda). Stream high-volume data through Kinesis, then route specific events to EventBridge for application-level routing.

Common Confusion Points Core
ConfusionClarification
"SNS and EventBridge both fan out โ€” what's the difference?" SNS broadcasts to ALL subscribers. EventBridge routes based on content โ€” different events go to different targets. Use EventBridge for intelligent routing; SNS for simple broadcast.
"Can EventBridge replace SNS?" Sometimes. EventBridge has richer filtering but doesn't support email/SMS directly. For simple fan-out to SQS queues, either works. For content-based routing, use EventBridge.
"Where do messages wait if the consumer is down?" SQS is the only one that buffers. EventBridge and SNS are transient โ€” if delivery fails and retries exhaust, the event is lost (unless you configure archive/DLQ).
"Which has better filtering?" EventBridge. It can filter on the entire event body with operators (prefix, suffix, numeric, wildcard). SNS filters only on message attributes.
"Can I use them together?" Yes, and you often should. EventBridge can route to SNS (for fan-out) or SQS (for buffering). This combo gives you routing + broadcasting + durability.
Decision Flowchart Core
โ“

Start Here

  • Need to buffer messages for a slow consumer? โ†’ SQS
  • Need to broadcast one event to many? โ†’ SNS
  • Need to route based on event content? โ†’ EventBridge
  • Need SaaS integration? โ†’ EventBridge
  • Need scheduled triggers? โ†’ EventBridge
  • Need email/SMS notifications? โ†’ SNS
๐Ÿ†

Common Patterns

  • Simple pub/sub: SNS โ†’ multiple Lambda
  • Reliable fan-out: SNS โ†’ multiple SQS queues
  • Content routing: EventBridge โ†’ different targets
  • SaaS pipeline: EventBridge โ†’ Lambda/SQS
  • Full combo: EventBridge โ†’ SNS โ†’ SQS โ†’ Workers
๐ŸŽ“ Exam Insight
  • "Route events based on fields in the message body" โ†’ EventBridge
  • "Broadcast to all subscribers" โ†’ SNS
  • "Buffer work for a consumer" โ†’ SQS
  • "Receive events from SaaS like Zendesk" โ†’ EventBridge
  • "Replace cron with serverless" โ†’ EventBridge scheduled rule
  • "Message must survive consumer downtime" โ†’ SQS (not SNS/EventBridge alone)
๐Ÿ‘‰ Key Takeaway

EventBridge routes, SNS broadcasts, SQS buffers โ€” they solve different problems and are most powerful when used together. Choose based on whether you need intelligent routing, simple fan-out, or durable queuing.

06
Chapter Six

EventBridge Architecture Patterns

Production Architecture Patterns Introductory

EventBridge enables several powerful architecture patterns. These patterns appear repeatedly in production AWS systems:

Pattern 1: Serverless Event Pipeline Core

The most common pattern: trigger processing automatically when something happens in AWS.

Serverless Event Pipeline โ€” S3 Upload โ†’ EventBridge โ†’ Lambda Processing
S3 BUCKET File uploaded Event EVENTBRIDGE Rule: *.jpg LAMBDA Resize image S3 OUTPUT Thumbnails Fully serverless โ€” no servers to manage, scales automatically with upload volume
๐Ÿ“ค

Trigger

S3 emits PutObject event when a file is uploaded to the bucket.

๐Ÿ”€

Route

EventBridge rule matches .jpg files and routes to Lambda.

โšก

Process

Lambda resizes the image and stores thumbnails in output bucket.

Pattern 2: Multi-Service Automation Core

React to operational events across your AWS infrastructure automatically.

Multi-Service Automation โ€” CloudWatch Alarm โ†’ EventBridge โ†’ Multiple Actions
CLOUDWATCH Alarm: CPU > 90% โ†’ ALARM state EVENTBRIDGE Multi-target rule SNS Page on-call team LAMBDA Scale up ASG STEP FUNC Incident workflow โ†’ SMS/Email alert โ†’ +2 instances โ†’ Create Jira ticket One alarm triggers three parallel automated responses โ€” zero manual intervention
Pattern 3: Microservice Communication Core

Services emit domain events without knowing who consumes them. True microservice decoupling.

Microservice Events โ€” Services Communicate via EventBridge
PRODUCER SERVICES ORDER SVC OrderPlaced USER SVC UserSignedUp PAYMENT SVC PaymentReceived EVENTBRIDGE Domain Event Bus CONSUMER SERVICES INVENTORY Updates stock EMAIL Send confirmation ANALYTICS Track metrics LOYALTY Award points โœ“ DECOUPLED Producers don't know about consumers. Add new consumers with zero code changes.
Pattern 4: SaaS Integration Core

Connect external SaaS providers directly to your AWS architecture:

๐Ÿ’ณ

Payment Processing

  • Stripe โ†’ payment.completed
  • EventBridge routes to Lambda
  • Lambda updates order status in DynamoDB
  • Triggers fulfillment workflow
๐Ÿ””

Support Tickets

  • Zendesk โ†’ ticket.created
  • EventBridge routes high-priority tickets
  • SNS pages on-call engineer
  • Step Functions escalation workflow
๐Ÿ”ง

DevOps

  • GitHub โ†’ pull_request.merged
  • EventBridge triggers CodePipeline
  • Automated deployment to staging
  • Slack notification on completion
๐Ÿ“Š

Monitoring

  • Datadog โ†’ alert.triggered
  • EventBridge routes to remediation Lambda
  • Auto-restart unhealthy services
  • Create incident ticket
Pattern 5: Cross-Account Event Sharing In-Depth

Share events between AWS accounts for multi-account architectures:

Cross-Account Events โ€” Production Account โ†’ Central Audit Account
ACCOUNT A โ€” PRODUCTION (111111111111) APP Security events EVENT BUS Cross-account rule target ACCOUNT B โ€” SECURITY/AUDIT (222222222222) EVENT BUS SIEM Security analysis S3 Audit archive Security events from all accounts flow to central audit account for analysis
Pattern 6: Scheduled Automation Core

Replace cron jobs with serverless scheduled rules:

๐Ÿงน

Daily Cleanup

cron(0 3 * * ? *)

Every day at 3 AM UTC โ†’ Lambda deletes expired sessions, cleans temp files.

๐Ÿ“Š

Hourly Reports

rate(1 hour)

Every hour โ†’ Lambda aggregates metrics, sends to CloudWatch custom metrics.

๐Ÿ’พ

Weekly Backup

cron(0 2 ? * SUN *)

Every Sunday 2 AM โ†’ Step Functions orchestrates full database backup.

๐ŸŽ“ Exam Insight
  • S3 โ†’ processing โ†’ EventBridge rule on S3 events โ†’ Lambda
  • Multi-action response โ†’ one EventBridge rule with multiple targets
  • Microservice events โ†’ custom event bus, services publish domain events
  • SaaS integration โ†’ partner event source โ†’ EventBridge
  • Cross-account โ†’ event bus policy + cross-account rule target
  • Cron replacement โ†’ EventBridge scheduled rule โ†’ Lambda
๐Ÿ‘‰ Key Takeaway

EventBridge enables six core patterns: serverless pipelines, multi-service automation, microservice communication, SaaS integration, cross-account sharing, and scheduled jobs โ€” all without managing servers.

07
Chapter Seven

EventBridge + Serverless Architectures

The Serverless Event Backbone Introductory

EventBridge is the natural event layer for serverless architectures. It connects Lambda, Step Functions, and other serverless services without any infrastructure management.

๐Ÿ‘‰ EventBridge + Lambda + Step Functions = fully reactive, serverless architecture. Events trigger functions, functions emit events, workflows orchestrate complex processes โ€” all without a single server to manage.

EventBridge + Lambda Core

Lambda is the most common EventBridge target. EventBridge invokes Lambda asynchronously with the full event as the payload:

โšก

How It Works

  • EventBridge invokes Lambda asynchronously
  • Full event JSON is passed as the function payload
  • Lambda scales automatically with event volume
  • Built-in retry: 2 retries on failure
  • Configure DLQ for failed invocations
๐ŸŽฏ

Best Practices

  • Use input transformers to send only needed fields
  • Configure DLQ to capture failed events
  • Keep Lambda functions idempotent (retries!)
  • Use reserved concurrency for critical functions
  • Monitor with Invocations and Errors metrics
EventBridge + Step Functions Core

For complex workflows that span multiple steps, EventBridge triggers Step Functions state machines:

EventBridge โ†’ Step Functions โ€” Complex Workflow Orchestration
ORDER OrderPlaced event EVENTBRIDGE Route to workflow STEP FUNCTIONS โ€” Order Fulfillment Workflow Validate Lambda Charge Lambda Ship Lambda โœ“ Done On failure โ†’ retry / alert / compensate One event triggers a multi-step workflow with built-in error handling and retries
๐Ÿ”„

When to Use Step Functions

  • Multi-step business processes (order fulfillment)
  • Workflows that need retries and error handling
  • Long-running processes (up to 1 year)
  • Human approval steps
  • Parallel processing with aggregation
ฮป

When to Use Lambda Directly

  • Single-step processing
  • Simple transformations
  • Real-time event reactions
  • Stateless operations
  • When 15-minute timeout is sufficient
Event Choreography vs Orchestration In-Depth

Two patterns for coordinating serverless workflows:

AspectChoreography (EventBridge)Orchestration (Step Functions)
Control Decentralized โ€” each service reacts to events Centralized โ€” workflow defines all steps
Coupling Loosely coupled โ€” services don't know each other Tighter coupling โ€” workflow knows all services
Visibility Harder to trace end-to-end flow Clear visualization in Step Functions console
Error handling Each service handles its own errors Centralized retry, catch, fallback
Best for Independent services, high scalability, loose coupling Complex workflows, sequential steps, error recovery

๐Ÿ‘‰ In practice, use both: EventBridge for triggering and loose coupling, Step Functions for complex orchestration. EventBridge triggers Step Functions, which orchestrates the detailed workflow.

Serverless Architecture Diagram Core
Complete Serverless Architecture โ€” EventBridge as the Event Backbone
API GATEWAY REST API API Handler emit EVENTBRIDGE Event Backbone Routes all events LAMBDA Process event STEP FUNC Workflow SQS Buffer queue SNS Notifications DYNAMODB State store S3 File upload โฐ CRON Scheduled rule 100% serverless โ€” API, events, workflows, storage โ€” no servers to manage
EventBridge Pipes โ€” Direct Integration In-Depth

EventBridge Pipes provides point-to-point integrations between sources and targets with optional filtering and transformation:

๐Ÿ”—

What Pipes Do

  • Connect source โ†’ (filter) โ†’ (enrich) โ†’ target
  • Sources: SQS, Kinesis, DynamoDB Streams, Kafka
  • Targets: Lambda, Step Functions, API Gateway, EventBridge
  • Built-in filtering and transformation
  • No code required for simple integrations
๐Ÿ†š

Pipes vs Rules

  • Rules: Fan-out to multiple targets, event bus routing
  • Pipes: Point-to-point, polling sources, enrichment
  • Use Pipes for: SQS โ†’ Lambda, DynamoDB Streams โ†’ Step Functions
  • Use Rules for: S3 events โ†’ multiple consumers, content routing
๐ŸŽ“ Exam Insight
  • EventBridge + Lambda โ€” asynchronous invocation, automatic retry (2x), configure DLQ
  • EventBridge + Step Functions โ€” complex workflows, error handling, long-running processes
  • Choreography vs Orchestration โ€” loose coupling (EventBridge) vs centralized control (Step Functions)
  • EventBridge Pipes โ€” point-to-point from polling sources (SQS, Kinesis, DynamoDB Streams)
  • Fully serverless โ€” API Gateway โ†’ Lambda โ†’ EventBridge โ†’ Lambda/Step Functions
๐Ÿ‘‰ Key Takeaway

EventBridge is the event backbone of serverless AWS architectures โ€” connecting Lambda, Step Functions, and other services to create fully reactive systems that scale automatically and require zero server management.

08
Chapter Eight

Security, Reliability & Scaling

Access Control โ€” Who Can Send and Receive Events Core

EventBridge uses two layers of access control:

๐Ÿ”‘

IAM Policies

Control which principals can call EventBridge APIs:

  • events:PutEvents โ€” send events
  • events:PutRule โ€” create rules
  • events:PutTargets โ€” attach targets
  • events:DescribeEventBus โ€” view bus

Attach to IAM users, roles, Lambda execution roles.

๐Ÿ“‹

Resource-Based Policies

Control who can send events TO a specific event bus:

  • Attached directly to the event bus
  • Required for cross-account event delivery
  • Allow specific accounts or organizations
  • Allow AWS services to send events

Essential for multi-account architectures.

Cross-Account Access In-Depth

To receive events from another AWS account, configure a resource policy on the target event bus:

1๏ธโƒฃ

Target Account โ€” Event Bus Policy

Allow the source account to put events:

{
  "Version": "2012-10-17",
  "Statement": [{
    "Effect": "Allow",
    "Principal": {
      "AWS": "arn:aws:iam::111111111111:root"
    },
    "Action": "events:PutEvents",
    "Resource": "arn:aws:events:us-east-1:
                 222222222222:event-bus/audit-bus"
  }]
}
2๏ธโƒฃ

Source Account โ€” Rule Target

Create a rule targeting the cross-account bus:

  • Rule in source account
  • Target ARN: the remote event bus
  • IAM role with events:PutEvents on remote bus

Both policy AND IAM role required.

Encryption Core
๐Ÿ”’

Encryption in Transit

  • All EventBridge API calls use HTTPS/TLS
  • Events delivered to targets use encrypted connections
  • No configuration required โ€” always on
๐Ÿ—๏ธ

Encryption at Rest

  • Custom event buses: optional KMS CMK encryption
  • Archives: encrypted with KMS
  • Default bus: AWS-managed encryption
  • Specify CMK on bus creation for compliance
Reliability โ€” Retries and Dead-Letter Queues Core

EventBridge has built-in reliability mechanisms:

MechanismBehaviorConfiguration
Automatic Retries EventBridge retries failed deliveries with exponential backoff Up to 24 hours of retries by default
Retry Policy Configure max retries and max event age per target 1-185 retries, 60 seconds to 24 hours age
Dead-Letter Queue Failed events sent to SQS queue after retries exhausted Configure per-rule: specify SQS queue ARN

๐Ÿ‘‰ Always configure a DLQ for production rules. Without a DLQ, events that fail all retries are silently dropped. With a DLQ, you can inspect failures, fix issues, and reprocess events.

Event Archive and Replay Core

EventBridge can archive events for later replay โ€” powerful for disaster recovery and debugging:

๐Ÿ“ฆ

Event Archive

  • Archive all events or filter by pattern
  • Retention: 1 day to indefinite
  • Stored encrypted in AWS-managed storage
  • Pay for storage used
๐Ÿ”„

Event Replay

  • Replay archived events to the event bus
  • Filter by time range
  • Replayed events processed by current rules
  • Use for recovery, testing, or reprocessing
Scaling and Limits Core

EventBridge is designed for massive scale with soft limits that can be increased:

LimitDefaultAdjustable
PutEvents requests 10,000 / second / region Yes โ€” request increase
Events per PutEvents call 10 events per batch No
Event size 256 KB No
Rules per event bus 300 Yes โ€” request increase
Targets per rule 5 No
Invocations per second (Lambda) Lambda concurrency limits apply Yes โ€” Lambda limits
Monitoring with CloudWatch Core

EventBridge publishes metrics to CloudWatch automatically at 1-minute granularity:

MetricDescriptionAlarm Recommendation
InvocationsEvents matched by rulesBaseline for normal volume
FailedInvocationsDelivery failures (after all retries)Alarm if >0 for 5 minutes
TriggeredRulesRules that matched eventsMonitor unexpected matches
ThrottledRulesRules throttled due to rate limitsAlarm if >0 (request limit increase)
DeadLetterInvocationsEvents sent to Dead-Letter QueueCritical alarm if >0
PutEventsRequestCountEvents received by event busBaseline for cost planning
PutEventsFailedCountEvents rejected (invalid format)Alarm if >0 (coding error)
๐Ÿ“Š

Where to Find Metrics

  • CloudWatch โ†’ Metrics โ†’ AWS/Events
  • Per event bus, per rule
  • Some metrics aggregated by bus
  • 1-minute granularity
๐Ÿ””

Critical Alarm Setup

  • FailedInvocations > 0 for 5 min โ†’ Page ops
  • DeadLetterInvocations > 0 โ†’ Critical alert
  • ThrottledRules > 0 โ†’ Request limit increase
  • Set SNS action for all alarms
When NOT to Use EventBridge In-Depth
๐Ÿšซ

Don't Use EventBridge For

  • Synchronous request/response โ€” use API calls
  • High-frequency streaming โ€” use Kinesis
  • Message ordering required โ€” use SQS FIFO
  • Large payloads (>256KB) โ€” store in S3, send reference
  • Long message retention โ€” use SQS (14 days)
โœ…

Do Use EventBridge For

  • Event-driven architectures
  • Content-based routing
  • AWS service integration
  • SaaS event ingestion
  • Scheduled automation
  • Cross-account event sharing
Security Best Practices Core
Best PracticeWhy It Matters
Use custom event buses for application eventsIsolate from AWS service events, easier access control
Apply least-privilege IAM policiesLimit who can create rules and send events
Enable KMS encryption for sensitive eventsCompliance requirements, data protection
Configure DLQ on all production rulesPrevent silent event loss on failures
Use resource policies for cross-accountExplicit trust, audit trail
Monitor FailedInvocations metricEarly detection of delivery issues
Archive events for critical workflowsEnable replay for disaster recovery
๐ŸŽ“ Exam Insight
  • Cross-account events โ€” requires resource policy on target bus + IAM role in source
  • Events lost after retries? โ€” configure Dead-Letter Queue (SQS)
  • Replay past events โ€” Event Archive + Replay feature
  • Rate limit is 10,000 events/sec โ€” can be increased via support request
  • Max event size is 256 KB โ€” for larger data, store in S3, send reference
  • Encryption at rest โ€” use KMS CMK on custom event buses
๐Ÿ‘‰ Key Takeaway

EventBridge is secure (IAM + resource policies + KMS), reliable (retries + DLQ + archive), and scalable (10K+ events/sec). Always configure DLQs for production, monitor FailedInvocations, and use archives for critical workflows.

Amazon EventBridge ยท Complete
  • EventBridge is a serverless event bus โ€” routes events between AWS services, your apps, and SaaS providers
  • Core components โ€” Event Bus (receives), Rules (filter/route), Targets (deliver), Events (256 KB JSON)
  • Content-based routing โ€” pattern matching on event fields (prefix, suffix, numeric, wildcard)
  • vs SNS vs SQS โ€” EventBridge routes, SNS broadcasts, SQS buffers; use together for best results
  • Architecture patterns โ€” serverless pipelines, multi-service automation, microservice events, SaaS integration, cross-account, scheduled jobs
  • Serverless integration โ€” Lambda (async), Step Functions (orchestration), choreography + orchestration patterns
  • Security โ€” IAM policies + resource-based policies for cross-account, KMS encryption for custom buses
  • Reliability โ€” automatic retries (24 hrs), configurable retry policy, Dead-Letter Queues (SQS)
  • Archive & Replay โ€” store events for disaster recovery, replay to reprocess or test
  • Scaling โ€” 10,000 events/sec default (increasable), 300 rules/bus, 5 targets/rule