Releases: Ahoo-Wang/CosId
Releases · Ahoo-Wang/CosId
v1.14.1
What's Changed
- add
Radix36CosIdGenerator
to support case-insensitive storage. - fix #135
Radix62CosIdGenerator
//0TEXPEbg0001001
String id = radix62CosIdGenerator.generateAsString();
//CosIdState{timestamp=1660526325024, machineId=1, sequence=1}
CosIdState cosIdState = radix62CosIdGenerator.getStateParser().asState(id);
Radix36CosIdGenerator
//0L6U2PAD600010001
String id = radix36CosIdGenerator.generateAsString();
//CosIdState{timestamp=1660526664378, machineId=1, sequence=1}
CosIdState cosIdState = radix36CosIdGenerator.getStateParser().asState(id);
Full Changelog: v1.14.0...v1.14.1
v1.14.0
What's Changed
- New distributed ID algorithm:
CosIdGenerator
by @Ahoo-Wang in #136- Global trend increasing.
- Local monotonically increasing.
- High performance: 15,570,085 ops/s (
generateAsString
), three times that ofUUID.randomUUID()
. - Reverse parsing ID State (
timestamp
,machineId
,sequence
) - Easy to expand.
- Small footprint: 15 Chars.
- Refactor : Add
sequenceResetThreshold
to optimize the problem of uneven sharding of snowflake algorithm in the case of low system throughput.
Full Changelog: v1.13.1...v1.14.0
v1.13.1
What's Changed
- Update dependency me.ahoo.cosid:cosid-jdbc to v1.13.0 by @renovate in #124
- Update dependency me.ahoo.cosid:cosid-test to v1.13.0 by @renovate in #125
- Update dependency gradle to v7.5 by @renovate in #126
- Update junit5 monorepo to v5.9.0 by @renovate in #128
- Update dependency mysql:mysql-connector-java to v8.0.30 by @renovate in #127
- Fix #129
Full Changelog: v1.13.0...v1.13.1
v1.13.0
What's Changed
- Update dependency me.ahoo.cosid:cosid-test to v1.12.1 by @renovate in #119
- Update dependency me.ahoo.cosid:cosid-jdbc to v1.12.1 by @renovate in #118
- Support CI for CosId-Proxy by @Ahoo-Wang in #121
- Move the
MachineIdDistributor
to the top-level namespace by @Ahoo-Wang in #123
Backward Incompatible Changes
cosid:
namespace: ${spring.application.name}
machine:
enabled: true
distributor:
type: redis
snowflake:
enabled: true
Full Changelog: v1.12.1...v1.13.0
v1.12.1
What's Changed
- Update dependency me.ahoo.cosid:cosid-jdbc to v1.12.0 by @renovate in #98
- Update dependency me.ahoo.cosid:cosid-test to v1.12.0 by @renovate in #99
- add
UncertaintyIdGenerator
by @Ahoo-Wang in #117 , For the following usage scenarios:- The problem of uneven sharding of snowflake IDs.
- Don’t want the generated ID to be predictable, such as preventing crawler by ID number, predicting transaction volume.
Full Changelog: v1.12.0...v1.12.1
v1.12.0
What's Changed
- Upgrade to Spring-Boot 2.6.8
- Upgrade to Spring-Cloud 2021.0.2
Full Changelog: v1.11.0...v1.12.0
v1.11.0
What's Changed
- Add
cosid-axon
module to supportIdentifierFactory
of AxonFramework by @Ahoo-Wang in #108 - Upgrade
okhttp
to4.9.3
.
Full Changelog: v1.10.4...v1.11.0
v1.10.4
What's Changed
- enhance: add
SuffixIdConverter
. - enhance: support config
IdConverterDefinition#suffix
. - refactor: remove unnecessary dependencies .
- refactor: enhance code robustness for
cosid-proxy
.
Full Changelog: v1.10.3...v1.10.4
v1.10.3
v1.10.2
What's Changed
- Update dependency me.ahoo.cosid:cosid-jdbc to v1.10.0 by @renovate in #89
- Update dependency me.ahoo.cosid:cosid-test to v1.10.0 by @renovate in #90
- make machineId guarder enabled default true by @RocherKong in #93
- fix segmentAutoConfiguration bug #94
Full Changelog: v1.10.0...v1.10.2