1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update distributed-id.md

修改错别字
This commit is contained in:
asrod 2022-02-05 10:54:53 +08:00 committed by GitHub
parent 82fb025c0d
commit c6c0d77b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ CREATE TABLE `sequence_id_generator` (
![](https://img-blog.csdnimg.cn/20210610081149228.png)
`version` 字段主要用于解决并发问题(乐观锁),`biz_type` 主要用于表示业类型。
`version` 字段主要用于解决并发问题(乐观锁),`biz_type` 主要用于表示业类型。
**2.先插入一行数据。**
@ -354,4 +354,4 @@ Tinyid 的优缺点这里就不分析了,结合数据库号段模式的优缺
这篇文章中,我基本上已经把最常见的分布式 ID 生成方案都总结了一波。
除了上面介绍的方式之外,像 ZooKeeper 这类中间件也可以帮助我们生成唯一 ID。**没有银弹,一定要结合实际项目来选择最适合自己的方案。**
除了上面介绍的方式之外,像 ZooKeeper 这类中间件也可以帮助我们生成唯一 ID。**没有银弹,一定要结合实际项目来选择最适合自己的方案。**