![]() ![]() For high throughput entities that require duplicate detection, you should keep the window as small as possible. Keeping the window small means that fewer message-ids must be retained and matched, and throughput is impacted less. This value defaults to 10 minutes for queues and topics, with a minimum value of 20 seconds to maximum value of 7 days.Įnabling duplicate detection and the size of the window directly impact the queue (and topic) throughput, since all recorded message-ids must be matched against the newly submitted message identifier. For information about SessionId, PartitionKey, and MessageId, see Use of partition keys.Īpart from just enabling duplicate detection, you can also configure the size of the duplicate detection history time window during which message-ids are retained.When partitioning is disabled (default), only MessageId is used to determine uniqueness.When sessions are enabled, partition key and session ID must be the same. When partitioning is enabled, MessageId+PartitionKey is used to determine uniqueness. ![]() The MessageId can always be some GUID, but anchoring the identifier to the business process yields predictable repeatability, which is desired for using the duplicate detection feature effectively. No other parts of the message other than the MessageId are considered.Īpplication control of the identifier is essential, because only that allows the application to tie the MessageId to a business process context from which it can be predictably reconstructed when a failure occurs.įor a business process in which multiple messages are sent in the course of handling some application context, the MessageId may be a composite of the application-level context identifier, such as a purchase order number, and the subject of the message, for example, 12345.2017/payment. If any new message is sent with MessageId that was logged during the time window, the message is reported as accepted (the send operation succeeds), but the newly sent message is instantly ignored and dropped. How it worksĮnabling duplicate detection helps keep track of the application-controlled MessageId of all messages sent into a queue or topic during a specified time window. For differences between these tiers, see Service Bus pricing. The standard and premium tiers support duplicate detection. ![]() The basic tier of Service Bus doesn't support duplicate detection. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |