摘要
近年来,随着汽车领域数字化、网络化、智能化的加速发展,传统的软件架构方法面临着巨大挑战。微服务架构因其敏捷性、可伸缩性、灵活性等特性,成为软件工程中流行的一种架构。然而,将汽车服务系统从传统的架构拆分为多个微服务架构缺乏有效的划分标准。针对这一问题,本文提出了一种基于领域驱动设计(domain-driven design,DDD)和K-Means算法的汽车服务系统微服务划分方法。根据微服务的特点和汽车服务业务功能架构,确定业务逻辑与服务的映射关系,进而构建加权图,在此基础上通过K-Means算法得到最优的微服务划分方案。实验结果表明,使用该方法划分的微服务在可靠性、耦合性、容错性、自治性等方面具有一定的优势。
With the rapid development of technology in the automotive field in recent years,the traditional approach to software architecture is facing challenges.Microservice architecture has become a popular architecture in software engineering because of its agility,scalability,flexibility,and other characteristics.However,there is a lack of effective partition criteria for splitting the automotive service system from the traditional architecture into multiple microservices.In order to solve this problem,this paper proposes a microservice partitioning method based on DDD(domain-driven design)and K-Means algorithm for automotive service system.According to the characteristics of microservices and the functional architecture of automotive service business,the mapping relationship between business logic and service is determined,and then a weighted graph is constructed,and the optimal microservice partition scheme is obtained through the K-Means algorithm.Experiments have shown that microservices partitioned using this method have certain advantages in reliability,coupling,fault tolerance,autonomy,and other aspects.
作者
李超
蔡明高
曹愚
洪英杰
Li Chao;Cai Minggao;Cao Yu;Hong Yingjie(Jiangsu Second Normal University,Nanjing 210013,China;FAW(Nanjing)Technology Development Co.,Ltd.,Nanjing 210013,China)
出处
《新型工业化》
2024年第5期64-73,共10页
The Journal of New Industrialization