Micro-service division method based on limit context
A contextual, microservice technology, applied in program startup/switching, program control design, instrumentation, etc., to solve the problem of architects relying on intuition and experience
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2021-09-17
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to a microservice division method based on a bounded context, and belongs to the technical field of software system reconfiguration. Background technique
[0002] In the process of enterprise system refactoring, the first issue is to divide the legacy system into microservices. Microservice partition technology is a huge challenge in this field, and it is also a research hotspot in academia and industry. Requirements analysis is the early stage of software development. This stage determines the direction of software development and is a very important step. At present, there is no microservice division method specifically for the early stage of software microserviceization. Contents of the invention
[0003] The technical problem to be solved by the present invention is to provide a method for dividing microservices based on bounded contexts, which solves the problem that architects rely too much on intuition and experience in...
Examples
Embodiment
[0025] Example: such as Figure 1-3 As shown, a microservice division method based on bounded context includes the following steps:
[0026] 1) Analyze business scenarios;
[0027] 2) Use case diagram description, modeling through the use case diagram of the unified modeling language;
[0028] 3) Extract the context, and extract the business activity context through semantic and functional correlation analysis;
[0029] 4) Extract candidate microservices, determine context boundaries and name them, and obtain candidate microservices.
[0030] The specific implementation process is as follows:
[0031] In this embodiment, Jpetstore, an open source project on Github, is selected as a case study on the proposed method. Jpetstore is an e-commerce platform that provides customers with pet purchase services. The platform mainly includes functions such as browsing pets, adding to a shopping cart, and placing an order for purchase. This case has been applied to research on service...