NServiceBus
NServiceBus copied to clipboard
When using additional serializers, Reply using the incoming message serialization format
Describe the suggested improvement
Is your improvement related to a problem? Please describe.
When using multiple serialization formats in a system, for example, when migrating a system to a new serialization format, the endpoint might get upgraded to use serializers A and B. It receives a message from another endpoint still configured to use only B. If the receiving endpoint replies, the reply message will be serialized using A, and it'll not be deserializable for the endpoint not yet upgraded to use multiple serialization formats.
Describe the suggested solution
Reply using the incoming message serialization format instead of the default one.
Describe alternatives you've considered
Stopping the system and upgrading all endpoints simultaneously to use more than one serializer.
Additional Context
No response