Giter VIP home page Giter VIP logo

hashring's People

Contributors

mkscrg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

greydot srijs silky

hashring's Issues

O(1) lookups

In the comments in the code you claim O(1) lookup performance. I don't believe this is correct or even possible.

In lookup, you're using IntMap.splitLookup. This is O(log n) which is what I'd expect given that it's a tree structure. But that would correspond to O(NR) if N is the number of nodes added.

Maybe I'm missing something, but I can't see how your lookups (or indeed any space-efficient implementation of CH) can be O(1).

hashable package is non-consistent across program runs

Hey Mike,

Just noticed your library while researching for a consistent hashing solution. Looks real nice!

I do have one question though - isn't it a problem that the hashable package does not promise to produce consistent values across program runs? Wouldn't this mean that 3 separate nodes looking at the same list of servers may find their messages in different nodes?

Cheers,
Oz

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.