Micro-service cross-service data acquisition method and device and micro-service equipment

A data acquisition and cross-service technology, which is applied to micro-service devices and computer-readable storage media, and micro-service cross-service data acquisition, can solve problems such as system freezes, unusable network resources, etc., to reduce coupling, The effect of reducing the number of mutual calls, reducing memory consumption and network consumption

Inactive Publication Date: 2020-05-08
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

like figure 1 As shown, the virtual machine service and the host service need to call the user service each time to obtain the required user information from the user service database or database cache. Although the database cache setting can reduce database consumption, calling other services is still It needs to consume network resources. If the two services are cross-computer rooms or even cross-regions, excessive network consumption will also cause the system to freeze and become unusable.

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
  • Micro-service cross-service data acquisition method and device and micro-service equipment
  • Micro-service cross-service data acquisition method and device and micro-service equipment
  • Micro-service cross-service data acquisition method and device and micro-service equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0043] Please refer to figure 2 , figure 2 It is a flowchart of a microservice cross-service data acquisition method provided by an embodiment of the present invention. The method can include:

[0044] Step 101: The microservice device acquires data information of cross-service data to be queried.

[0045] Wherein, the microservice devi...

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 micro-service cross-service data acquisition method and device, micro-service equipment and a computer readable storage medium, and the method comprises the steps of enablingthe the micro-service equipment inquire whether to-be-queried cross-service data exists in a preset distributed cache database or not according to data information of the to-be-queried cross-servicedata; if so, obtaining to-be-queried cross-service data from the to-be-queried cross-service data; if not, acquiring to-be-queried cross-service data from the target micro-service equipment, and storing the to-be-queried cross-service data into a preset distributed cache database. The preset distributed cache database is utilized to cache the resource information queried across services in one service. The resource information can be directly queried from the preset distributed cache database by other services at the next time, so that the mutual calling times among the services in the micro-service architecture system are reduced, the memory consumption and the network consumption caused by excessive mutual calling among the services are reduced, and the coupling among the services is reduced.

Description

technical field [0001] The present invention relates to the technical field of microservice architecture, and in particular to a microservice cross-service data acquisition method, device, microservice equipment, and computer-readable storage medium. Background technique [0002] In the era of cloud computing, resources are managed in a unified manner through the cloud platform, and the business scope of the cloud platform is becoming wider and wider, and the business is becoming more and more complex. For example, user service modules, network modules, storage modules, computing modules, security modules, etc., sometimes a small problem can lead to a complete breakdown of the entire system. In order for each module not to affect each other, using microservice technology to separate each module has become a future trend. But problems also follow. There are too many divided services, but business contacts are still relatively frequent. For example, the computing module need...

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/2455G06F16/23
CPCG06F16/24552G06F16/23
Inventor 刘正伟朱玉猛
Owner LANGCHAO ELECTRONIC INFORMATION IND 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