Permalink
Browse files

added article url

  • Loading branch information...
1 parent 91f05b6 commit 40cad38457537caa2354089e3d48a6dcd78264ca @leonlee committed May 18, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 README.md
View
15 README.md
@@ -3,4 +3,19 @@ id-generator-java
ID generator implemented by Java
+Format:
+
+**********************************************************************
+* T |64| * L |6| *R |4|* N |12| * S |10| *
+**********************************************************************
+
+1. ID = TLRNS, 96 bits
+2. T time stamp in ms, 64 bits
+3. L logical regions, likes district or ISP, 6bits, capacity is 64 regions
+4. R reserved bits, 4 bits, capacity 16, for future requirements.
+5. N physical id generator nodes, 12 bits, capacity is 4096 nodes
+6. S sequence number, there a sequence counter per node, 10bits, capacity 1024, it means every node can produce 1024000 IDs per second per node.
+
+Use ObjectId as _id type in mongo DB.
+
<a href='http://riderzen.com/?x=entry:entry120517-022657'>ID Server 策略与实现</a>

0 comments on commit 40cad38

Please sign in to comment.