{"id":22683237,"url":"https://github.com/mtchavez/jumpconshash","last_synced_at":"2025-03-29T14:27:55.425Z","repository":{"id":22754565,"uuid":"26100074","full_name":"mtchavez/jumpconshash","owner":"mtchavez","description":"Jump Consistent Hash in Go","archived":false,"fork":false,"pushed_at":"2019-04-13T19:26:31.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T15:32:32.100Z","etag":null,"topics":["go","hashes","jump-consistent-hash"],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/mtchavez/jumpconshash","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtchavez.png","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":"2014-11-03T02:04:18.000Z","updated_at":"2019-04-13T19:26:30.000Z","dependencies_parsed_at":"2022-07-27T03:32:13.764Z","dependency_job_id":null,"html_url":"https://github.com/mtchavez/jumpconshash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fjumpconshash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fjumpconshash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fjumpconshash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtchavez%2Fjumpconshash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtchavez","download_url":"https://codeload.github.com/mtchavez/jumpconshash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246195615,"owners_count":20738908,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","hashes","jump-consistent-hash"],"created_at":"2024-12-09T21:11:20.931Z","updated_at":"2025-03-29T14:27:55.386Z","avatar_url":"https://github.com/mtchavez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jump Consistent Hash\n\n[![Build Status](https://travis-ci.org/mtchavez/jumpconshash.svg)](https://travis-ci.org/mtchavez/jumpconshash)\n[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mtchavez/jumpconshash)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mtchavez/jumpconshash)](https://goreportcard.com/report/github.com/mtchavez/jumpconshash)\n[![Maintainability](https://api.codeclimate.com/v1/badges/6934d64e8d7f8b85bf47/maintainability)](https://codeclimate.com/github/mtchavez/jumpconshash/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/6934d64e8d7f8b85bf47/test_coverage)](https://codeclimate.com/github/mtchavez/jumpconshash/test_coverage)\n\nJump consistent hash implementation in Go.\n\n## Background\n\nBased on [this whitepaper](http://www.smallake.kr/wp-content/uploads/2014/08/1406.2294.pdf) from Google. Jump consistent hash takes an integer key and a total number of buckets to consider and hashes the key into one of the buckets. The algorithm achieves minimal memory consumption and fast hashing that has a small change in hashing as total buckets change.\n\n## Docs\n\nDocs are on [GoDoc](http://godoc.org/github.com/mtchavez/jumpconshash)\n\n## Tests\n\nTests can be ran with `go test --cover`\n\n## Usage\n\n[Example usage](http://godoc.org/github.com/mtchavez/jumpconshash#example-Hash)\n\n```go\n// Hash takes the integer key you want\n// to find the bucket it is hashed to\n// and the total number of buckets to consider\ntotalBuckets := 100\nbucket := Hash(123456789, totalBuckets)\n\n// The bucket for the key is returned\nfmt.Printf(\"Hash(123456789, 100) is bucket %+v\", bucket)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Fjumpconshash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtchavez%2Fjumpconshash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtchavez%2Fjumpconshash/lists"}