Topics, publishing, and subscriptions
An SNS topic gives publishers one destination and distributes messages to subscribed endpoints. Subscribers can include queues, functions, or other supported transports. Publishing does not mean every consumer has finished its work. Subscription confirmation, endpoint policies, and delivery permissions determine whether the intended receiver actually accepts the message. For example, an order-created topic fans out to an inventory queue and an audit queue; the producer does not know each worker’s address.
An order-created topic fans out to an inventory queue and an audit queue; the producer does not know each worker’s address.
A catalog service announces that a product changed. It publishes once to an SNS topic rather than individually calling search, analytics, and cache services. SNS evaluates the topic's subscriptions and attempts delivery through their respective protocols. Each receiver then handles its own processing; a successful publish response does not mean every index or cache has finished updating.
A publisher produces notifications. A topic is their shared distribution destination. A subscription connects that destination to an endpoint. Some endpoint types require confirmation, and permissions can prevent delivery even when the subscription exists. Start diagnosis by checking accepted publication, subscription confirmation where required, endpoint authorization, then receiver behavior. Fan-out improves independence, but creates eventual consistency: search and cache may update at different times. Include an event identifier and schema version so consumers can diagnose duplication or incompatible messages without forcing the publisher to know each consumer's internal implementation.
Fan-out reduces producer coupling and lets independent consumers evolve without rewriting the order service whenever another team needs the same business event.
Assuming a successfully accepted publish proves every subscriber processed the message hides unconfirmed subscriptions, denied queue delivery, and downstream worker failures or backlogs.