userSteve
userSteve

Reputation: 1644

Should I use Azure Topics over Queues?

I understand that Topics have the additional features of subscriptions and filters which Queues do not. In which case, when would I absolutely need to use a queue over a topic?

For consistency, could I use a topics everywhere including as a replacement for queues?

Upvotes: 3

Views: 3458

Answers (1)

Sean Feldman
Sean Feldman

Reputation: 25994

A topic is not a replacement for a queue. The combination of a topic and a subscription is. A topic is allowing to “replicate” the same message to multiple subscriptions. A subscription what actually holds messages. A subscription is identical to a queue in its attributes and behaviour. You could replace a queue with a topic+subscription combo if you’d like, generating 2 entities per use case instead of a single queue. Just keep in mind there’s a finite number of entities per namespace.

Upvotes: 2

Related Questions