Messaging & Async
Event-driven architecture with publishers and subscribers decoupled via topics
Publishers emit events to topics; subscribers consume independently. Enables fan-out, selective subscriptions, and loose coupling across services.
When multiple services react to the same event, or you want to decouple producers from diverse consumers.
Domain events across microservices and near-real-time pipelines.
# Pub/Sub sketch
topic.publish(event)
sub1.on(event)
sub2.on(event)
Topic-based pub/sub with consumer groups
Thousands of topics, millions TPSGlobal pub/sub with push/pull
Global multi-region serviceFan-out to SQS, Lambda, HTTP
Massive event fan-outHigh - Partitioned topics
Medium - Contracts and lag mgmt
Low to Medium - Broker/service fees