AWS serverless event bus connecting applications using events, enabling decoupled event-driven architectures with rule-based routing.
Amazon EventBridge is a fully managed serverless event bus that facilitates building scalable, decoupled event-driven architectures. It acts as an intelligent intermediary that receives events from multiple sources — AWS services, custom applications, and dozens of native SaaS integrations — and routes them to specific destinations based on sophisticated content-based rules.
Unlike traditional messaging systems that require queue or topic configuration, EventBridge uses declarative event patterns that enable granular filtering without additional code. Events are processed asynchronously with delivery guarantees and automatic retry capabilities, eliminating the need to manage messaging infrastructure.
EventBridge integrates natively with the AWS ecosystem and provides a Schema Registry that auto-discovers and versions event structures, facilitating contract evolution between services in microservices architectures.
| Component | Function | Use cases |
|---|---|---|
| Event Bus | Logical channel that receives and distributes events | Default bus for AWS services, custom buses per business domain |
| Rules | Declarative filters based on event content | Routing by source, detail-type, or specific payload fields |
| Targets | Destinations that process filtered events | Lambda, SQS, SNS, Step Functions, API destinations |
| Schema Registry | Versioned catalog of event structures | Auto-discovery, validation, code generation |
| EventBridge Pipes | Point-to-point connections with transformation | Streaming from DynamoDB, Kinesis, SQS with filtering and enrichment |
{
"version": "0",
"id": "7bf73129-1428-4cd3-a780-95db273d1602",
"detail-type": "Order Status Changed",
"source": "ecommerce.orders",
"account": "123456789012",
"time": "2024-03-19T10:30:00Z",
"region": "us-east-1",
"detail": {
"orderId": "order-12345",
"previousStatus": "processing",
"currentStatus": "shipped",
"customerId": "cust-67890",
"amount": 149.99,
"items": [
{
"sku": "PROD-001",
"quantity": 2,
"price": 74.99
}
]
}
}{
"source": ["ecommerce.orders"],
"detail-type": ["Order Status Changed"],
"detail": {
"currentStatus": ["shipped", "delivered"],
"amount": [{"numeric": [">", 100]}],
"customerId": [{"exists": true}]
}
}EventBridge Pipes introduce a point-to-point integration model that complements the traditional pub/sub model of EventBridge Rules:
| Aspect | EventBridge Rules | EventBridge Pipes |
|---|---|---|
| Model | Pub/sub (1:N) | Point-to-point (1:1) |
| Sources | Event buses, scheduled events | DynamoDB Streams, Kinesis, SQS, MSK |
| Transformation | Limited (input transformer) | Complete (filtering, mapping, enrichment) |
| Use cases | Fan-out, notifications | ETL, streaming analytics, synchronization |
| Cost | Per event processed | Per pipe + events processed |
EventBridge provides native archive and replay capabilities that are critical for production systems:
# Create archive for order events
aws events put-archive \
--archive-name orders-archive \
--event-source-arn arn:aws:events:us-east-1:123456789012:event-bus/orders-bus \
--retention-days 365
# Replay events from last month
aws events start-replay \
--replay-name orders-replay-march \
--event-source-arn arn:aws:events:us-east-1:123456789012:archive/orders-archive \
--event-start-time 2024-03-01T00:00:00Z \
--event-end-time 2024-03-31T23:59:59Z| Criteria | EventBridge | Amazon SQS | Amazon SNS |
|---|---|---|---|
| Routing | Content-based with complex patterns | Queue-based, optional FIFO | Topic-based, simple fan-out |
| SaaS integrations | Dozens of native (Shopify, Zendesk, etc.) | No native integrations | No native integrations |
| Schema management | Integrated registry with versioning | No native support | No native support |
| Transformation | Input transformer + Pipes | None | None |
| Cost | $1 per million events | $0.40 per million requests | $0.50 per million requests |
| Latency | Seconds | Milliseconds | Milliseconds |
| Ideal cases | Event-driven architecture, integrations | Decoupling, work queues | Notifications, alerts |
Use EventBridge when:
Use SQS when:
Use SNS when:
EventBridge integrates natively with CloudWatch and AWS X-Ray to provide complete visibility:
Invocations, MatchedEvents, FailedInvocations — monitor event processing volume and detect target failuresInvocationsSentToDeadLetterQueue, ThrottledRules — identify undelivered events and throttlingEventBridge represents a fundamental shift toward serverless event-driven architectures that scale automatically and reduce operational coupling. For engineering teams, it eliminates the complexity of managing message brokers while providing advanced capabilities like schema registry, declarative transformations, and native SaaS integrations. The archive and replay capability is especially valuable for critical systems where event auditability and recovery are business requirements. The per-processed-event pricing model aligns costs with generated value, making incremental adoption viable in existing systems.
Cloud computing model where the provider manages infrastructure automatically, allowing code execution without provisioning or managing servers, paying only for actual usage.
Architectural pattern where components communicate through asynchronous events, enabling decoupled, scalable, and reactive systems.
AWS serverless compute service that runs code in response to events without provisioning or managing servers, automatically scaling from zero to thousands of concurrent executions.
Architectural style structuring an application as a collection of small, independent, deployable services, each with its own business logic and data.
Ability to understand a system's internal state from its external outputs: logs, metrics, and traces, enabling problem diagnosis without direct system access.
Architecture design for scaling a personal second brain to a production system with AWS serverless — from the current prototype to specialized use cases in legal, research, and community building.
Production-ready serverless backend for a personal knowledge graph — DynamoDB, Lambda, Bedrock, MCP, Step Functions. The implementation of the architecture described in the 'From Prototype to Production' essay.