应用科学学报 ›› 2021, Vol. 39 ›› Issue (4): 521-531.doi: 10.3969/j.issn.0255-8297.2021.04.001

• CCF NCCA 2020专辑 • 上一篇    

基于流引擎的微服务动态交互平台设计

尹屹凡1, 许开州2, 王燕华2, 周鑫1, 蔡鸿明1   

  1. 1. 上海交通大学 软件学院, 上海 200240;
    2. 上海航天技术研究院 新力动力设备研究所, 上海 201109
  • 收稿日期:2020-08-25 发布日期:2021-08-04
  • 通信作者: 蔡鸿明,教授,研究方向为协同计算、服务计算、语义数据处理、智慧制造。E-mail:hmcai@sjtu.edu.cn E-mail:hmcai@sjtu.edu.cn
  • 基金资助:
    国家工业和信息化部2018年工业互联网创新发展工程项目基金;国家自然科学基金(No.61972243)资助

Dynamic Microservice Interaction Platform Design Based on Stream Engine

YIN Yifan1, XU Kaizhou2, WANG Yanhua2, ZHOU Xin1, CAI Hongming1   

  1. 1. School of Software, Shanghai Jiao Tong University, Shanghai 200240, China;
    2. Xinli Power Equipment Institute, Shanghai Academy of Spaceflight Technology, Shanghai 201109, China
  • Received:2020-08-25 Published:2021-08-04

摘要: 针对传统服务组织高耦合、低透明、变更复杂等问题,提出了以物联大数据为中心的基于流引擎的微服务动态交互平台构造方案。将服务流程拆解为细粒度的微服务模型,以统一的表述方式明确服务的边界,使服务在开发过程中不再依赖于其他服务的接口也可以实现。用流数据通道将微服务连通起来,在生产者侧基于数据时空特征进行服务封装以构建统一的信息表示,在消费者侧进行服务解析并重新划分组织数据,从而在数据驱动下形成对应完整业务流程的服务。该方案实现了可视化的微服务动态交互管理平台,可用于发动机制造的旋压检测工艺流程。与传统的面向服务架构的设计相比,该平台设计耦合度低,能实现灵活的服务变更、拓展和演化,且在服务监控和故障处理等方面也有更好的表现。

关键词: 物联网, 流引擎, 微服务, 服务交互, 大数据

Abstract: In view of problems of traditional service design, such as high coupling, low transparency and complex change, a dynamic microservice interaction platform design based on stream engine is proposed. Service process is decomposed into fine-grained microservice models whose boundaries are defined in a unified model representation, so that a service can be implemented independently of the interfaces of other services. Microservices are connected through stream channels. Service encapsulation is carried out on the producer side based on temporal and spatial features of data to construct unified information representation. Service analysis is carried out on the consumer side to divide and reorganize data. A complete service process for business process is constructed, driven by streaming data. Based on this design, a visual microservice interaction management platform is realized and applied to spinning detection process of engine manufacturing. Compared with traditional service systems, this platform design features in lower coupling, more flexibility in service change, expansion and evolution, and improved performance in service monitoring and fault handling.

Key words: Internet of things, stream engine, microservice, service interaction, big data

中图分类号: