Partitioned Queues/Topics
Without partitions, a queue or topic is handled by a single message broker and stored in a single messaging store, which can constrain performance. By using partitions, a Queue or Topic can be spread across multiple brokers and stores, thereby providing a higher throughput rate than a single message broker and store. These partitions contain all the features of a non-partitioned Queue or Topic, such as transactions and sessions.
When messages arrive at the Queue or Topic, they are distributed in a round-robin fashion to all the fragments of a partitioned Queue or Topic if no partition key has been defined.
To control which fragment receives what message, the properties SessionId
, PartitionKey
, and MessageId
may be used as partition keys. All messages received using the same partition key will be processed by that specific fragment. If that fragment is temporarily unavailable, an error will be returned.
When a client reads a message from a partitioned queue or topic...