• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2021, Vol. 43 ›› Issue (10): 1781-1788.

• 软件工程 • 上一篇    下一篇

基于变更事件驱动的微服务组合平台设计与实现

王信,刘晓燕,张开琦,王星,严馨   

  1. (昆明理工大学信息工程与自动化学院,云南 昆明 650050)
  • 收稿日期:2020-07-14 修回日期:2020-11-28 接受日期:2021-10-25 出版日期:2021-10-25 发布日期:2021-10-22
  • 基金资助:
    国家自然科学基金(61462055)

Design and implementation of a change event driven microservice composition platform

WANG Xin,LIU Xiao-yan,ZHANG Kai-qi,WANG Xing,YAN Xin   

  1. (Faculty of Information Engineering and Automation,Kunming University of Science and Technology,Kunming 650050,China)
  • Received:2020-07-14 Revised:2020-11-28 Accepted:2021-10-25 Online:2021-10-25 Published:2021-10-22

摘要: 微服务组合领域尚处于未成熟阶段,需要更完善的解决方案,因此设计了一个基于变更事件驱动的微服务组合平台。该平台相比现有的解决方案,在领域特定语言层面上支持细粒度数据访问控制,并进一步丰富了语言表现力。引入Spring Cloud Netflix生态系统,解决平台中微服务不能动态部署的问题,提高了健壮性。对于触发微服务组合的事件,增加了对Web资源的变更检测,即对XML文档的内容和结构2个层面的比较,并对现有的XML文档内容层面的比较方法进行优化,综合考虑了内容和结构的相似度度量。实验结果表明,该微服务组合平台更加完善、丰富,注重私隐保护,容错性更强,在算法时间效率上亦有提升。

关键词: 微服务组合, 领域特定语言, 访问控制, 编译器, 运行时系统, 相似度

Abstract: The field of microservice composition is still in its immature stage and needs a more complete solution. Therefore, a microservice composition platform based on change events is designed. Compared with the existing solutions, the platform supports fine-grained data access control at the domain-specific language level and further enriches the language expression. The Spring Cloud Netflix ecosystem is introduced to solve the problem that the microservices in the platform cannot be deployed dynamically and improve the robustness. For the events that trigger the composition of the microservices, the change detection of Web resources is added. That it, the content and structure of the XML document are compared, and the existing comparison method at the content level of the XML document is optimized, and the similarity measure of content and structure is comprehensively considered. The experimental results show that the microservice composition platform is more complete and rich, with emphasis on privacy protection, and stronger fault tolerance, and improves the algorithm time efficiency.



Key words: microservice composition, domain specific language, access control, compiler, runtime system, similarity