ExitPublish-Subscribe Messaging: real-time subscriber delivery1 / 9
Explanation

Separate selection from delivery

How subscription-aware fan-out routes events to real-time clients while isolating slow or disconnected subscribers. · advanced

Subscription-aware fan-out first selects eligible recipients, then schedules an independent delivery for each. Here an application on Amazon ECS receives published events and queries a DynamoDB table for authorized topic-to-connection memberships. API Gateway supplies the WebSocket transport; it does not automatically maintain this application's topic subscriptions.

The diagram shows a deliberately explicit design for a small, stable set of durable subscribers: each has a separate SQS standard queue and Lambda delivery function. Those two cards represent repeated resources, not one shared competing-consumer queue. Publisher ingress, subscription registration, acknowledgments, and database responses are outside the drawn delivery path.

The selected services provide specific contracts. SQS supplies independently deleted work with visibility timeouts, DynamoDB supplies keyed membership records with conditional updates, and API Gateway supplies callbacks addressed by connection ID. The alternatives below do not supply those same contracts.

RoleSelected contractNot interchangeable
Membership indexDynamoDB keyed, conditional updatesS3 objects; Kinesis stream records
Delivery bufferSQS visibility and deletionSNS push; EventBridge rule delivery
Connection transportAPI Gateway connection-ID callbacksALB and CloudFront proxy connections
membership querymatched deliveryqueued eventconnection callbackWebSocket frame
Amazon Elastic Container Service (Amazon ECS)Application subscription router
Amazon DynamoDB tableAuthorized topic-to-connection memberships
Amazon Simple Queue Service (Amazon SQS)Separate standard queue per durable subscriber
AWS LambdaSeparate delivery function per subscriber
Amazon API GatewayWebSocket API and connection callbacks
UsersConnected real-time subscribers

1 / 6 The ECS application accepts an event carrying a tenant, topic, and event ID. Its router owns recipient selection rather than sending blindly to every connected session.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.