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

CN113407326APending Publication Date: 2021-09-17KUNMING UNIV OF SCI & TECH
0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2021-09-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to a micro-service division method based on a limit context, and belongs to the technical field of software system reconstruction. The method comprises the following four steps: 1, analyzing a service scene, carding out a main service process of a system, and acquiring the service scene of the system; 2, using a case graph for description, and using a unified modeling language case graph for modeling; 3, extracting the context, and extracting the business activity context through semantic and functional correlation analysis; and 4, extracting candidate micro-services, determining context boundaries, and naming the context boundaries to obtain the candidate micro-services. According to the invention, a single architecture system is divided into micro-service challenges in the software architecture reconstruction process, and the method faces a software development demand stage, so that the problem that an architect excessively depends on intuition and experience to perform micro-service division in the past is solved, and objective decision suggestions are provided for the architect.
Need to check novelty before this filing date? Find Prior Art

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...