leaf ID生成器 Posted on 2019-05-10 In architecture 原文链接 用户通过Round-robin的方式调用Leaf Server的各个服务 123456789+-------------+--------------+------+-----+-------------------+-----------------------------+| Field | Type | Null | Key | Default | Extra |+-------------+--------------+------+-----+-------------------+-----------------------------+| biz_tag | varchar(128) | NO | PRI | | || max_id | bigint(20) | NO | | 1 | || step | int(11) | NO | | NULL | || desc | varchar(256) | YES | | NULL | || update_time | timestamp | NO | | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP |+-------------+--------------+------+-----+-------------------+-----------------------------+ 出现的问题: 更新db,耗时尖刺 db本身,主从切换什么的 双buffer优化 leaf snowflake部分 我们平常讲的完全自己生成ID