Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/distributed-system/distributed-id.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ CREATE TABLE `sequence_id_generator` (

![](https://img-blog.csdnimg.cn/20210610081149228.png)

`version` 字段主要用于解决并发问题(乐观锁),`biz_type` 主要用于表示业余类型
`version` 字段主要用于解决并发问题(乐观锁),`biz_type` 主要用于表示业务类型

**2.先插入一行数据。**

Expand Down Expand Up @@ -354,4 +354,4 @@ Tinyid 的优缺点这里就不分析了,结合数据库号段模式的优缺

这篇文章中,我基本上已经把最常见的分布式 ID 生成方案都总结了一波。

除了上面介绍的方式之外,像 ZooKeeper 这类中间件也可以帮助我们生成唯一 ID。**没有银弹,一定要结合实际项目来选择最适合自己的方案。**
除了上面介绍的方式之外,像 ZooKeeper 这类中间件也可以帮助我们生成唯一 ID。**没有银弹,一定要结合实际项目来选择最适合自己的方案。**