Code Monkey home page Code Monkey logo

Comments (3)

netcomm avatar netcomm commented on May 26, 2024

thanks for the quick reply.I still have some question, I detail described:
for example there have two nodes: node_a, node_b;
#1 if node_a Update some value(say gCounter_a) on time1, the value's digest is updated;
#2 node_a generate a GossipTick on time2, then send 'Status' msg to node_b;
#3 node_b corresponding value's(gCounter_a) digest is old, then node_b in the 'isOtherOutdated' function case 'Some(digest) if digest != otherDigest ⇒ true', and then send it's current "older" gCounter_a back to node_a in a 'Gossip' msg.
#4 node_a recieve 'Gossip' msg and do something ... ...
maybe in this position node_b just send nothing to node_a, or get 'Gossip' msg from node_a?
if i lose something,please point out, thanks all!

from akka-data-replication.

patriknw avatar patriknw commented on May 26, 2024

Thanks for clarification. Your understanding is correct. When node_a receives the gossip msg in #4 it will merge with local value and the local value will win (as it is newer). Nothing is sent back to node_b at that point.

The new value will be spread when some other node (e.g. node_b) sends status to node_a.

It would be possible to send back when receiving gossip message. That would speed up dissemination, at the cost of sending more data. I will consider doing that.

I don't want to add causality information in the status message, because that means version vectors and that takes up a lot more space than a digest.

Thanks for feedback.

from akka-data-replication.

patriknw avatar patriknw commented on May 26, 2024

Fixed this in #30, including sending back gossip message

from akka-data-replication.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.