type
Post
status
Published
date
Feb 11, 2023
slug
summary
tags
开发
category
笔记
icon
password
UUID
数据库自增
号段模式
Redis 实现
雪花算法(SnowFlake)
百度 Uidgenerator
美团 Leaf
特性:
- 全局唯一,绝对不会出现重复的ID,且ID整体趋势递增。
- 高可用,服务完全基于分布式架构,即使MySQL宕机,也能容忍一段时间的数据库不可用。
- 高并发低延时,在CentOS 4C8G的虚拟机上,远程调用QPS可达5W+,TP99在1ms内。
- 接入简单,直接通过公司RPC服务或者HTTP调用即可接入。
滴滴 TinyID
TODO 后续再调研下
- Author:Brust
- URL:https://brust.me/article/42ffee5b-d6f8-4c73-bd29-9591ba6e9596
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!