An order service publishes each order once to Azure Service Bus. A fraud-scoring model service and a recommendation service must each receive every order, and either one can be offline for an hour without losing orders. When a third consumer is added later, the order service must not change. What should the developer create?
Choose one.
Topics and subscriptions are Service Bus publish/subscribe: every subscription gets a copy of each message.
A queue gives each message to one receiver. A topic forwards every message to each of its subscriptions, which behave like independent queues, so each service keeps its own backlog while offline. New consumers only need a new subscription, so the publisher is unchanged. Sending to several queues works only until a new consumer arrives, and sessions are about ordering, not fan-out.
- Every consumer needs every message, so this is publish/subscribe.
- Each consumer must buffer while offline, which a subscription does.
- Adding consumers without touching the sender rules out sender-side fan-out.
Exam tip: One receiver per message: queue. Every consumer gets a copy: topic plus one subscription per consumer.
AI-200 Service Bus and Event Grid: Messaging and Event-Driven AI Solutions — the lesson that teaches this.