# Event-driven messaging on AWS, Google Cloud and Azure

> How EventBridge, Pub/Sub, Eventarc, Event Grid and Service Bus differ in ordering, replay, filtering and dead-letter handling, and what to revisit when moving a design between clouds.

- Canonical: https://www.alpacamango.com/docs/event-driven-messaging-aws-google-cloud-azure
- Author: Commander Vanta
- Published: 2026-11-22 · Updated: 2026-11-21
- Topics: AWS, Event-driven, Architecture

**Before a design moves between AWS, Google Cloud and Azure, check four properties, not product names: who guarantees order, where replay lives, what a filter can see, and where dead letters land. Each cloud has a broker (SQS and SNS, Pub/Sub, Service Bus) and a router (EventBridge, Eventarc, Event Grid). Ordering depends on the mode and the key. Replay is the feature most likely to change the design: AWS can retain history in a bus or SNS FIFO archive, Pub/Sub offers topic and subscription retention, and Azure uses Event Hubs for historical replay.**

## Two layers on every cloud

A broker holds messages until a consumer settles them: SQS queues (with SNS topics for fan-out) on AWS, Pub/Sub on Google Cloud, Service Bus queues and topics on Azure. A router matches events against rules and pushes them to targets: EventBridge, Eventarc and Event Grid. Most designs use both, a router at the edge of a domain and a broker in front of each consumer, so map layer to layer; the differences are inside the layers.

## Ordering: check the key and the delivery mode

All three brokers order within a key and nowhere else. SQS FIFO and SNS FIFO order by message group ID. Pub/Sub orders by ordering key, but only on a subscription created with ordering switched on, a setting you cannot change later. Publishers for a key must publish in the same region, and publishing throughput is limited to 1 MB per second per key. Service Bus orders within a session, and a session-enabled queue does not accept a message without a session ID.

EventBridge Classic, Eventarc Advanced and Event Grid Basic do not promise ordered delivery. The newer EventBridge Custom event bus offers FIFO subscribers that preserve order within a publisher’s event group. The porting trap is a design that relied on order by accident because traffic was low. If order matters, choose the key deliberately. A customer ID that maps to a message group maps cleanly to an ordering key or a session ID.

## Replay: the property that does not travel

On AWS, replay can live where events enter. An EventBridge Classic archive keeps matching events, indefinitely by default, and a replay sends a time window back to the same bus with a `replay-name` field added, in an order that is not guaranteed. SNS FIFO topics can archive for up to 365 days and replay to a single subscription. A plain SQS queue cannot replay: a deleted message is gone.

On Google Cloud, seek operates on a subscription. Retain acknowledged messages to replay that subscription, or take a snapshot before a risky deploy. Enable topic retention if new subscriptions should also be able to seek into history published before they were created.

On Azure, neither Service Bus nor Event Grid replays a message once it has been settled. If replay is a requirement, the Azure answer is a different service, Event Hubs, which is a log read from an offset. A design that leans on EventBridge archives is the one most likely to need rework on Azure.

## Filtering: what the rule can see

- EventBridge Classic patterns can test nested JSON fields within the event, including `detail`.
- **SNS** filter policies match attributes by default, or the body with a scope setting.
- **Pub/Sub** subscription filters see attributes only, never the data, and a filter cannot be edited once the subscription exists.
- **Service Bus** subscription rules use SQL-like or correlation filters over message properties, and can stamp extra properties on what they select.
- Eventarc Advanced filters on CloudEvents context and extension attributes, while Event Grid Basic can also test nested fields in the `data` payload.

For rules you need to port across all three clouds, put the routing fields in event attributes at publish time. EventBridge and Event Grid support payload predicates, but wiring the same rule through Pub/Sub or Eventarc Advanced may require precomputing an attribute or filtering in code.

```json
{ "source": ["orders"], "detail": { "region": ["eu"], "total": [{ "numeric": [">", 500] }] } }
```

```text
attributes.source = "orders" AND attributes.region = "eu"
```

The first is an EventBridge pattern reading the body; the second is the nearest Pub/Sub filter. The numeric test on `total` has no equivalent there, so it moves into the consumer or becomes a precomputed attribute.

## Dead letters: a queue, a topic, or a blob

Where failures land decides how you redrive them. SQS moves a message to its dead-letter queue after a receive count you set, and can move it back. EventBridge Classic can send failed deliveries per target to a configured standard SQS queue. Pub/Sub forwards to a dead-letter topic after 5 to 100 attempts, on a best-effort count, and only once its service account has publish and subscribe rights. Service Bus gives every queue and subscription a built-in dead-letter subqueue, triggered after ten deliveries by default. Event Grid Basic writes undeliverable events to a Blob Storage container, after 30 attempts or 24 hours by default, and drops them if you never configured one. A blob is not a queue: redrive from it is code you write.

Duplicates are possible across these pipelines, so build [idempotent consumers](/docs/idempotent-consumers-sqs-lambda) whatever the cloud. For choosing among the AWS pieces in the first place, see [event-driven architecture on AWS](/docs/event-driven-architecture-on-aws), and for ordering's cousin, [priority queues on AWS](/docs/priority-queues-on-aws).

## The diagram

Three columns, one per cloud, each with its router above its broker, and notes comparing each cloud’s ordering key and replay mechanism. [Open it in archhy](https://archhy.com/d/LzderRcwxhZC?utm_source=alpacamango) and make a copy to map your own design across.

Reference documentation: [EventBridge Custom event bus ordering](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-custom-bus-ordering.html), [Classic event bus archives](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-archive.html), [Pub/Sub ordering](https://docs.cloud.google.com/pubsub/docs/ordering), [Pub/Sub replay and topic retention](https://docs.cloud.google.com/pubsub/docs/replay-overview), [Eventarc Advanced filters](https://docs.cloud.google.com/eventarc/advanced/docs/receive-events/use-cel), [Event Grid Basic filtering](https://learn.microsoft.com/en-us/azure/event-grid/event-filtering), [Event Grid Basic delivery](https://learn.microsoft.com/en-us/azure/event-grid/delivery-and-retry), [Service Bus sessions](https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-sessions).
