{"id":15343656,"url":"https://github.com/jmjoy/idgend","last_synced_at":"2025-11-30T17:30:16.604Z","repository":{"id":38326571,"uuid":"249021087","full_name":"jmjoy/idgend","owner":"jmjoy","description":"A simple and brute-force service for generating unique and pure digital IDs.","archived":false,"fork":false,"pushed_at":"2024-02-05T01:07:20.000Z","size":188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T14:53:40.211Z","etag":null,"topics":["http","id"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jmjoy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-21T16:58:48.000Z","updated_at":"2024-02-04T07:59:03.000Z","dependencies_parsed_at":"2024-02-04T08:45:03.276Z","dependency_job_id":"f239d1c9-ff47-4be0-b97c-45ad0798ce4f","html_url":"https://github.com/jmjoy/idgend","commit_stats":{"total_commits":16,"total_committers":3,"mean_commits":5.333333333333333,"dds":0.4375,"last_synced_commit":"1043f2d72ee548e4f6098cb42b556e2f8734dd0a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjoy%2Fidgend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjoy%2Fidgend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjoy%2Fidgend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjoy%2Fidgend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmjoy","download_url":"https://codeload.github.com/jmjoy/idgend/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239645796,"owners_count":19673914,"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":["http","id"],"created_at":"2024-10-01T10:48:27.785Z","updated_at":"2025-11-30T17:30:16.561Z","avatar_url":"https://github.com/jmjoy.png","language":"Rust","readme":"# IDGEND\n\nA simple and brute-force service for generating unique and pure digital IDs.\n\n一个简单粗暴的生成唯一纯数字ID生成服务。\n\n## Dependencies 依赖\n\n1. Rust\n2. Etcd server\n\n## Feature 特点\n\n1. unique ID 唯一ID\n2. monotonically increasing 单调递增\n3. High availability 高可用\n4. suitable for scenarios with low QPS 适合QPS不高的场景\n\n## Usage 使用\n\nAssume that the hosts where you set up idgend are `192.128.0.1` and `192.128.0.2`, and the hosts of etcd server are `192.168.1.1`, `192.168.1.2`, `192.168.1.3`.\n\n假设你搭建idgend的主机是`192.128.0.1`和`192.128.0.2`，而etcd server的主机是`192.168.1.1`, `192.168.1.2`, `192.168.1.3`。\n\n```shell\nidgend --web-addr 0.0.0.0:3000 \\\n       --advertise-client-url http://192.128.0.1:3000 \\\n       --etcd-server 192.168.1.1:2379 \\\n       --etcd-server 192.168.1.2:2379 \\\n       --etcd-server 192.168.1.3:2379\n```\n\n```shell\nidgend --web-addr 0.0.0.0:3000 \\\n       --advertise-client-url http://192.128.0.2:3000 \\\n       --etcd-server 192.168.1.1:2379 \\\n       --etcd-server 192.168.1.2:2379 \\\n       --etcd-server 192.168.1.3:2379\n```\n\nThen you can use nginx as a proxy.\n\n然后可以通过nignx做代理。\n\n```nginx\nupstream idgend { \n    server 192.128.0.1:3000;\n    server 192.128.0.2:3000;\n}\n```\n\nidgend is also very suitable for building as a Deployment on kubernetes.\n\nidgend还十分适合在kubernetes上作为Deployment搭建。\n\n## Implementation 实现\n\nTODO\n\n## LICENSE 开源协议\n\nApache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjoy%2Fidgend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmjoy%2Fidgend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjoy%2Fidgend/lists"}