8.15. 发送批处理消息和消息重复数据删除策略
如果使用 SendBatchMessage
Operation,您可以设置两种不同类型的消息重复数据删除策略: - useExchangeId - useContentBasedDeduplication
第一个将使用 ExchangeIdMessageDeduplicationIdStrategy
,它将使用 Exchange ID 作为参数。其他地址将使用 NullMessageDeduplicationIdStrategy
,它将使用正文作为 deduplication 元素。
如果是发送批处理消息操作,您需要使用 useContentBasedDeduplication
,并在 Queue 上指向您需要 启用基于内容的 deduplication
选项。