Skip to content

安全可靠的高性能分布式序列化服务,与多种业务应用形成分段锁架构。基础服务核心数据采用双数据备份,支持灾后数据恢复能力,具备生产使用能力

License

Notifications You must be signed in to change notification settings

data2/go-idmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safe and reliable high-performance distributed sequence self increasing base service

License

Safe and reliable high-performance distributed sequence self increasing base service go idmaker

Multiple apps access the base service and obtain the base ID. By default, [id * 1000, (id+1) * 1000) sequence is obtained. After use, a new base ID is requested, similar to the segment lock in Java. The overall architecture is concurrent and secure, with the highest performance

architecture

go-idmaker (2)

start

go run idmaker.go 8080, /idMaker

after startingaccess http://ip:${port}/${path}

testing

go test -v -run TestPrettyClientReturn  idmaker_test.go idmaker.go 

About

安全可靠的高性能分布式序列化服务,与多种业务应用形成分段锁架构。基础服务核心数据采用双数据备份,支持灾后数据恢复能力,具备生产使用能力

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages