gossip icon indicating copy to clipboard operation
gossip copied to clipboard

Gossip custom message data

Open edwardcapriolo opened this issue 9 years ago • 7 comments

We can add a field to the message format that can be used to gossip custom data. We can have an extra field that can be a hashmap. Users can serialize anything into the map.

edwardcapriolo avatar Mar 14 '15 19:03 edwardcapriolo

This is will be a good idea. Similar Akka is doing this.

hvandenb avatar Dec 06 '15 23:12 hvandenb

Yes thinking through this though I am not sure if the gossiper is the right place to exchange data. Where does the gossiper and the database/service using the gossiper begin?

edwardcapriolo avatar Dec 06 '15 23:12 edwardcapriolo

Agreed that gossip is not the right protocol to exchange data. This would put additional constraints on the protocol to deal with things like consistency etc. However, there might be a good to provide additional node meta data that a client wants to exchange.

Akka adds version to do some optimization for determining newer nodes. https://gist.github.com/jboner/7692270

hvandenb avatar Dec 07 '15 00:12 hvandenb

One of the reasons I found/put together this library was I was building my own no-sql https://github.com/edwardcapriolo/nibiru. So I was thinking the place to do things like this would be in there but I am not against implementing it here.

edwardcapriolo avatar Dec 07 '15 00:12 edwardcapriolo

Are you thinking about continuing this library, i.e. gossip?

hvandenb avatar Dec 07 '15 00:12 hvandenb

Yes. We can go on with the library. But I think a eventually consistent CRDT structure is something closer to a NoSQL database than a gossip library.

edwardcapriolo avatar Dec 07 '15 00:12 edwardcapriolo

for sure and that would not make sense to add to this library.

hvandenb avatar Dec 07 '15 04:12 hvandenb