Skip to main content

EventBridge

https://aws.amazon.com/eventbridge

https://docs.aws.amazon.com/eventbridge

Serverless event bus. Can invoke over 200 AWS services as a target. You can schedule events with EventBridge Scheduler.

Building event-driven architectures on AWS (EventBridge workshop) - https://catalog.workshops.aws/building-event-driven-architectures-on-aws/en-US

How to Use Amazon EventBridge to Build Decoupled, Event-Driven Architectures - https://pages.awscloud.com/AWS-Learning-Path-How-to-Use-Amazon-EventBridge-to-Build-Decoupled-Event-Driven-Architectures_2020_LP_0001-SRV.html - The first video is very good at explaining why and how to decouple services with an event bus (is available at YouTube too).

Serverless 101: Amazon EventBridge - https://www.youtube.com/watch?v=e3sevLjtIQg

Event examples (from AWS in Action p. 191):

  • CloudTrail emits an event for every call to the AWS API (if CloudTrail is enabled in the AWS account and region).
  • EC2 emits events whenever the state of an EC2 instances changes (eg from Pending to Running).
  • AWS emits an event to notify you of service degradations or downtimes.

Karpenter uses EventBridge events to respond to EC2 Spot Instance interruptions. Events are sent to an SQS queue. See https://karpenter.sh/docs/reference/cloudformation/#interruption-handling and https://github.com/aws/karpenter-provider-aws/blob/c9c3a48888bceee4d01e0fec80a03a6379ca928f/website/content/en/preview/getting-started/getting-started-with-karpenter/cloudformation.yaml#L302-L374.

Global endpoints allow you to fail over event ingestion automatically to a secondary Region during service disruptions, without the need for manual intervention. See workshop https://catalog.workshops.aws/building-event-driven-architectures-on-aws/en-US/eventbridge/global-endpoint