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

Change proposal: add intent field to messages #9

Open
emergent-reasons opened this issue Apr 18, 2019 · 0 comments
Open

Change proposal: add intent field to messages #9

emergent-reasons opened this issue Apr 18, 2019 · 0 comments

Comments

@emergent-reasons
Copy link
Collaborator

This came from @alwaysAn0n . Currently clients need to infer quite a lot about each message and it seems to add unnecessary complexity to the client.

As long as the shuffle procedure is narrow and well-characterized, would it make sense to signal the intent of each message?

For example the registration message has a clear format and intent that makes it easy for the server to identify and work with explicitly.

The counter argument is that a non-generic structure will be harder to extend. However if there is just an intent field, that could be extended for different message types. In other words, each message that a client needs to send could have a specific enum attached to it. If the protocol changes or grows, old message types can be deprecated and new ones added.

Comments from someone with experience extending and growing APIs/protobuf protocols would be helpful here.

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