Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 709
userSteve Avatar asked Nov 04 '25 10:11

userSteve


1 Answers

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.

like image 145
Sean Feldman Avatar answered Nov 07 '25 14:11

Sean Feldman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!