1
0
mirror of synced 2026-02-23 05:17:55 +08:00

auto commit

This commit is contained in:
yitter
2021-04-23 22:32:32 +08:00
parent 775791eb19
commit da0af93b34

View File

@@ -240,6 +240,7 @@ extern GoInt32 Validate(GoInt32 workerId);
| 🌲 D | [查看示例][72] | [查看示例][73] |
<div style='display: none'>
## 为什么用雪花ID
❄ 因为大厂也在用,推特、百度、美团、滴滴等等。
@@ -255,6 +256,7 @@ extern GoInt32 Validate(GoInt32 workerId);
❄ 然而,大厂的雪花算法分为“经典算法”和“号段算法”两种,其中“号段算法”依赖网络或外部存储系统,不适合“非大厂”,且存在无法反应业务时序的缺点。
❄ 至于其“经典算法”在“ID长度和生成性能”方面未做过优化而这正式本算法——雪花漂移算法的核心所在。
</div>
[1]: https://github.com/yitter/idgenerator/tree/master/C%23.NET