A Microservice Decomposition Approach Driven by Sub-Requirement References in Problem Diagrams
Yitao Bu, Hongbin Xiao, Zhi Li, Xiaolan Xie · 2024
As a new technology for deploying applications and services in the cloud, microservice architecture is becoming a hot topic in IT architecture today. It overcomes the problems of low development efficiency and difficult maintenance of traditional monolithic architecture, and attracts more and more enterprises to explore and practice. However, also many enterprises refuse to use microservices because improper decomposition of microservices results in a mismatch between system requirements and services, making the system expensive to build and expensive to run. Therefore, this paper proposes a microservice decomposition approach driven by sub-requirement references in Jackson's problem diagram (SRME), using requirements to drive the design of software architecture. By dividing the functional requirements, we build a problem diagram that can show more business details, obtain the reference relationship set between sub-requirements and design domains, and obtain the decomposition results of microservices according to the set partition steps. Finally, according to the service granularity and the security of functional requirements, the decomposition results are adjusted to obtain microservice candidates. A working example of a cargo tracking system demonstrates the applicability and feasibility of this method. The microservice decomposition results obtained through this method match services with requirements, and due to its consideration of performance and associated databases, they have better afferent coupling.