摘要
微服务架构由于其高效灵活的独特优势近年来已逐渐成为一种代替单体架构的新选择,在企业实践中,单体架构系统向微服务架构系统的迁移过程通常是由人工完成的,这种方式往往不确定性高,主观性过强.为了解决这些问题,提出了一种组合优化模型驱动的微服务拆分方法,该方法将微服务拆分问题建模成为一种组合优化问题,基于微服务的高内聚低耦合原则和业务一致性原则生成组合优化的目标函数,然后通过人工鱼群算法得到最优的微服务拆分方案.实验表明,该方法能有效提高微服务拆分的质量,得到的拆分结果更为合理可靠.
Due to its unique advantages of high efficiency and flexibility,microservice architecture has gradually become a new alternative to monolithic architecture in recent years.In enterprise practice,the migration process of monolithic architecture systems to microservice architecture systems is usually done manually,this method is often highly uncertain and subjective.In order to solve these problems,a microservice decomposition method driven by combinatorial optimization model is proposed.This method models the problem of decomposing microservices into a combinatorial optimization problem,based on the principle of high cohesion and low coupling of microservices and business consistency principle of microservices,the objective function of combinatorial optimization is generated,and then the optimal microservice decomposing scheme is obtained through the artificial fish school algorithm.Experiments show that this method can effectively improve the quality of microservice decomposing,and the decomposing results obtained are more reasonable and reliable.
作者
刘若宇
刘晓燕
LIU Ruo-yu;LIU Xiao-yan(Faculty of Information Engineering and Automation,Kunming University of Science and Technology,Kunming 650500,China)
出处
《小型微型计算机系统》
CSCD
北大核心
2023年第12期2812-2818,共7页
Journal of Chinese Computer Systems
基金
国家自然科学基金项目(61462055)资助。
关键词
微服务
组合优化
单体架构
人工鱼群算法
microservice
combinatorial optimization
monolithic architecture
artificial fish school algorithm