An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.0% on proxy.golang.org
Top 0.3% dependent packages on proxy.golang.org
Top 0.4% dependent repos on proxy.golang.org
Top 2.1% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/stathat/consistent

Package consistent provides a consistent hashing function. Consistent hashing is often used to distribute requests to a changing set of servers. For example, say you have some cache servers cacheA, cacheB, and cacheC. You want to decide which cache server to use to look up information on a user. You could use a typical hash table and hash the user id to one of cacheA, cacheB, or cacheC. But with a typical hash table, if you add or remove a server, almost all keys will get remapped to different results, which basically could bring your service to a grinding halt while the caches get rebuilt. With a consistent hash, adding or removing a server drastically reduces the number of keys that get remapped. Read more about consistent hashing on wikipedia: http://en.wikipedia.org/wiki/Consistent_hashing

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/stathat/consistent
License: MIT
Latest release: almost 8 years ago
First release: almost 8 years ago
Namespace: github.com/stathat
Dependent packages: 198
Dependent repositories: 279
Stars: 913 on GitHub
Forks: 178 on GitHub
Docker dependents: 63
Docker downloads: 99,747,830
See more repository details: repos.ecosyste.ms
Last synced: about 9 hours ago

    Loading...
    Readme
    Loading...