tinyid icon indicating copy to clipboard operation
tinyid copied to clipboard

ID Generator id生成器 分布式id生成系统,简单易用、高性能、高可用的id生成系统

Results 33 tinyid issues
Sort by recently updated
recently updated
newest added

tiny client 模式(有本地缓存),怎么解决个应用实例同时生产id,不重复问题?

能否增加动态step调整,因为如果一开始对业务调用量无法评估的话,对step设置的过小会导致每次分配的segement使用过快,更新时冲突的概率变大,设置得过大又容易造成segement浪费。如果在增加maxId时记录增加时间lastTimeStamp,在下次增加maxId时,判断当前时间减去lastTimeStamp之间的时间差,如果小于我们设定的时间间隔(例如15分钟),那么我们就增大内存中step变量的值,如果大于就适当减少step变量的值,这样可以让segment分配的频率在我们可控的氛围内,如果可以增加的话,我可以实现这部分代码提PR

https://github.com/didi/tinyid/blob/49976d37222ab1089a8c413b4520cc55d105d428/tinyid-server/pom.xml#L68-L70 CVE-2019-10086 Recommended upgrade version:1.9.4

https://github.com/didi/tinyid/blob/49976d37222ab1089a8c413b4520cc55d105d428/tinyid-server/pom.xml#L63-L65 CVE-2018-3258 CVE-2019-2692 CVE-2020-2934 CVE-2020-2875 Recommended upgrade version:8.0.20

加入actions: 1.实现自动化编译 2. 实现release自动生成

现在IdGenerator是在每次请求来时去初始化的,这样可能导致初次访问性能较差,可以启动时完成对IdGenerator的初始化,然后开启定时任务去扫表增量初始化新加入的

Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...

dependencies