go-idmaker

command module
v0.0.0-...-6b7fdf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

安全可靠的高性能分布式序列自增基服务

License

安全可靠的高性能分布式序列自增基服务go-idmaker

多个app访问基服务,获取到基id,默认获取[id*1000,(id+1)*1000)序列,使用完毕后再请求获取新基id,类似于java中的分段锁,整体架构并发安全,性能最高

architecture

go-idmaker (2)

启动项目


go run idmaker.go 8080, /idMaker

启动项目后,访问http://ip:${port}/${path}

testing

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL