Skip to content

Commit 9f2ddcf

Browse files
Update duplicate-detection.md to
Batching and deduplication should not be used in conjunction on a partitioned namespace
1 parent 08aed6b commit 9f2ddcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

articles/service-bus-messaging/duplicate-detection.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The `MessageId` can always be some GUID, but anchoring the identifier to the bus
2929
>- When **partitioning** is **enabled**, `MessageId+PartitionKey` is used to determine uniqueness. When sessions are enabled, partition key and session ID must be the same.
3030
>- When **partitioning** is **disabled** (default), only `MessageId` is used to determine uniqueness.
3131
>- For information about `SessionId`, `PartitionKey`, and `MessageId`, see [Use of partition keys](service-bus-partitioning.md#use-of-partition-keys).
32+
>- When using **partitioning**, ensure that the batch of messages being sent does not contain any partition identifying properties. Since deduplication relies on explicitly setting message IDs to determine uniqueness, it is not recommended to use deduplication and batching together on partitioned namespaces.
3233
3334
> [!NOTE]
3435
> Scheduled messages are included in duplicate detection. Therefore, if you send a scheduled message and then send a duplicate non-scheduled message, the non-scheduled message gets dropped. Similarly, if you send a non-scheduled message and then a duplicate scheduled message, the scheduled message is dropped.

0 commit comments

Comments
 (0)