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

sub-protocols #8

Open
ghost opened this issue Mar 14, 2022 · 0 comments
Open

sub-protocols #8

ghost opened this issue Mar 14, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 14, 2022

There is already some interest in using cable for non-cabal chat purposes as well as questions about how to layer other features such as sharing files on top of cabal with cable. This could be done by adding more message types, but that would require more coordination (each protocol needs to reserve message type varints for each of its message types) and integration than allowing for sub-protocols where each sub-protocol only needs to reserve a single sub-protocol varint. Using sub-protocols would also let cable focus more on low-level concerns such as routing and cryptography while more application-specific tasks such as text chat can be versioned separately. This is already somewhat the case with the post vs message parts of the cable spec, but using sub-protocols would also move the query logic into a separate realm from the networking and hash/data delivery parts of the protocol.

work-in-progress branch for sub-protocol refactoring: https://github.com/cabal-club/cable/tree/protocol

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

0 participants