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

Pub/Sub broker on top of Scuttlebutt #31

Open
mcollina opened this issue Dec 18, 2013 · 2 comments
Open

Pub/Sub broker on top of Scuttlebutt #31

mcollina opened this issue Dec 18, 2013 · 2 comments

Comments

@mcollina
Copy link

I'm thinking about building a distributed pub/sub broker on top of scuttlebutt.
Do you think it's a silly idea or it's feasible?
Have you got some gut feeling about the performance of such a system?

Another question: it is possible to have sublevel-style gossiping? E.g. limiting the sharing only to a subpart of a model.

@dominictarr
Copy link
Owner

Yes, I think that is a pretty good idea!
The weakness of the scuttlebutt protocol is that you need to do the handshake for each part your replicate. This means that on every subscribe you'd need to send a vector clock for the stuff you already know in that section.

You probably could do something like that, but you'd need to rebuild the vector clock for the subsection /foo/bar that only contained the updates in bar.

This would only be a problem if you where subscribed to /foo/bar and then later decided to subscribe to /foo/* although bar is within that set, a node may have sent an update to bar but also to baz.

@dominictarr
Copy link
Owner

I think that should be the only edgecase, though.

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

2 participants