Cloud Fundamentals
/Advanced
Event Bus (EventBridge / Event Grid)
Definition
A serverless event bus that connects applications together using data from your own apps, SaaS apps, and cloud services. It routes real-time 'events' to various targets based on complex rules.
Explain Like I'm New
The post office sorting facility. A package (an event) arrives. The post office looks at the zip code (the rule), and decides whether to send it to an email address, a Lambda function, or a database.
Real World Example
AWS EventBridge. An HR SaaS application emits an event: 'New Employee Hired'. EventBridge reads the event, triggers a Lambda function to create the employee's email address, and simultaneously sends an SQS message to the payroll system to start their salary.
Common Use Cases
- •Event-driven architectures
- •SaaS integration
- •Choreography
Interview Questions
basic
- What is the primary difference between a Message Queue (SQS) and an Event Bus (EventBridge)?
intermediate
- What is a 'Target' in EventBridge?