Amazon EventBridge

Also known as: EventBridge

On this page 7

Amazon EventBridge is a serverless event bus service from AWS that receives events from AWS services, software-as-a-service partners and custom applications, matches them against rules with event patterns, and delivers them to targets such as AWS Lambda functions, queues and workflows. In serverless architectures within the Cloud, EventBridge acts as the routing layer of event-driven design: producers publish facts about what happened, and the bus decides who needs to know.

The service grew out of Amazon CloudWatch Events, and it keeps that lineage: the default event bus still carries the same AWS service events. Because the team operating EventBridge manages capacity, patching and scaling, engineers configure only buses, rules, schemas and targets, and they pay per event published rather than for idle infrastructure.

How Amazon EventBridge routes events

EventBridge routes events by evaluating every incoming event against the rules attached to an event bus and invoking each target whose rule matches. An event is a JSON document with standard envelope fields such as source, detail-type, account, region, time and a free-form detail object, limited to 256 KB per event.

A rule holds an event pattern, a JSON filter that matches on field values, prefixes, numeric ranges, the existence of a field or the absence of a value. When a pattern matches, EventBridge sends the event to up to five targets per rule, optionally reshaping it with an input transformer so the target receives only the fields it needs. Rules can also run on a schedule, although scheduled work has largely moved to the dedicated EventBridge Scheduler.

Delivery is asynchronous and at least once. If a target is throttled or unavailable, EventBridge retries with exponential backoff for up to 24 hours and 185 attempts by default, and events that still fail can be sent to an Amazon SQS dead-letter queue. There is no ordering guarantee, so consumers must tolerate duplicates and out-of-order arrival.

The table below lists the main building blocks and the role each one plays in a routing decision.

ComponentWhat it doesTypical configuration
Event busReceives and holds events for matchingDefault, custom or partner bus
RuleFilters events with a pattern or scheduleOne pattern, up to five targets
TargetReceives matched eventsLambda, SQS, Step Functions, API destination
Input transformerReshapes the payload before deliveryPath map plus template
Archive and replayStores events and resends them laterRetention period, filter pattern
Schema registryRecords event structures for code generationDiscovery on a bus
Core components of an EventBridge deployment

EventBridge offers three kinds of event bus, and choosing the right one determines who can publish and which events arrive automatically. Each AWS account has one default event bus per Region that receives AWS service events, such as an EC2 instance state change or an S3 object notification when enabled.

Custom buses isolate application events, and resource-based policies allow other accounts to publish to them, which supports cross-account and cross-Region routing. Partner buses receive events from integrated SaaS providers without the need for polling or webhooks.

Bus typeEvent sourcesBest suited for
Default busAWS services in the accountOperational automation and auditing
Custom busYour own applications via PutEventsDomain events between services
Partner busIntegrated SaaS providersReacting to external business events
Event bus types and their typical use

Around the bus, the service family includes EventBridge Pipes, which connect a single source such as an SQS queue, a DynamoDB stream or a Kinesis stream to a single target with optional filtering and enrichment, and EventBridge Scheduler, which runs millions of one-time or recurring schedules with time zone support. API destinations let a rule call any HTTPS endpoint with managed authentication and rate limiting.

EventBridge compared with other AWS messaging services

EventBridge differs from other AWS messaging services mainly in its content-based routing: it decides where an event goes by inspecting the payload, while queues and topics deliver whatever they receive to their subscribers. The comparison below helps decide when the bus is the right tool and when a neighboring service fits better.

ServiceDelivery modelStrengthMain limitation
EventBridgePush with rule-based routingRich filtering, SaaS and AWS sourcesNo ordering, moderate latency
Amazon SNSPush fan-out to subscribersVery high throughput, low latencySimpler filtering on attributes
Amazon SQSPull by consumersBuffering and load levelingOne consumer group per queue
Kinesis Data StreamsPull from ordered shardsOrdering and replay at scaleShard capacity planning
EventBridge versus SNS, SQS and Kinesis

In practice these services are combined rather than chosen exclusively. A common pattern places an SQS queue behind an EventBridge rule so that a slow consumer can buffer bursts and process events at its own pace, while EventBridge keeps responsibility for deciding which consumers receive which events.

Designing event-driven systems with EventBridge

Good EventBridge designs treat events as public contracts between teams. A well-formed event states a past fact, such as OrderPlaced, carries a stable source and detail-type, and includes enough data for most consumers without exposing internal database structures.

  • Use one custom bus per domain or per organization boundary, and keep the default bus for AWS service events.
  • Version event schemas and add fields in a backward-compatible way; consumers should ignore unknown fields.
  • Make every consumer idempotent, for example by storing processed event identifiers, because delivery is at least once.
  • Attach a dead-letter queue and alarms to every rule whose target matters to the business.

The following decision table maps common requirements to a recommended EventBridge feature.

RequirementRecommended featureReason
Many consumers per eventRules on a custom busEach team adds its own rule
Point-to-point stream processingEventBridge PipesSingle source to single target
Delayed or recurring jobsEventBridge SchedulerScales beyond rule schedules
Calling an external webhookAPI destinationManaged auth and rate limiting
Recovering from a consumer bugArchive and replayResends past events after a fix
Choosing an EventBridge feature for a requirement

Limitations, costs and common mistakes

EventBridge trades latency and ordering for flexibility. End-to-end delivery usually completes within a second, which suits business workflows but not tight request paths or high-frequency trading data. Throughput for PutEvents is governed by soft quotas that vary by Region, so very high-volume telemetry is often cheaper and safer on Kinesis.

Pricing is about one US dollar per million custom events published, with AWS service events on the default bus delivered at no charge; each 64 KB chunk of a payload counts as one event. Costs rise with archives, replays, Pipes requests and API destination invocations, so noisy event sources deserve filtering close to the producer.

SymptomLikely causeFix
Rule never firesPattern field names or types do not matchTest with the sandbox pattern tester
Duplicate processingAt-least-once deliveryIdempotency keys in consumers
Events silently lostRetries exhausted without a DLQConfigure a dead-letter queue
Infinite invocation loopTarget writes events that match its own ruleNarrow the pattern or split buses
Common EventBridge mistakes and their fixes

A frequent design error is the recursive event loop, where a Lambda function triggered by a rule publishes an event that the same rule matches again. Such loops can generate large bills within minutes, so patterns should be specific and budget alarms should exist from the first deployment.

The short version

Amazon EventBridge works like a smart mail sorting room for software. Different programs drop off short notes saying that something happened, such as a new order or a finished upload. The sorting room reads each note and, based on rules you write, forwards a copy to every program that cares about it.

The sender does not need to know who the readers are, and new readers can be added without changing the sender. That is the key benefit: loosely connected systems that are easier to grow. The trade-off is that notes may occasionally arrive twice or in a different order, so each reader must handle that calmly.

Where it makes a difference

An online retailer runs its checkout as a set of serverless services. When a payment succeeds, the checkout service publishes one OrderPlaced event to a custom event bus. Separate rules forward that event to a Lambda function that reserves stock, to an SQS queue feeding the warehouse system, to a Step Functions workflow that sends the confirmation email, and to an analytics stream.

During a seasonal sale the shop processes about two million orders in a week. When a bug in the loyalty points service corrupts several thousand records, the team fixes the code and uses archive and replay to resend the affected six hours of events only to the loyalty rule. The outcome is a complete recovery without touching checkout or any other consumer, and the event publishing bill for the week stays at a few dollars.