{"id":18832412,"url":"https://github.com/brainpoint/febs-identify-spring-cloud-starter","last_synced_at":"2026-01-25T09:30:17.229Z","repository":{"id":57715810,"uuid":"276678957","full_name":"brainpoint/febs-identify-spring-cloud-starter","owner":"brainpoint","description":"spring-cloud-starter of febs-identify","archived":false,"fork":false,"pushed_at":"2020-11-18T02:58:26.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-30T07:11:50.446Z","etag":null,"topics":["distributed-id","distributed-id-generator","distributed-identity","febs","spring-boot-starter","spring-cloud-starter"],"latest_commit_sha":null,"homepage":"","language":"Java","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/brainpoint.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":"2020-07-02T15:15:28.000Z","updated_at":"2020-11-18T02:58:28.000Z","dependencies_parsed_at":"2022-09-26T22:01:18.364Z","dependency_job_id":null,"html_url":"https://github.com/brainpoint/febs-identify-spring-cloud-starter","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/brainpoint%2Ffebs-identify-spring-cloud-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-spring-cloud-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-spring-cloud-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainpoint%2Ffebs-identify-spring-cloud-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainpoint","download_url":"https://codeload.github.com/brainpoint/febs-identify-spring-cloud-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239768935,"owners_count":19693763,"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":["distributed-id","distributed-id-generator","distributed-identity","febs","spring-boot-starter","spring-cloud-starter"],"created_at":"2024-11-08T01:57:47.139Z","updated_at":"2026-01-25T09:30:17.185Z","avatar_url":"https://github.com/brainpoint.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# febs-identify-spring-cloud-starter\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.brainpoint/febs-identify-spring-cloud-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/cn.brainpoint/febs-identify-spring-cloud-starter/)\n[![License](https://img.shields.io/github/license/brainpoint/febs-identify-spring-cloud-starter)](https://opensource.org/licenses/MIT)\n\nDistributed Unique Identify.\n\n- like objectId, a process can generator id `2^24-1` per second.\n- Container `20` chars in id\n- Use database to assign unique machineId.\n\n## How to use\n\nmaven config.\n\n```html\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.brainpoint\u003c/groupId\u003e\n    \u003cartifactId\u003efebs-identify-spring-cloud-starter\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.5\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## config\n\nbootstrap.properties\n\n```properties\nfebs.identify.db.type = mysql\nfebs.identify.db.url = localhost:3306/xx\nfebs.identify.db.username = username\nfebs.identify.db.password = password\nfebs.identify.db.tablename = machine_id # db table use to store meachine id.\nfebs.identify.db.retryCount = 1\nfebs.identify.db.connectTimeout = 5000  # connectTimeout connect timeout in milliseconds.\n\nfebs.identify.createMachineIdSelf = false # create a machine id in this instance.\n```\n\n## usage:\n\nIf configured have `createMachineIdSelf=true`, then can do the following:\n\n```java\nimport cn.brainpoint.febs.identify.Identify;\n\n// create next id.\nIdentify.nextId();\n\n// validate id.\nassert Identify.isValid(id);\n```\n\nFollowing to make a new machine id:\n\n```java\nimport cn.brainpoint.febs.identify.Identify;\n\n// Generate a new machine id.\nIdentify.generateNewMachineId()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainpoint%2Ffebs-identify-spring-cloud-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainpoint%2Ffebs-identify-spring-cloud-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainpoint%2Ffebs-identify-spring-cloud-starter/lists"}