ID generator for golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/idleaf
etc
.travis.yml Create .travis.yml Jun 20, 2017
README.md Update README.md Jul 2, 2017
domain_leaf.go fmt Aug 4, 2017
domain_leaf_test.go
domain_leaf_threadsafe.go
domain_leaf_threadunsafe.go
errors.go
idleaf.go add option Oct 25, 2017
option.go sync with golib Sep 30, 2018
router.go unit test Aug 11, 2017

README.md

idleaf Build Status

Id generator for golang. There are no two identical leaves in the world.

Generate batch ids through MySQL transcation way, dose not increase the load of MySQL.

+---------+    +---------+  ...  +---------+    +---------+
| service |    | service |  ...  | service |    | service |
+---------+    +---------+  ...  +---------+    +---------+
         \       /     \         /     |       /
          \     /       \       /      |      /
	  +--------+    +--------+    +--------+
	  | idleaf |    | idleaf |    | idleaf |
	  +--------+    +--------+    +--------+
                  \       |         /
                   \      |        /
                    \     |       /
                     +----+------+
			  |
			 DB