Skip to content

Change proposal: add intent field to messages #9

Open

Description

@emergent-reasons

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions