Data transmission method and device between micro-services and electronic equipment

A data transmission method and micro-service technology, which is applied in the field of computer non-transient readable storage media and data transmission between micro-services, can solve the problem of high interface adjustment costs, reduce adjustment costs, optimize data transmission and processing efficiency Effect

Pending Publication Date: 2020-05-29
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF10 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the microservice architecture also faces many challenges. For example, the cost of interface adjustment is high, and microservices communicate through interfaces. If the API of a certain microservice is modified, all microservices that use this interface may need to be adjusted.

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 transmission method and device between micro-services and electronic equipment
  • Data transmission method and device between micro-services and electronic equipment
  • Data transmission method and device between micro-services and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0040] Like numbers and letters denote similar items in the following figures, so that once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0041] figure 1 It is a schematic diagram of an application scenario of the data transmission method between microservices provided in the embodiment of this application. Such as figure 1 As shown, the application scenario includes a server 10, and the server 10 may be one or more servers. A microservice can be considered as a process run by the server 10 to implement a certain functi...

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 embodiment of the invention provides a data transmission method and device between micro-services and electronic equipment, and belongs to the technical field of communication, and the micro-services comprise a first micro-service and a second micro-service. The method comprises the following steps: aggregating service data of a plurality of first micro-services; writing the service data of each first micro-service into a partition corresponding to the first micro-service in a message queue; According to the target micro-service corresponding to the second micro-service, obtaining servicedata required by the second micro-service from the partition corresponding to the target micro-service in the message queue. The embodiment of the invention provides a technical scheme. Storing the data of the first micro-service in a partition corresponding to the first micro-service in a message queue, therefore, the second micro-service can obtain the data of the first micro-service without accessing the first micro-service, the data transmission and processing efficiency is optimized through the message queue, the second micro-service does not need to be adjusted even if the interface of the first micro-service is changed, and the adjustment cost of the micro-service is reduced.

Description

technical field [0001] The present application relates to the field of communication technology, and in particular to a data transmission method and device between microservices, electronic equipment, and a computer non-transitory readable storage medium. Background technique [0002] With the continuous increase of demand for monolithic applications, project maintenance has become more and more difficult, and more applications have begun to adopt the microservice architecture. In microservices, each service runs in its own process, and the communication between services adopts a lightweight communication mechanism, usually using HTTP (Hypertext Transfer Protocol) resource API (Application Programming Interface, application programming interface). The advantage of the microservice architecture is that it just makes up for the shortcomings of a single application. For example, a single microservice only focuses on a specific business function, so its business is clear and the...

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): G06F9/54
CPCG06F9/546G06F2209/548
Inventor 耿正熙
Owner BEIJING MININGLAMP SOFTWARE SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products