add a snowflake sequencer as more robust fid generator, but less compressable than small auto-inc id

This commit is contained in:
李海
2021-03-25 18:49:26 +08:00
parent 82dfe06066
commit 69b2dab9c6
5 changed files with 55 additions and 1 deletions

1
go.mod
View File

@@ -13,6 +13,7 @@ require (
github.com/Shopify/sarama v1.23.1
github.com/aws/aws-sdk-go v1.34.30
github.com/buraksezer/consistent v0.0.0-20191006190839-693edf70fd72
github.com/bwmarrin/snowflake v0.3.0
github.com/cespare/xxhash v1.1.0
github.com/chrislusf/raft v1.0.4
github.com/coreos/go-semver v0.3.0 // indirect