go-idmaker

command module
v0.0.0-...-ce84e00 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

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 starting, access 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