snowflake

command module
v0.1.3-0...-ff4d5da Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: MIT Imports: 2 Imported by: 1

README

Snowflake

雪花算法golang实现

说明

Twitter开源的雪花算法生成ID,每毫秒每个机器可生成4096个连续不重复ID。

Benchmark

Benchmark name COUNT ns/op
BenchmarkNewSnowflake-4 5000000 244 ns/op

工具

github.com/CyrivlClth/snowserver 可获取id生成器工作节点的服务。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
package serialnum get serial number from redis
package serialnum get serial number from redis
server
grpc/service
package service
package service
Package snowflake 分布式ID雪花算法Golang实现 Powered by CyrivlClth
Package snowflake 分布式ID雪花算法Golang实现 Powered by CyrivlClth

Jump to

Keyboard shortcuts

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