What are Sessions and Partitions on Azure Service Bus

  Рет қаралды 5,308

Ciaran O'Donnell

Ciaran O'Donnell

Күн бұрын

Пікірлер: 12
@xanmichaels
@xanmichaels 2 жыл бұрын
Thank you so much for the explanation. i like your multi-road analogy
@ciaranod1981
@ciaranod1981 2 жыл бұрын
Thank you
@rama5453
@rama5453 3 жыл бұрын
It's nice tutorial I ever seen
@ciaranod1981
@ciaranod1981 3 жыл бұрын
Thanks
@Bizmonger
@Bizmonger 2 жыл бұрын
This was really good.
@ciaranod1981
@ciaranod1981 2 жыл бұрын
Thank you Scott
@tamilstudent1
@tamilstudent1 2 жыл бұрын
If partitioned entities does the job of processing data without loss, why do we have normal queueus? Is it because partitioned Queues are cost expensive? Is that the only reason? Because i was surprised why we choose normal queueus when we have messaging unit failure condition. Also question 2: if my partition key is 1, and if the first messaging unit fails, will the messaging unit 2 safely handle my message with partition key 1? Pls clarify.
@ciaranod1981
@ciaranod1981 2 жыл бұрын
Partitioning is great for when the partition key represents some inherent separation of your messages that they can be processed in a different stream /parallelly. Some message uses won't have that ability. The messages will need to be consumed in produced order across the whole set. Order updates can be processed in parallel with the order ID as the partition key. That's normally fine. However placing the actual order might not be able to if they are for a finite highly contested resource, like concert tickets. I might want to ensure the order submissions happen in first come first served order. Regarding your second question, if a messaging unit fails under your partitioned queue, sends to that partition fail until it recovers.
@thomasbeltrami2629
@thomasbeltrami2629 2 жыл бұрын
​@@ciaranod1981 So partitioning is sufficient if I want to ensure the ordering of a group of messages sharing the same PartitionID and I do not need to use sessions, is it right? Also, if partitioning is sufficient, can I use multiple receivers to process messages from different partitions in parallel ensuring the ordering of messages within each partition?
@ciaranod1981
@ciaranod1981 2 жыл бұрын
You would use a non-partitioned queue when you don't want to continue processing messages during a partial failure. If there is a global ordering concern or its important to service things on a first come first served basis.
@ciaranod1981
@ciaranod1981 2 жыл бұрын
@@thomasbeltrami2629 partitioning is about availability. Multiple subscribers to a queue/subscription that is partitioned will be competing consumers on the queue still. So you can have out of order processing because they're all racing to consume. Sessions means each message in a session goes to a single consumer. This means there is no race and you will get in order processing. It will also mean in memory cached data will be useful as you know you'll be hitting the same process every time.
@StevenMa-ev3oo
@StevenMa-ev3oo Жыл бұрын
I think enabling session is for each subscription, not for the entire topic
Topics And Subscriptions
6:59
Ciaran O'Donnell
Рет қаралды 2,9 М.
Azure Service Bus Queue vs  Topic EXPLAINED
12:31
Codewrinkles
Рет қаралды 2,2 М.
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 149 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 20 МЛН
Azure Messaging Standards Matter (Azure & AI Conference 2022)
58:27
Azure Messaging & Stream Processing - "Subscribe!"
Рет қаралды 5 М.
MassTransit - Azure Service Bus Saga Sessions and Scheduler
8:41
Chris Patterson
Рет қаралды 3,3 М.
Reliable Messaging
7:30
Ciaran O'Donnell
Рет қаралды 1,6 М.
Azure Service Bus Topics and Queues
11:55
Atmosera
Рет қаралды 13 М.
Message Sessions on Service Bus
20:21
Ciaran O'Donnell
Рет қаралды 4,1 М.
Azure Service Bus Deep Dive (Azure & AI Conference 2022)
1:02:20
Azure Messaging & Stream Processing - "Subscribe!"
Рет қаралды 16 М.
Скучнее iPhone еще не было!
10:48
itpedia
Рет қаралды 616 М.
Breaking Leptop in Every Possible Way! 💻💔" #shorts
0:52
Light Movies
Рет қаралды 2 МЛН