Introduction to Amazon EventBridge
Serverless event bus for routing events between AWS services, SaaS and your apps.
- 2 lessons
- Module quiz
An event is a record that something has happened, such as an order being placed, a file being uploaded or an EC2 instance stopping. In an event-driven architecture, components announce events rather than calling each other, and any component interested in an event reacts to it. Producers do not need to know who the consumers are, so new behaviour can be added without changing existing code.
Amazon EventBridge is a serverless event bus for such architectures. Applications, AWS services and software-as-a-service (SaaS) partners send events to a bus, and rules match events by their content and route them to targets, such as Lambda functions, Step Functions workflows, SQS queues or external HTTP APIs. EventBridge also runs scheduled tasks and connects sources to targets directly. Events from AWS services are free, and custom events are charged per million.
Where EventBridge fits
EventBridge is the usual answer on the exam when an application must react to a change in an AWS service, such as a failed deployment, or when events must be routed by their content. Compared with SNS, it offers richer filtering on any field of an event, receives events from AWS services and SaaS partners, and can archive and replay events. Because delivery is asynchronous, testing and monitoring event-driven applications needs particular care.
How this module is organised
Routing Events with EventBridge Buses, Rules and Targets explains the types of event bus, how rules and event patterns work, how events are delivered to targets, and the Scheduler and Pipes features. Testing and Observing Event-Driven Applications explains how to test event patterns and consumers, use replay and schemas, and detect silent failures.