EventBridge
💡 Definition
Amazon EventBridge is a serverless event bus service that makes it easy to connect your applications with data from a variety of sources. It was formerly known as Amazon CloudWatch Events.
🔑 Key Concepts
- Event Bus: A pipeline that receives events.
- Events: A signal that a system's state has changed (e.g., EC2 instance state changed to "running", S3 file uploaded).
- Rules: Filters that match incoming events and route them to targets.
- Targets: Services that process the events (e.g., Lambda, SNS, SQS, Kinesis).
- SaaS Integration: Can ingest events directly from partner SaaS applications (e.g., Zendesk, Shopify).
⚙️ How it Works
- Source: An AWS service (e.g., EC2) generates an event ("Instance Stopped").
- Bus: EventBridge receives the event.
- Rule: A rule matches this event ("If source=EC2 and state=stopped").
- Target: Triggers a Lambda function to "Update Database".
🎯 Use Cases
- Automated Response: Automatically remediating security issues.
- Decoupled Architecture: Building event-driven microservices.
- Scheduled Tasks: Running a Lambda function every night (replacing Cron).
💰 Pricing Model
- AWS Events: Free.
- Custom/SaaS Events: Charged per million events published.
📝 Exam Tips (CLF-C02)
- Serverless Event Bus.
- Ideally suited for event-driven architectures.
- Can handle Scheduled Events (Cron jobs).
- Successor to CloudWatch Events.
See Also: * CloudWatch * Lambda * SNS