一個用微服務體系結構來構建軟體的系統化方法
A Systematic Approach to Constructing a Software with Microservice Architecture
摘要
微服務體系結構是服務導向的體系結構(Service-Oriented Architecture,SOA)的一種變體,最近在分佈式系統中越來越流行。與SOA相比,微服務體系結構允許將服務分解成若干小尺寸、但獨立平行的運行單元,從而使應用程序的性能和可維護性得到很大改善。不幸的是,儘管微服務存在著現有的概念,但是目前還缺乏一個系統性的方法去構建微服務應用程序。
在本文中,我們介紹一種使用物件導向規範的系統性方法來構建有著分層和分佈式特徵的微服務軟體。我們的方法由三個階段組成:(1)分析系統需求(2)設計系統(3)設計微服務。每個階段採用不同的方法來推導規範,然後採用本規範的一致性和完整性分析。如果分析發現一些缺陷,則表示階段不完整,整體的建置工作將回到使設計不正確的活動,直到缺陷被彌補。
我們所提出的方法可以幫助開發人員輕鬆正確地描述微服務,因為每個活動及其結果都有明確的定義。 此外,微服務規範可以減少應用程序品質要求的設計工作。
在本文中,我們介紹一種使用物件導向規範的系統性方法來構建有著分層和分佈式特徵的微服務軟體。我們的方法由三個階段組成:(1)分析系統需求(2)設計系統(3)設計微服務。每個階段採用不同的方法來推導規範,然後採用本規範的一致性和完整性分析。如果分析發現一些缺陷,則表示階段不完整,整體的建置工作將回到使設計不正確的活動,直到缺陷被彌補。
我們所提出的方法可以幫助開發人員輕鬆正確地描述微服務,因為每個活動及其結果都有明確的定義。 此外,微服務規範可以減少應用程序品質要求的設計工作。
The microservice architecture is a variation of a Service-Oriented Architecture (SOA) that is getting popular in distributed systems recently. In contrast to SOA, a microservice architecture allows a service to be broken down into a number of small sizes but independently concurrent running units so that both performance and maintainability of the application can be given a big improvement. Unfortunately, although there are existing concepts for microservices, it is currently lack of the systematic approach to constructing applications with microservice.
In this thesis, we introduce a systematic method to constructing a software using layered and distributed microservices with object-oriented specifications. Our approach is composed of three stages: (1) analyze system requirements, (2) design the system, and (3) design the microservices. Each stage adopts a distinct method to derive the specification, and then invoke the analysis of consistency and completeness of this specification. A stage is not complete if the analysis is found some defects and the work will move back to the activities that made the design incorrect.
The proposed method could help the developers to describe microservices easily and correctly since each activity and its result is defined clearly. Besides, the specification of microservices could reduce the design efforts in addressing quality requirements of an application.
In this thesis, we introduce a systematic method to constructing a software using layered and distributed microservices with object-oriented specifications. Our approach is composed of three stages: (1) analyze system requirements, (2) design the system, and (3) design the microservices. Each stage adopts a distinct method to derive the specification, and then invoke the analysis of consistency and completeness of this specification. A stage is not complete if the analysis is found some defects and the work will move back to the activities that made the design incorrect.
The proposed method could help the developers to describe microservices easily and correctly since each activity and its result is defined clearly. Besides, the specification of microservices could reduce the design efforts in addressing quality requirements of an application.