SALES: 1-800-867-1380

TopicDescription.EnablePartitioning Property

Gets or sets whether to enable the topic to be partitioned across multiple message brokers. An express topic holds a message in memory temporarily before writing it to persistent storage.

Namespace:  Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public bool EnablePartitioning { get; set; }

Property Value

Type: System.Boolean
true to enable the topic to be partitioned across multiple message brokers; otherwise, false.

A partitioned topic consists of multiple fragments, each processed by a different message broker and stored in a different messaging store. This allows the throughput of a single topic to exceed the maximum load a single message broker or messaging store can handle. At the same time, it allows the topic to remain available in case a messaging store becomes temporarily unavailable.

To enable partitioning for a topic, set the EnablePartitioning property to true. This value must be set at the time the topic is created. It is not possible to change this property on an existing topic.

Partitioned topics enforce a maximum message TimeToLive value of 30 days.

// Create partitioned topic.
NamespaceManager ns = NamespaceManager.CreateFromConnectionString(myConnectionString);
TopicDescription td = new TopicDescription(TopicName);
td.EnablePartitioning = true;
ns.CreateTopic(td);
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft