arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.07267cs.SE
收藏

基于微服务的应用程序开发框架:评估和比较

Development Frameworks for Microservice-based Applications: Evaluation and Comparison

Hai Dinh-Tuan, Maria Mora-Martinez, Felix Beierle, Sandro Rodriguez Garzon

摘要:

微服务架构风格作为一种设计、开发和部署云原生应用程序的新方法,最近受到了学术界和工业界的广泛关注。这个概念鼓励将整体分解成多个可独立部署的单元。典型的基于微服务的应用程序由两种服务类型组成:功能服务,提供核心业务逻辑;基础设施服务,为微服务生态系统提供基本功能。为了提高开发人员的生产力,已经开发了许多软件框架来提供那些可重用的基础设施服务,允许程序员专注于以任意方式实现微服务。在这项工作中,我们使用了四个开源框架,以开发一个基于云的应用程序,以比较和评估他们的可用性和实用性。虽然所有选定的框架一般都促进异步微服务设计,但每个框架实现服务的方式都存在差异。这会导致互操作性问题,例如消息主题命名约定。此外,一个关键的发现是基于JVM的服务启动时间长,这可能会降低应用程序的弹性和可移植性。其他一些优势直接来自于程序设计语言,例如Go生成原生二进制可执行文件的能力,这会导致非常小和紧凑的Docker映像(与其他语言相比最多小78%)。

英文摘要:

The microservice architectural style has gained much attention from both academia and industry recently as a novel way to design, develop, and deploy cloud-native applications. This concept encourages the decomposition of a monolith into multiple independently deployable units. A typical microservices-based application is formed of two service types: functional services, which provide the core business logic, and infrastructure services, which provide essential functionalities for a microservices ecosystem. To improve developers' productivity, many software frameworks have been developed to provide those reusable infrastructure services, allowing programmers to focus on implementing microservices in arbitrary ways. In this work, we made use of four open source frameworks to develop a cloud-based application in order to compare and evaluate their usability and practicability. While all selected frameworks promote asynchronous microservice design in general, there are differences in the ways each implements services. This leads to interoperability issues, such as message topic naming convention. Additionally, a key finding is the long startup times of JVM-based services that might reduce application's resiliency and portability. Some other advantages come directly from the programming language, such as the ability of Go to generate native binary executables, which results in very small and compact Docker images (up to 78\% smaller compared to other languages).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑