{"id":15518458,"url":"https://github.com/c9s/sid","last_synced_at":"2025-04-23T04:09:12.651Z","repository":{"id":66245390,"uuid":"115234583","full_name":"c9s/sid","owner":"c9s","description":"Sequential ID generator as a micro-service, implemented in Go","archived":false,"fork":false,"pushed_at":"2017-12-24T12:34:20.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T22:53:54.132Z","etag":null,"topics":["generator","go","grpc","id","mysql","sequential"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c9s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-12-24T02:25:51.000Z","updated_at":"2024-07-10T07:34:55.000Z","dependencies_parsed_at":"2023-06-28T07:15:14.328Z","dependency_job_id":null,"html_url":"https://github.com/c9s/sid","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"fa05f85d712c72d43ae7203e77c7472838b29ed6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fsid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fsid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fsid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fsid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c9s","download_url":"https://codeload.github.com/c9s/sid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247744634,"owners_count":20988832,"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":["generator","go","grpc","id","mysql","sequential"],"created_at":"2024-10-02T10:17:33.237Z","updated_at":"2025-04-23T04:09:12.619Z","avatar_url":"https://github.com/c9s.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sequence ID generator as a micro-service\n\nThe sequence ID is designed to generate sequential ID for no-sql applications.\n\ngRPC protocol is used to provide high efficiency network communication.\n\n## Requirement\n\n    go get -u google.golang.org/grpc\n    go get -u github.com/golang/protobuf/protoc-gen-go\n    go get -u github.com/go-sql-driver/mysql\n\n## Install\n\n    go get github.com/c9s/sid/cmd/sidserver\n\n## Setting up\n\nTo setup the sid generator, you need few things:\n\n1. DSN for MySQL server \n2. The keys of the sequences.\n\nYou need to create a config file like this:\n\n```json\n{\n    \"backend\": {\n        \"mysql\": {\n            \"dsn\": \"root@unix(/opt/local/var/run/mysql57/mysqld.sock)/sid\"\n        }\n    },\n    \"sequences\": {\n        \"jobs\": {},\n        \"orders\": {}\n    }\n}\n```\n\n## Running\n\nSimply run the following commands to run the server:\n\n    sid-server -config config.json\n\n## License\n\nMIT License\n\n## Author\n\nYo-An Lin \u003cyoanlin93@gmail.com\u003e\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9s%2Fsid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc9s%2Fsid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9s%2Fsid/lists"}