Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Topological relationship query method and device, electronic equipment and medium

A technology of topological relationship and query method, applied in the computer field, can solve the problems of high resource overhead, difficult to minute level, and unsatisfactory query performance.

Pending Publication Date: 2021-06-29
BAIDU INT TECH (SHENZHEN) CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The query performance of the first method above is extremely low, and it is difficult to return query results at the minute level, while the second method has high resource overhead and slow summarization call chain speed, resulting in unsatisfactory query performance

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
  • Topological relationship query method and device, electronic equipment and medium
  • Topological relationship query method and device, electronic equipment and medium
  • Topological relationship query method and device, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Figure 1D It is a schematic flowchart of a method for querying a topology relationship provided in Embodiment 1 of the present application. This embodiment is applicable to the case of querying the topology call relationship of the micro-service nodes, and can be executed by the device for querying the topology relationship provided by the embodiment of the present application, and the device can be implemented by means of software and / or hardware. As shown in Figure 1, the method may include:

[0062] S101. When receiving a topology query request, according to the query conditions in the topology query request, read at least one piece of microservice node pair information from the pre-stored set of microservice node pairs; wherein, the microservice node pair information Contains information of two microservice nodes that have a calling relationship.

[0063] Among them, the microservice node represents a method to achieve a certain technical effect, such as music pl...

Embodiment 2

[0102] Figure 2A It is a schematic flowchart of a method for querying a topology relationship provided in Embodiment 2 of the present application. This embodiment provides a specific implementation manner for the foregoing embodiments. As shown in FIG. 2, the method may include:

[0103] S201. When a topology query request is received, determine the query time granularity and query time range according to the time condition information in the query conditions, and read at least one database table corresponding to the query time granularity and the query time range from the database .

[0104] Among them, in the database, each database table is created according to different time granularities, and correspondingly, each database table stores information about microservice node pairs corresponding to the time granularity.

[0105] Specifically, at least one database table matching the query time granularity and query time range is read from the database.

[0106] Exemplarily...

Embodiment 3

[0125] image 3 A schematic structural diagram of a topological relationship query device 30 provided in Embodiment 3 of the present application, which can execute a topological relationship query method provided in any embodiment of the present application, and has corresponding functional modules and beneficial effects for executing the method. like image 3 As shown, the device may include:

[0126] The microservice node pair information reading module 31 is configured to read at least one piece of microservice node pair information from the set of prestored microservice node pairs according to the query conditions in the topology query request when receiving a topology query request ; Wherein, the microservice node pair information includes information of two microservice nodes having a call relationship;

[0127] Topology representation data generating module 32, configured to generate topology representation data according to the read microservice node pair information...

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 topological relationship query method and device, electronic equipment and a medium, and relates to the technical field of computers. According to the specific implementation scheme, when a topology query request is received, at least one piece of micro-service node pair information is read from a pre-stored micro-service node pair set according to query conditions in the topology query request, wherein the micro-service node pair information comprises information of two micro-service nodes with a calling relationship; the method also includes generating topological graph expression data according to the read micro-service node pair information; and drawing a topological relation graph according to the topological graph expression data and displaying the topological relation graph. According to the embodiment of the invention, the micro-service node pair information is read from the pre-stored micro-service node pair set to generate the topological graph expression data, and finally the topological relation is drawn according to the topological graph expression data, so that node information and upstream and downstream relations do not need to be summarized in real time, the query performance is improved, and a data real-time processing cluster does not need to be established, so that the resource overhead is reduced.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to information retrieval technology, and in particular to a method, device, electronic device and medium for querying topological relationships. Background technique [0002] At present, many business applications are implemented on complex and large-scale distributed clusters. Business applications are built on different JAVA microservice modules. These modules have different architectures, a large number of applications, a large number of module requests, and complex and changeable call chains. In actual business, users need to query the topology call relationship of these microservice modules to analyze traffic sources and performance bottlenecks. [0003] Existing topological calling relationship query methods mainly include two types: (1) Draw the topological relationship by summarizing node information and upstream and downstream relationships in real time. (2) E...

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
IPC IPC(8): G06F16/9038H04L29/08
CPCG06F16/9038H04L67/10
Inventor 刘涛庞超李奇原
Owner BAIDU INT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products