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

refactor: make message property setters fallible #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rvolosatovs
Copy link
Contributor

@rvolosatovs rvolosatovs commented Dec 5, 2024

Support for content-type and metadata/headers across different message queues and services is not uniform. For example, RabbitMQ has built-in support for content-type, but NATS.io does not.

Make setters of these properties on the message resource fallible to account for this difference.

Note, that this is only a partial solution to the bigger issue: What's the correct behavior on the host's part when content-type and/or metadata is set in the guest message, but not supported by the underlying implementation? (#30)

Support for `content-type` and metadata/headers across different message
queues and services is not uniform. For example, RabbitMQ has built-in
support for `content-type`, but NATS.io does not.

Make setters of these properties on the message resource fallible to
account for this difference.

Note, that this is only a partial solution to the bigger issue:
What's the correct behavior on the host's part when content-type and/or
metadata is set in the guest message, but not supported by the
underlying implementation?

Signed-off-by: Roman Volosatovs <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant