diff --git a/ch6-cloud/ch6-07-dist-id.md b/ch6-cloud/ch6-07-dist-id.md index 7239d03..624754a 100644 --- a/ch6-cloud/ch6-07-dist-id.md +++ b/ch6-cloud/ch6-07-dist-id.md @@ -127,9 +127,9 @@ Epoch 就是本节开头讲的起始时间,NodeBits 指的是机器编号的 sonyflake 是 Sony 公司的一个开源项目,基本思路和 snowflake 差不多,不过位分配上稍有不同: ``` -+--------------------------------------------------------------------------+ ++-----------------------------------------------------------------------------+ | 1 Bit Unused | 39 Bit Timestamp | 8 Bit Sequence ID | 16 Bit Machine ID | -+--------------------------------------------------------------------------+ ++-----------------------------------------------------------------------------+ ``` 这里的时间只用了 39 个 bit,但时间的单位变成了 10ms,所以理论上比 41 位表示的时间还要久(174 years)。