AWS EventBridge Overview
What is Amazon EventBridge
Amazon EventBridge is a serverless event bus service for building event-driven architectures.
It routes events from AWS services, custom applications, and SaaS partners to targets.
EventBridge supports filtering, transformation, archiving, and replay.
Use it to decouple producers and consumers and to build reactive, loosely coupled systems.
Core concepts
- Event: A JSON document that describes a change or action (source, detail-type, detail).
- Event bus: A channel that receives and routes events. Types: default, custom, partner.
- Rule: Matches incoming events using an event pattern and routes them to one or more targets.
- Target: A destination for matched events (Lambda, SQS, SNS, Step Functions, Kinesis, API destinations, etc.).
- Schema registry: Stores event schemas and can generate code bindings to help consumers parse events.
- Partner event sources: SaaS providers that send events directly into your account’s event bus.
- Archive & replay: Persist events for later replay to recreate state or reprocess with new consumers.
- Dead-letter queue (DLQ): Optional SQS target for events that fail delivery to a target.
Event types and sources
- AWS service events (e.g., EC2 state changes, CodePipeline events).
- Custom application events (PutEvents API).
- SaaS partner events (e.g., Datadog, PagerDuty) via partner event sources.
- API Destinations: send events outbound to HTTP endpoints with auth and throttling.
Key features
- Flexible event filtering with rich event patterns (JSON-based).
- Fan-out routing to multiple targets and cross-account event delivery.
- Input transformation (input transformer) to reshape event payloads for targets.
- Built-in retries and DLQ integration for resiliency.
- Event archives and replay for debugging and state reconstruction.
- Schema discovery and code generation to enforce contracts.
- Built-in observability via CloudWatch metrics and logs.
Common use cases
- Microservices communication and decoupling (one service emits events, many consumers react).
- Workflow orchestration (EventBridge → Step Functions → downstream tasks).
- SaaS integrations and notifications (partner events → internal processes).
- Real-time auditing and audit trails (archive and replay for compliance).
- Reactive automation (CloudWatch alarms or AWS Config changes trigger automated remediation).
- Event-driven ETL pipelines (events trigger Firehose/Kinesis or Lambda transforms).
