Skip to content

Align publish, request, and response multipart components#33

Closed
klanclos wants to merge 22 commits intomainfrom
align_pub
Closed

Align publish, request, and response multipart components#33
klanclos wants to merge 22 commits intomainfrom
align_pub

Conversation

@klanclos
Copy link
Copy Markdown
Contributor

@klanclos klanclos commented Mar 27, 2026

This pull request modifies the on-the-wire ordering of the multipart message components such that all requests, responses, and publications are using exactly the same structure. As part of this change, reconstruction of messages from multipart tuples is now handled in a single method rather than in multiple places in the code base.

The main change to highlight is the elimination of the special message.Broadcast class. This required some broadening of the base message.Message class; it was further broadened when message.from_parts() was established to provide a single point-of-entry to translate any multipart message back into a message.Message instance.

The Message._finalize() method shows the key change for the ordering, where the target/topic field is now first among multiparts in order for the PUB/SUB case to continue working as expected.

Copy link
Copy Markdown

@mattkbrown mattkbrown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The merging of the two message types into one makes sense. it will be interesting to see how this affects transfer times, but I don't think it will be noticeable.

@mattkbrown
Copy link
Copy Markdown

Closing this PR as consensus is that they should remain separate. Kyle will take the message changes he likes and create a new PR for it.

@mattkbrown mattkbrown closed this Apr 1, 2026
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.

2 participants