{"id":20677833,"url":"https://github.com/clivern/bucket","last_synced_at":"2025-04-19T21:18:51.013Z","repository":{"id":42457368,"uuid":"360301561","full_name":"Clivern/Bucket","owner":"Clivern","description":"Consistent Hashing Algorithm Package for Scalable Data Distribution","archived":false,"fork":false,"pushed_at":"2025-04-08T00:23:45.000Z","size":206,"stargazers_count":4,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T02:29:41.099Z","etag":null,"topics":["cassandra","cassandra-cluster","consistent-hash-algorithm","consistent-hashing","data-distribution"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clivern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"clivern"}},"created_at":"2021-04-21T20:44:53.000Z","updated_at":"2024-06-06T09:49:45.000Z","dependencies_parsed_at":"2024-02-29T21:51:04.803Z","dependency_job_id":null,"html_url":"https://github.com/Clivern/Bucket","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FBucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FBucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FBucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clivern%2FBucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clivern","download_url":"https://codeload.github.com/Clivern/Bucket/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249806715,"owners_count":21327981,"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":["cassandra","cassandra-cluster","consistent-hash-algorithm","consistent-hashing","data-distribution"],"created_at":"2024-11-16T21:17:16.832Z","updated_at":"2025-04-19T21:18:50.939Z","avatar_url":"https://github.com/Clivern.png","language":"Java","readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"Bucket Logo\" src=\"https://raw.githubusercontent.com/Clivern/Bucket/main/images/logo.png\" height=\"150\" /\u003e\n\t\u003ch3 align=\"center\"\u003eBucket\u003c/h3\u003e\n\t\u003cp align=\"center\"\u003eConsistent Hashing Package for Scalable Data Distribution.\u003c/p\u003e\n\t\u003cp align=\"center\"\u003e\n        \u003ca href=\"https://github.com/Clivern/Bucket/actions/workflows/ci.yml\"\u003e\n            \u003cimg src=\"https://github.com/Clivern/Bucket/actions/workflows/ci.yml/badge.svg\"\u003e\n        \u003c/a\u003e\n\t\t\u003ca href=\"http://www.javadoc.io/doc/com.clivern/bucket\"\u003e\n            \u003cimg src=\"http://www.javadoc.io/badge/com.clivern/bucket.svg\"\u003e\n        \u003c/a\u003e\n\t\t\u003ca href=\"https://mvnrepository.com/artifact/com.clivern/bucket/0.1.0\"\u003e\n            \u003cimg src=\"https://img.shields.io/maven-central/v/com.clivern/bucket.svg\"\u003e\n        \u003c/a\u003e\n\t\t\u003ca href=\"https://github.com/Clivern/Bucket/blob/main/LICENSE\"\u003e\n            \u003cimg src=\"https://img.shields.io/badge/LICENSE-Apache_2.0-orange.svg\"\u003e\n        \u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/p\u003e\n\nConsistent Hashing was introduced in the year 1997. It’s used in Amazon’s Dynamo DB as a partitioning component. Further, open-source applications such as Apache Cassandra use it for data partitioning. In order to fully understand how it works, please [check this guide first.](https://medium.datadriveninvestor.com/consistent-hashing-an-efficient-scalable-data-distribution-algorithm-a81fc5c0a6c7)\n\n\n## Documentation\n\n### Installation\n\nTo add a dependency using Maven, use the following:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.clivern\u003c/groupId\u003e\n    \u003cartifactId\u003ebucket\u003c/artifactId\u003e\n    \u003cversion\u003e0.1.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nTo add a dependency using Gradle, use the following:\n\n```java\ndependencies {\n    compile 'com.clivern:bucket:0.1.0'\n}\n```\n\nTo add a dependency using Scala SBT, use the following:\n\n```java\nlibraryDependencies += \"com.clivern\" % \"bucket\" % \"0.1.0\"\n```\n\n### Usage\n\nHere is a basic example\n\n```java\nimport com.clivern.bucket.Bucket;\nimport com.clivern.bucket.ServiceNode;\n\n\nServiceNode node1 = new ServiceNode(\"DC1\", \"127.0.0.1\", 8080);\nServiceNode node2 = new ServiceNode(\"DC2\", \"127.0.0.2\", 8081);\nServiceNode node3 = new ServiceNode(\"DC3\", \"127.0.0.3\", 8082);\nServiceNode node4 = new ServiceNode(\"DC4\", \"127.0.0.4\", 8084);\nServiceNode node5 = new ServiceNode(\"DC5\", \"127.0.0.5\", 8085);\nServiceNode node6 = new ServiceNode(\"DC6\", \"127.0.0.6\", 8086);\nServiceNode node7 = new ServiceNode(\"DC7\", \"127.0.0.7\", 8087);\nBucket\u003cServiceNode\u003e bucket =\n        new Bucket\u003c\u003e(Arrays.asList(node1, node2, node3, node4, node5, node6, node7), 10);\n\n// Get the node used for allocation for something with id 1\nServiceNode node = (ServiceNode) bucket.routeNode(\"1\");\nSystem.out.println(node);\n```\n\n\n## Versioning\n\nFor transparency into our release cycle and in striving to maintain backward compatibility, Bucket is maintained under the [Semantic Versioning guidelines](https://semver.org/) and release process is predictable and business-friendly.\n\nSee the [Releases section of our GitHub project](https://github.com/clivern/bucket/releases) for changelogs for each release version of Bucket. It contains summaries of the most noteworthy changes made in each release.\n\n\n## Bug tracker\n\nIf you have any suggestions, bug reports, or annoyances please report them to our issue tracker at https://github.com/clivern/bucket/issues\n\n\n## Security Issues\n\nIf you discover a security vulnerability within Bucket, please send an email to [hello@clivern.com](mailto:hello@clivern.com)\n\n\n## Contributing\n\nWe are an open source, community-driven project so please feel free to join us. see the [contributing guidelines](CONTRIBUTING.md) for more details.\n\n\n## License\n\n© 2021, Clivern. Released under [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).\n\n**Bucket** is authored and maintained by [@Clivern](http://github.com/clivern).\n","funding_links":["https://github.com/sponsors/clivern"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Fbucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclivern%2Fbucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclivern%2Fbucket/lists"}