Coder Social home page Coder Social logo

Comments (9)

cmeiklejohn avatar cmeiklejohn commented on June 8, 2024

What are the downsides of hash_ring? I don't know much about it.

from erleans.

tsloughter avatar tsloughter commented on June 8, 2024

I actually don't know that there is a downside. But that is because I know little about it. There doesn't seem to be much use of it by others, and no one had suggested it to me, I simply found it when searching hex.pm for libs.

So on further review it may be fine. And assuming it is still a decent solution to have each node seperately react to cluster changes (currently through net_kernel but going to change that to using the partisan event handler) and calculate the new hash ring independently then we may simply stick to this.

from erleans.

cmeiklejohn avatar cmeiklejohn commented on June 8, 2024

I'm a bit scared just picking libraries off of GitHub/Hex without investigation. When we picked up zraft_lib we ran into problems of linearization violations, which, is problematic for a consensus protocol. So, I'd highly recommend, if we decide to use the library, that we perform due diligence.

from erleans.

tsloughter avatar tsloughter commented on June 8, 2024

Yup, agreed.

from erleans.

evanmcc avatar evanmcc commented on June 8, 2024

There's also https://github.com/ferd/lrw, which I don't know if it's done a lot of real-world work, we at least know the author.

from erleans.

ferd avatar ferd commented on June 8, 2024

That's running session affinity at heroku so at least it's seen consistent load for a couple of years.

from erleans.

evanmcc avatar evanmcc commented on June 8, 2024

sorry, Fred, I forgot about that one.

from erleans.

tsloughter avatar tsloughter commented on June 8, 2024

I don't think lrw will work for how I'd like this to work. It doesn't currently do this but since streams and reminders are persisted to storage we can include a "vnode" field to index on. Then when the distribution of vnodes changes each node simply has to fetch all streams/reminders from storage with vnode=x,y,z...

from erleans.

tsloughter avatar tsloughter commented on June 8, 2024

One @Licenser had pointed me to is https://github.com/darach/jch-erl if anyone has any opinion on it.

from erleans.

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.