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

Message Serializations (2) #30

Closed
wants to merge 4 commits into from
Closed

Conversation

Steveb-p
Copy link

@Steveb-p Steveb-p commented Oct 26, 2019

This PR adjusts the original PR since it stopped being updated after reviews.

For myself, I've taken the liberty and removed StringBodyOnlyTrait since it's debatable whether it should be part of queue-interop or not. I do think it can be safely discussed in another PR if needed.

Second, I've removed default value for $body argument, since from my point of view it hardly makes any sense to use empty messages.

ref #27

Fixes #27
Supersedes #28

@makasim
Copy link
Member

makasim commented Jan 27, 2020

That change would break the interoperability spirit. Since the body strcture\format would be bound to the implementation. In other words, you could not be able to change one transport to another and hope it still works.

Honestly, I don't see a good (simple enough) solution to the problem.

Feel free to move it forward though If you think that the right move. I do not want to be a blocker here.

That's up to you to decide.

@Steveb-p
Copy link
Author

Steveb-p commented Jan 27, 2020

That change would break the interoperability spirit. Since the body strcture\format would be bound to the implementation. In other words, you could not be able to change one transport to another and hope it still works.

Once you put it this way, I understand and agree for the most part.

@Steveb-p Steveb-p closed this Jan 27, 2020
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.

Why message body is of type string?
3 participants