Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable envelope formatting (Integration, standardization, interop) #7072

Open
ramonsmits opened this issue Jun 18, 2024 · 0 comments
Open

Comments

@ramonsmits
Copy link
Member

Describe the feature.

At the moment all transports use a fixed hardcoded formatting/mapping from the TransportOperation from/to the native message type.

It uses the native headers with the serialized message as the body when that is available. Otherwise it will use a transport specific envelope that sometimes can even result in non optimal double serialization. (Serialize the message, serialize it again in the envelope)

Having the ability to configure different envelopes would writing interop between different platforms easier.

By default we could stick with the NServiceBusEnvelopeFormatter for maximum backwards compatibility but we would have additional converters like one that is compatible with the default MassTransit format (headers and body in the native body payload) or with CloudEvents .

By having an API on each transport customers could create custom formatters for niche integrations.

A huge benefit for customers is that they get the benefits of influencing the low-level wire format on the transport but also still benefit from the regular message processing pipeline for handling messaging.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant