{"id":3495335,"name":"github.com/toolkits/consistent","ecosystem":"go","description":"Package consistent provides a consistent hashing function.\n\nConsistent hashing is often used to distribute requests to a changing set of servers.  For example,\nsay you have some cache servers cacheA, cacheB, and cacheC.  You want to decide which cache server\nto use to look up information on a user.\n\nYou could use a typical hash table and hash the user id\nto one of cacheA, cacheB, or cacheC.  But with a typical hash table, if you add or remove a server,\nalmost all keys will get remapped to different results, which basically could bring your service\nto a grinding halt while the caches get rebuilt.\n\nWith a consistent hash, adding or removing a server drastically reduces the number of keys that\nget remapped.\n\nRead more about consistent hashing on wikipedia:  http://en.wikipedia.org/wiki/Consistent_hashing","homepage":"https://github.com/toolkits/consistent","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/toolkits/consistent","keywords_array":[],"namespace":"github.com/toolkits","versions_count":1,"first_release_published_at":"2015-08-27T09:08:50.000Z","latest_release_published_at":"2015-08-27T09:08:50.000Z","latest_release_number":"v0.0.0-20150827090850-a6f56a64d1b1","last_synced_at":"2026-03-17T16:35:45.823Z","created_at":"2022-04-10T19:33:09.976Z","updated_at":"2026-03-17T16:35:45.823Z","registry_url":"https://pkg.go.dev/github.com/toolkits/consistent","install_command":"go get github.com/toolkits/consistent","documentation_url":"https://pkg.go.dev/github.com/toolkits/consistent#section-documentation","metadata":{},"repo_metadata":{"uuid":"35155883","full_name":"toolkits/consistent","owner":"toolkits","description":"Consistent hash package for Go.","archived":false,"fork":true,"pushed_at":"2015-08-27T09:10:08.000Z","size":115,"stargazers_count":8,"open_issues_count":0,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-02-26T23:36:04.671Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"stathat/consistent","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T12:01:47.000Z","updated_at":"2022-09-19T06:37:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/toolkits/consistent","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolkits%2Fconsistent","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolkits%2Fconsistent/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toolkits%2Fconsistent/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toolkits","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2023-03-21T18:38:33.209Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":5,"rankings":{"downloads":null,"dependent_repos_count":2.267014417592579,"dependent_packages_count":9.575613212525063,"stargazers_count":10.622383701939263,"forks_count":6.635644111661097,"docker_downloads_count":2.2691250445995585,"average":6.273956097663512},"purl":"pkg:golang/github.com/toolkits/consistent","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/toolkits/consistent","docker_dependents_count":2,"docker_downloads_count":7,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/toolkits/consistent","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/toolkits/consistent/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-29T00:46:39.052Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftoolkits%2Fconsistent/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftoolkits%2Fconsistent/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftoolkits%2Fconsistent/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftoolkits%2Fconsistent/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Ftoolkits%2Fconsistent/codemeta","maintainers":[]}