Unlock instant, AI-driven research and patent intelligence for your innovation.

Data initialization method and system under micro-service architecture

A data initialization and microservice technology, applied in database management systems, structured data retrieval, semi-structured data retrieval, etc., can solve the uncertainty of SQL execution order, cross-service data dependency initialization is difficult, and database initialization scripts are not solutions. Coupling and other problems to achieve the effect of satisfying decoupling

Pending Publication Date: 2020-11-24
上海翘腾科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, there is no popular solution for database initialization under the microservice system. One of the common solutions is to write SQL scripts for each service to complete this task during installation. The defect of this method lies in the SQL The uncertainty of the execution order makes it difficult to initialize cross-service data dependencies; another way is to write one or more unified SQL scripts for the entire system and execute them sequentially during installation. The disadvantage of this method is that in the database The writing of initialization scripts is not decoupled, and the development teams of all services jointly maintain these scripts, which increases communication and development costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data initialization method and system under micro-service architecture
  • Data initialization method and system under micro-service architecture
  • Data initialization method and system under micro-service architecture

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0047] see figure 1 As shown, a data initialization system under a microservice architecture of the present invention includes:

[0048] Composed of management services, SDK (Software Development Kit, software development kit), services under other micro-service systems that provide data or process data (the user service and order service in the figure are two examples);

[0049] Among them, the management service is the core of this system, which is...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data initialization method and system under a micro-service architecture, and relates to the field of software technology development. The system comprises a management service, an SDK and services under other micro-service systems for providing or processing data; the management service is responsible for being connected with the SDK to collect data needing to be initialized, parsing the dependency relationship of the initialized data, issuing a data initialization instruction meeting dependency to the SDK, and storing an instruction execution result; and the SDK isresponsible for collecting and reporting data needing to be initialized to the management service when services under other micro-service systems providing or processing the data are started. Initialization of the initialized data with a complex mutual relation can be completed under a micro-service system, successful initialization of the final data can be ensured by any service starting and dependence sequence, and the requirement of most services for the initialized data is ensured to be met, and decoupling of service direct initialization data is satisfied.

Description

technical field [0001] The invention belongs to the field of software technology development, and in particular relates to a data initialization system under a microservice architecture and a data initialization method under a microservice architecture. Background technique [0002] The present invention is mainly based on two backgrounds. One is the prevalence of micro-service software architectures; the other is that most software architectures have data initialization requirements in databases. [0003] At present, most software architectures have data initialization requirements in the database, and some preset data needs to be written into the database according to the pre-designed structure, such as default roles, default users, menu structures, and other business or system data. On the other hand, since microservices are different from previous software architectures, multiple databases are used for data storage, and one of the advantages of microservices is the mutua...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/23G06F16/25G06F16/81G06F21/62
CPCG06F16/2255G06F16/2365G06F16/252G06F16/81G06F21/6218
Inventor 石漾男刘海螺张礼军
Owner 上海翘腾科技有限公司