β‘ EventBridge
Master EventBridge event-driven patterns, rules, and pipeline triggers.
Module: AWS Data Engineering β’ Topic 47 of 65 β’ Premium Content
EventBridge Architecture
Architecture Diagram
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β EVENTBRIDGE ARCHITECTURE β
β β
β Event Sources β Event Bus β Rules β Targets β
β β
β Sources: AWS services, SaaS apps, custom events β
β Rules: Filter and route events β
β Targets: Lambda, Step Functions, SQS, SNS, etc. β
β β
β Schedule Rules: β
β β’ Cron expressions for periodic triggers β
β β’ Rate expressions for intervals β
β β’ Great for batch pipeline scheduling β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Interview Q&A
Q1: EventBridge vs. CloudWatch Events?
Answer: EventBridge is the evolution of CloudWatch Events with more features: SaaS integration, schema discovery, and event buses.
Q2: How do you trigger a pipeline on schedule?
Answer: Create a cron rule in EventBridge that targets Step Functions or Lambda to start the pipeline.
Q3: What is event filtering?
Answer: Rules use event patterns to filter incoming events. Only matching events are routed to targets, reducing unnecessary invocations.
Summary
- Event Bus: Default (AWS events) or custom (your events)
- Rules: Filter and route events based on patterns
- Targets: Lambda, Step Functions, SQS, SNS, and more
- Schedules: Cron and rate expressions for periodic triggers
- Schema Registry: Auto-discover and store event schemas