APP下载

基于交互流建模语言的微服务架构建模研究

2018-02-01邓禹刘晓燕

软件导刊 2018年1期
关键词:服务模型设计

邓禹+刘晓燕

摘要:

微服务架构以其先进的架构风格将应用分割成细小的服务,而MDA(Model Driver Architecture)集成化的模型开发方法也为解决软件开发效率和可移植性问题提供了实现机制。结合模型驱动实现了微服务架构建模开发,将微服务建模分为概念模型和交互模型两个过程。基于交互流建模语言定义概念元模型,设计了模型转换方法,将概念元模型映射到交互模型,并根据其提供的组件设计出一种微服务模型重用机制,提高了开发效率。最终的交互模型以图形化方式显示,提供了直观的模型视图。

关键词:

微服务架构;MDA;交互流建模语言;模型转换;概念元模型

DOIDOI:10.11907/rjdk.172148

中图分类号:TP319

文献标识码:A文章编号文章编号:1672-7800(2018)001-0165-04

Abstract:The Microservice architecture advocates dividing the application into small services with its advanced architectural style,The MDA integrated model development method also provides a mechanism to solve the problem of software development efficiency and portability.Microservice architecture development process and model building are the key research content.On the basis of,this article focuses combined with the model driver to achieve Microservice architecture modeling and development, Microservice modeling is divided into conceptual model and interaction model of the two processes.At the same time, the conceptual meta-model is defined based on the interaction flow modeling language,the design model transformation method maps the conceptual meta-model to the interactive model,and according to the components provided by the design of a Microservice model reuse mechanism,improve development efficiency.The final interaction model is shown in graphical representation, providing an intuitive model view.

Key Words:microservice architecture;model driver architecture;interaction flow modeling language; model transformation;conceptual meta-model

0引言

微服務架构模型[1]将应用分割成一系列细小的服务,每个服务专注于单一的业务功能,每个微服务都是一个架构模型。但由于缺少一种简洁高效的架构方法,使得手工编码仍是主要的开发手段,开发出的微服务应用存在移植性低、维护性差的缺点。MDA[2]的核心内容就是建模,从代码开发为中心过渡到模型架构为中心,并分离系统的业务逻辑和平台,将设计阶段的重点放在业务逻辑上,是实现系统自动转换的重要工具。MDA框架中的平台独立模型PIM和平台相关模型PSM是模型架构的关键技术[3]。模型转换解决模型到模型及模型到代码的映射方法,并将方法映射在不同的技术平台。交互流建模语言作为最新的建模开发语言,以其强大的交互模型和组件完成复杂的建模开发。……

登录APP查看全文

猜你喜欢

服务模型设计
一半模型
重尾非线性自回归模型自加权M-估计的渐近分布
服务在身边 健康每一天
服务在身边 健康每一天
服务在身边 健康每一天
瞒天过海——仿生设计萌到家
招行30年:从“满意服务”到“感动服务”
设计秀
有种设计叫而专
3D打印中的模型分割与打包