Skip to content

Native Message ID is not set based on NServiceBus.MessageId header causing incompatibility with native integrations #581

Description

@kbaley

This issue was transferred from a private repository

Users sometimes want to set the native message ID of the outgoing message for ASB which currently is initialized with a random guid. They are dealing with native integrations and do not want the receiver to be required using the NServiceBus.MessageId.

The comment in the code is:

// Cannot re-use MessageId to be compatible with ASB transport that could have native de-dup enabled

As the comment suggested, when native de-duplication is enabled, this causes problems, including message loss on second-level retries. ASB also provides access to the native message which users can use to promote it into the headers within a pipeline. However, for users that don't plan to ever use native de-deduplication, perhaps we can provide alternatives like a transport setting or a send option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions