基于Go实现的分布式主键系统研究  被引量:1

Research on distributed primary key system based on Go

在线阅读下载全文

作  者:秦攀科 李有卿 Qin Panke;Li Youqing(School of Computing,Henan Polytechnic University,Jiaozuo 454000,China)

机构地区:[1]河南理工大学计算机学院,河南焦作454000

出  处:《无线互联科技》2022年第15期51-55,共5页Wireless Internet Technology

摘  要:随着时代的发展,互联网业务量的提升,越来越多的公司使用了微服务,在此趋势下,分布式主键变得越来越重要。目前,分布式主键的实现方式较多,有基于数据库自增的、基于UUID的、基于Redis自增的、基于数据库号段的。同时,越来越多的公司开始普及使用雪花算法,但是在使用过程中,存在着很多不足:其一,无论什么样的分布式主键都有着各自的缺陷,不能满足日益复杂的使用场景;其二,在业务开发过程中,为了满足各种各样的主键需求,需要实现不同的分布式主键。这加大了开发难度,也容易在分布式主键上产生很多问题,需要一个统一的分布式主键生成系统,支持多种类型的分布式主键,优化现有的分布式主键存在的问题。With the development of The Times and the increase of business volume, more and more companies have used micro services. In this trend, distributed primary keys are becoming more and more important. At present, there are many ways to implement distributed primary keys, including those based on database increment, UUID, Redis increment, and database number segment. At the same time, more and more companies are beginning to popularize the snowflake algorithm. However, in the process of use, there are many deficiencies. First, various distributed primary key implementations have their own shortcomings and cannot meet increasingly complex usage scenarios. Second, in the process of business development, in order to meet the various primary key requirements, you need to realize different distributed primary keys. This makes development more difficult and creates many problems with distributed primary keys. In order to solve these problems, it is necessary to implement a unified distributed primary key generation system. In this system, it is necessary to support multiple types of distributed primary keys and optimize the problems existing in the existing distributed primary keys. Greatly emancipate the productivity of business developers, improve the efficiency of company development.

关 键 词:雪花算法 分布式主键 Grpc Go语言 

分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象