EventBridge on AWS: decoupling integrations without every team writing its own polling
There is a pattern that keeps showing up whenever several teams build services that need to react to what happens in other services: someone writes a cron job that asks, every so often, "did anything change?" A billing service that polls every five minutes to see if there are new orders. A notifications service doing the same thing to find out if a user updated their profile. Each team solves the same problem -knowing when something happened in another system- with its own polling, its own backoff logic, and its own arbitrary interval. The result is unnecessary load on the service being polled, built-in delay between something happening and anyone noticing, and a web of point-to-point integrations nobody designed on purpose.
Amazon EventBridge exists to solve that class of problem: a managed event bus where a service publishes "this happened" once, and any other interested service subscribes to that kind of event without the publisher ever knowing who is listening.
What EventBridge solves and how
The central piece is the event bus. A producer service publishes an event -a JSON payload with a source, a detail type, and a body- to a bus. Rules defined on that bus describe, through a matching pattern, which events each consumer cares about and where they should be sent.
{
"Source": "orders-service",
"DetailType": "OrderConfirmed",
"Detail": {
"orderId": "ord_8841",
"customerId": "cus_2201",
"status": "confirmed"
}
}
A rule that filters on that event type and routes it to a notifications Lambda function looks like this:
{
"EventPattern": {
"source": ["orders-service"],
"detail-type": ["OrderConfirmed"]
},
"Targets": [
{ "Arn": "arn:aws:lambda:us-east-1:111122223333:function:send-notification" }
]
}
The orders service does not know, and does not need to know, that a Lambda function is listening. If the analytics team wants to find out about every confirmed order tomorrow, they add their own rule on the same event without touching a single line of the orders service. That is the real payoff: the producer publishes a domain fact, and any number of consumers subscribe to that fact independently of each other and of the producer.
The matching pattern (EventPattern) supports filters far more precise than just source and detail-type: you can filter on fields inside detail using operators such as numeric ranges, prefixes, or value lists. That lets a single rule route, for example, only the orders whose amount is above a threshold to a manual review flow, without the consumer having to receive and discard everything else.
{
"EventPattern": {
"source": ["orders-service"],
"detail-type": ["OrderConfirmed"],
"detail": {
"amount": [{ "numeric": [">", 500000] }]
}
}
}
EventBridge also solves third-party integrations through partner event buses: SaaS providers such as payment or support platforms can publish events directly to a bus in the customer's AWS account, without the team having to expose a public endpoint or maintain its own webhooks with retries and signature validation. The provider publishes, and the internal rules decide what to do with each event.
The mistake: using it as a replacement for a queue
The problem shows up when a team, drawn in by how easy it is to decouple producers from consumers, starts treating EventBridge as if it were a generic message queue. It is not, and the guarantees it offers are different from the ones SQS offers.
EventBridge does not guarantee delivery order between events. Two events published in sequence by the same producer can reach a consumer in a different order than they were published, because the bus is designed to fan events out to multiple rules and targets in parallel, not to preserve a sequence. It also does not, by itself, give fine-grained control over how many messages a consumer processes at once: that depends on the target (a Lambda function scales according to its own concurrency settings, not according to any throughput logic that EventBridge manages).
This becomes a real problem when the use case actually needs guaranteed order or sequential processing. A typical example: an order status flow where "confirmed" has to be processed before "shipped", and "shipped" before "delivered", because the consumer builds a state machine that assumes that sequence. If those three events are published to EventBridge and routed from there to a Lambda function, nothing guarantees the function will process them in the order they occurred: two concurrent invocations of the same function can finish in any order, and a consumer that assumes ordering silently corrupts its own state.
For that case, the right tool is a SQS FIFO queue, which guarantees order within the same MessageGroupId, or Step Functions, which explicitly models the sequence of steps as a state machine with defined transitions. EventBridge can still be the entry point -the producer publishes the event to the bus- but the rule that needs guaranteed order routes that event to a FIFO queue instead of straight to a Lambda function, and it is the queue that enforces the sequence before the consumer processes it.
{
"EventPattern": {
"source": ["orders-service"],
"detail-type": ["OrderStatusChanged"]
},
"Targets": [
{
"Arn": "arn:aws:sqs:us-east-1:111122223333:order-status.fifo",
"SqsParameters": { "MessageGroupId": "orderId" }
}
]
}
What did not work the first time
In an integration between an inventory service and an order-fulfillment service, the first design published every order status change -reserved, confirmed, in preparation, shipped- directly to EventBridge, with a rule that routed all of those events to the same Lambda function in charge of updating reserved inventory. It worked without visible issues during testing, because in testing the events were published one at a time, with plenty of room between them for the previous Lambda invocation to finish before the next one arrived.
The problem appeared in production with orders that changed status quickly -for example, an order that got confirmed and moved to preparation almost at the same time because it already had stock reserved from before. The two corresponding Lambda invocations fired almost simultaneously, and in some cases the invocation for "in preparation" finished writing to the database before the one for "confirmed", because each invocation's execution time varies with cold starts and current load. The result was an order marked as "confirmed" in the inventory system while the orders service already showed it as "in preparation" -an inconsistency nobody noticed until the support team reported orders with contradictory statuses across two dashboards.
The fix was to introduce a SQS FIFO queue between the EventBridge rule and the Lambda function, grouping messages by orderId as the MessageGroupId. That changed nothing about how the orders service publishes its events: it still publishes to EventBridge exactly as before. What changed was the rule's target, which now drops messages into the FIFO queue instead of invoking the Lambda function directly, and it is the queue that delivers messages for a given order in the order they were published, so two status changes for the same order never get processed in parallel. The lesson was not "EventBridge is broken"; it was that an event bus solves the problem of decoupling producers from consumers, but not the problem of ordering, and treating both problems as the same one is what caused the inconsistency.
What we check before signing off on an EventBridge integration
Before approving a design built on EventBridge, we identify whether the consumer needs to process events for the same resource in the order they occurred, or whether it is fine reacting to each event independently, regardless of its order relative to other events of the same type. If order matters, the rule routes to a SQS FIFO queue grouped by the resource identifier, or the whole flow is modeled in Step Functions -never straight to a target that processes events in parallel. We also check that rule patterns are as specific as possible -filtering on the detail fields that actually matter- so each consumer receives only what it needs to process, instead of receiving everything and discarding most of it inside its own code.