CN113986955A - Method and device for determining service chain, electronic equipment and medium - Google Patents

Method and device for determining service chain, electronic equipment and medium Download PDF

Info

Publication number
CN113986955A
CN113986955A CN202111282115.0A CN202111282115A CN113986955A CN 113986955 A CN113986955 A CN 113986955A CN 202111282115 A CN202111282115 A CN 202111282115A CN 113986955 A CN113986955 A CN 113986955A
Authority
CN
China
Prior art keywords
service
chain
target
attribute
attributes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111282115.0A
Other languages
Chinese (zh)
Other versions
CN113986955B (en
Inventor
包彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fusionskye Beijing Software Co ltd
Original Assignee
Fusionskye Beijing Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fusionskye Beijing Software Co ltd filed Critical Fusionskye Beijing Software Co ltd
Priority to CN202111282115.0A priority Critical patent/CN113986955B/en
Publication of CN113986955A publication Critical patent/CN113986955A/en
Application granted granted Critical
Publication of CN113986955B publication Critical patent/CN113986955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for determining a service chain, electronic equipment and a medium. The method collects service data of different services in real time; the service data comprises service attributes and attribute values of the corresponding service attributes; acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance; and determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of different services. The method reduces the cost and complexity of service chain association matching.

Description

Method and device for determining service chain, electronic equipment and medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for determining a service chain, an electronic device, and a medium.
Background
TraceId is the key to end-to-end tracing based on the Dapper paper, and is used for associating the execution steps of each application request among service calls by assigning a unique TraceId to all service calls requested by the application in the system, which is generally called as a global serial number. When all service calls requested each time have a unique global flow number, they can be correlated and monitored and tracked according to the global flow number.
According to the method, in order to realize the correlation of the call link, the application program needs to be modified, and each application program needs to print information such as TraceId, SpanId, ParentSpanId and the like in a log while processing the service call.
Wherein, TraceId: each application request is assigned a unique TraceId that marks multiple service calls in one application request. When an upstream node initiates a request, service invocation transmits the TraceId to a downstream node, all service invocations related to the current application request have the same unique TraceId, and a monitoring system can associate all service invocations through the TraceId to form a service invocation link;
spanid: span represents a single service call in a distributed system. An ID of the user and an ID of a caller (ParentSpan) need to be recorded in a service call;
paretsland: the ID of the caller (parent) Span indicates the hierarchical relationship of the call. If it is the first starting node on the service invocation link, the ParentSpaniD is null.
For a large number of enterprise clients, the method can realize service call association only by modifying the existing application program, and increases the cost and complexity of business chain association matching.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, an electronic device, and a medium for determining a service chain, so as to solve the above problems in the prior art, and reduce the cost and complexity of service chain association matching
In a first aspect, a method for determining a service chain is provided, where the method may include:
collecting service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance;
and determining a service chain of the target service based on a mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of the different services.
In one possible implementation, collecting service data of different services in real time includes:
and collecting service messages and/or service logs of different services in real time.
In a possible implementation, after obtaining a mapping relationship of service attributes between different execution steps in each service configured in advance, the method further includes:
and acquiring attribute values of all service attributes corresponding to the target service in the service data based on the service attributes related to different execution steps in the mapping relation corresponding to the target service.
In one possible implementation, determining a service chain of a target service based on a mapping relationship corresponding to the target service and attribute values of service attributes corresponding to the target service includes:
based on the mapping relation corresponding to the target service, searching for the same attribute value of the same service attribute related to different execution steps with the mapping relation in the target service;
aggregating the attribute values of other service attributes related to the searched same attribute value;
and associating the attribute values of the aggregated service attributes according to the sequence of the execution steps of the target service to obtain a service chain of the target service.
In one possible implementation, after determining the service chain of the target service, the method further includes:
and configuring a chain identifier for each service chain of the target service, wherein the chain identifier is used for uniquely identifying the corresponding service chain.
In one possible implementation, after configuring a chain identifier for each service chain of the target service, the method further includes:
and for each service chain, performing service monitoring on the service chain of the target service based on the chain identifier of the service chain.
In a second aspect, an apparatus for determining a service chain is provided, and the apparatus may include:
the acquisition unit is used for acquiring service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
the acquiring unit is used for acquiring the mapping relation of the service attributes between different execution steps corresponding to each service which is configured in advance;
and the determining unit is used for determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of the different services.
In one possible implementation, the collection unit is specifically configured to collect service messages and/or service logs of different services in real time.
In a possible implementation, the obtaining unit is further configured to obtain an attribute value of each service attribute corresponding to the target service in the service data based on service attributes of different execution steps in a mapping relationship corresponding to the target service.
In one possible implementation, the determining unit is specifically configured to:
based on the mapping relation corresponding to the target service, searching for the same attribute value of the same service attribute related to different execution steps with the mapping relation in the target service;
aggregating the attribute values of other service attributes related to the searched same attribute value;
and associating the attribute values of the aggregated service attributes according to the execution sequence of the execution steps of the target service to obtain a service chain of the target service.
In one possible implementation, the apparatus further comprises a configuration unit;
the configuration unit is configured to configure a chain identifier for each service chain of the target service, where the chain identifier is used to uniquely identify a corresponding service chain.
In one possible implementation, the apparatus further comprises a monitoring unit;
and the monitoring unit is used for monitoring the service of the service chain of the target service based on the chain identifier of the service chain aiming at each service chain.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, having stored therein a computer program which, when executed by a processor, performs the method steps of any of the above first aspects.
The method for determining the service chain collects service data of different services in real time; the service data comprises service attributes and attribute values of the corresponding service attributes; acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance; and determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of different services. The method determines the service attribute and the corresponding attribute value corresponding to each service and the service chain formed by the corresponding service attribute and the attribute value by acquiring and analyzing the service data of different services in real time and finding the calling relationship of different execution steps in each service based on the data.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a system architecture diagram of a method for determining an application service chain according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for determining a service chain according to an embodiment of the present application;
FIG. 3A is a process flow diagram of a transfer service provided by an embodiment of the application;
fig. 3B is a flowchart of a payment service processing provided in the embodiment of the present application;
fig. 4 is a schematic structural diagram of a service chain determining apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without any creative effort belong to the protection scope of the present application.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below:
service link (or "service chain"): the method comprises the steps that a certain business with large influence on enterprises and customers is initiated from the business to the whole execution path of final processing completion, for example, a user initiates a transfer request from a mobile banking client, the transfer request is called and processed by a plurality of application systems inside and outside a bank, and finally the accounting is successful, and the execution state of each calling and each step needs to be monitored in real time.
And (3) node: on a critical service link, a single service processing unit that needs to be passed by each service request may be an application system, a subsystem, or a service or interface call.
Network messages (or "service messages"): the network data packet transmitted on the network when one node calls the next node may be an Http protocol, an Xml protocol, a Jason protocol, or the like, or a proprietary protocol defined by an application developer, and includes the contents of a header and a body of a message.
Application log (or "service log"): the application flow log output (printed) by each node during execution typically contains a timestamp, a thread name, a method name, a calling service, a target service, an error code, execution time, and the like.
The method for determining a service chain provided in the embodiment of the present application may be applied to a system architecture shown in fig. 1, and as shown in fig. 1, the system may include: the system comprises data acquisition equipment, service chain matching equipment and service chain output equipment.
And the data acquisition equipment is used for acquiring the service data of at least one application system. The data acquisition method mainly acquires non-invasive network bypass service messages and/or service logs.
And the service chain matching equipment is used for sequentially associating the service data of the same service according to the execution steps based on the service data and the service attribute mapping relation between different execution steps corresponding to each service which is configured in advance to form a service chain.
And the business chain output equipment is used for outputting the matched business chain without being labeled.
The system can acquire service data of different services in real time, wherein the service data comprises service attributes and attribute values of corresponding service attributes, and acquires service attribute mapping relations among different execution steps corresponding to the services which are configured in advance; and determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of different services.
Compared with the prior art, the technical scheme does not need to modify an application system, reduces the cost, does not need to endow unique traceId to all service calls requested by each application, and reduces the complexity of service calls. In addition, the method can realize service calling association in one application system, can also realize service calling association across different application systems, and can meet the requirement of a client on realizing full link matching and monitoring from a service view.
The preferred embodiments of the present application will be described below with reference to the accompanying drawings of the specification, it should be understood that the preferred embodiments described herein are merely for illustrating and explaining the present application, and are not intended to limit the present application, and that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 2 is a flowchart illustrating a method for determining a service chain according to an embodiment of the present application. As shown in fig. 2, the method may include:
and step S210, collecting service data of different services in real time.
In specific implementation, service messages and/or service logs of different services are collected in real time. The service data may include service attributes and attribute values for the corresponding service attributes.
For example, a transfer service initiated by a mobile banking service is a service, the service attributes in the service data of the transfer service may include a mobile phone number, a card number, an identification number, an internet client number, a core client number, and the like, and the attribute values of the corresponding service attributes are in sequence: 183, 6222, 8888, 100, 345 and ID 2.
Optionally, the service data may further include information such as a timestamp and a corresponding application system identifier.
Step S220, obtaining a mapping relationship of service attributes between different execution steps corresponding to each service configured in advance.
Before executing the step, different execution steps in the service processing process of executing each service, such as the calling relation among a plurality of systems or nodes, are obtained.
For example, as shown in fig. 3A, taking a transfer service initiated by a mobile phone bank as an example, the nodes involved in the transfer service include: and a node A: mobile banking client, node B: WEB server of mobile banking, node C: a service platform front server and a node D: for the private service platform and the node E: switching platform and node F: and (4) a core system.
The processing process of the transfer service comprises the following steps: the node A calls the node B; the node B calls the node C; the node C calls a node D; the node D calls a node E; node E invokes node F. That is, there are 5 execution steps for the transfer service.
The service data required by the node A to call the node B comprises a mobile phone number, a card number, an identity card number, an internet client number, a core client number and a corresponding attribute value.
The service data required by the node B for calling the node C comprises the internet client number and the corresponding attribute value.
The service data required by the node C calling the node D comprises a mobile phone number, a card number, a BP serial number, a core customer number and a corresponding attribute value. The BP serial number is service data generated by the node C, that is, the service data includes a service attribute of the BP serial number and an attribute value of a corresponding specific number.
The service data required by the node D for calling the node E comprises a BP serial number and a corresponding attribute value.
The service data required by the calling node F of the node E comprises a BP stream number, a core client number and a corresponding attribute value.
And associating the same service attribute among different execution steps in the transfer service to obtain a mapping relation of the service attribute among the different execution steps corresponding to the transfer service.
Wherein, the mapping relationship can be expressed as:
a) calling the internet connection client number in the execution step of the node B by the node A, namely calling the internet connection client number in the execution step of the node C by the node B;
b) calling the mobile phone number in the executing step of the node B by the node A, namely calling the mobile phone number in the executing step of the node D by the node C;
c) calling the card number in the executing step of the node B by the node A, namely calling the card number in the executing step of the node D by the node C;
d) calling the core client number in the execution step of the node B by the node A, namely calling the core client number in the execution step of the node D by the node C;
e) calling the BP serial number in the executing step of the node D by the node C, namely calling the BP serial number in the executing step of the node E by the node D;
f) calling the core client number in the execution step of the node D by the node C, namely calling the core client number in the execution step of the node F by the node E;
g) the BP flow number in the execution step of the node E is called by the node D.
In an example, taking the service as the internet protocol initiated payment service as an example, as shown in fig. 3B, the nodes involved in the payment service include: and a node A: external load, node B: externally connected cluster and node C: exchange load, node D: switching cluster, node E: core load, node F: core cluster and node G: and a card center.
The processing process of the transfer service comprises the following steps: node a calls node B (call 1); node B calls node C (call 2); node C calls node D (call 3); node D calls node E (call 4); node E calls node F (call 5); node D calls node G (call 6); after node D calls node G, execution node D calls node E (call 7), and node E calls node F (call 8).
The service data required for the call between the nodes involved in the processing procedure includes a transaction code and a serial number, which may be specifically shown in table 1:
TABLE 1
Figure BDA0003331526800000091
Table 1 shows:
calling 1: the service data required by the node A to call the node B comprises a transaction code of stdprocode: 3606210, TrxId flow number: 2020072324586650870203230211608.
calling 2: the service data required by the node C called by the node B comprises a transaction code of stdprocode: 3606210, TrxId flow number: 2020072324586650870203230211608.
calling 3: the service data required by the node C calling the node D comprises a transaction code of stdprocode: 3606210, TrxId flow number: 2020072324586650870203230211608.
calling 4: the node D calls the transaction code of the service data required by the node E, wherein the transaction code comprises tran _ cod _ cntn _ adapt _ cod: 3606210, Intor _ tran _ jnal _ num water number: WL 072020072324586650870203230211608.
Calling 5: the node E calls the transaction code of the service data required by the node F, wherein the transaction code comprises tran _ cod _ cntn _ adapt _ cod: 3606210, Intor _ tran _ jnal _ num water number: WL 072020072324586650870203230211608.
Calling 6: the service data required by the node D calling the node G comprises a transaction code of stdprocode: 100KPAY001, stdprocode water number: WL 072020072324586650870203230211608.
Calling 7: the node D calls the transaction code of the service data required by the node E, wherein the transaction code comprises tran _ cod _ cntn _ adapt _ cod: 3606210, Intor _ tran _ jnal _ num water number: WL 072020072324586650870203230211608.
Calling 8: the node E calls the transaction code of the service data required by the node F, wherein the transaction code comprises tran _ cod _ cntn _ adapt _ cod: 3606210, Intor _ tran _ jnal _ num water number: WL 072020072324586650870203230211608.
Wherein, the mapping relationship can be expressed as:
TrxId in call 1-TrxId in call 2;
TrxId in call 2-TrxId in call 3;
TrxId in 'WL 07' + call 3-inter _ tran _ jnal _ num in call 4;
the inter _ tran _ jnal _ num in call 4 is equal to the inter _ tran _ jnal _ num in call 5;
invoking the inter _ tran _ jnal _ num in 5 as invoking 6. Stdprocode;
stdprocode in call 6 — inter _ tran _ jnal _ num in call 7;
the inter _ tran _ jnal _ num in call 7 is equal to the inter _ tran _ jnal _ num in call 8.
Therefore, based on the service attributes related to different execution steps in each service, the mapping relation of the service attributes between different execution steps corresponding to each service is configured, so as to obtain the pre-configured mapping relation of the service attributes between different execution steps corresponding to each service.
Step S230, determining a service chain of the target service based on the mapping relationship corresponding to the target service and the attribute value of each service attribute corresponding to the target service.
Before executing the step, the attribute values of the service attributes corresponding to the target service in the service data can be obtained according to the service attributes of different executing steps in the mapping relation corresponding to the target service. Wherein, the target service is one of different services.
In the specific implementation of this step, since the attribute values corresponding to the same service attribute in a service, such as a transfer service or a payment service, are the same, based on the mapping relationship corresponding to the target service, the same attribute value of the same service attribute involved in different execution steps in which the mapping relationship exists in the target service is searched, and the attribute values of other service attributes related to the searched same attribute value are aggregated.
For example, with reference to fig. 3A, a mapping relationship corresponding to the target service is searched, and a first execution step (a node a calls a node B) and a second execution step (a node B calls a node C) in 5 execution steps of the target service are obtained, where the first execution step and the second execution step have the same service attribute and are internet connection client numbers;
the first execution step (the node A calls the node B) and the third execution step (the node C calls the node D) have the same service attribute of the mobile phone number;
and by analogy, the same service attribute related to different execution steps with mapping relation in the target service is obtained.
And then, determining the same attribute values of the service attributes having the association relationship in the collected service data, wherein the internet client numbers are all ID1, and the mobile phone numbers are all 183X 1234.
Since each execution step generally involves at least one service attribute, for example, the service attribute involved in the first execution step includes a mobile phone number, a card number, an identification number, a network connection client number, a core client number, and a corresponding attribute value. And after determining that the first execution step and the second execution step have the same attribute value of the internet connection client number, the other service attributes associated with the internet connection client number comprise the mobile phone number, the card number, the identification number, the core client number and the attribute values of other service attributes.
Therefore, at this time, the attribute values of other service attributes related to the found same attribute value may be aggregated, and the aggregated attribute values of the service attributes are associated according to the execution sequence of the target service execution steps, so as to obtain the service chain of the target service.
In some embodiments, each service chain of the target service may be configured with a chain identification for uniquely identifying the corresponding service chain.
And aiming at each service chain, based on the chain identification of the service chain, the service chain of the target service can be monitored.
The method for determining the service chain collects service data of different services in real time; the service data comprises service attributes and attribute values of the corresponding service attributes; acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance; and determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of different services. The method determines the service attribute and the corresponding attribute value corresponding to each service and the service chain formed by the corresponding service attribute and the attribute value by acquiring and analyzing the service data of different services in real time and finding the calling relationship of different execution steps in each service based on the data.
Corresponding to the foregoing method, an embodiment of the present application further provides a device for determining a service chain, where as shown in fig. 4, the device for determining a service chain includes: an acquisition unit 410, an acquisition unit 420 and a determination unit 430;
the acquisition unit 410 is used for acquiring service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
an obtaining unit 420, configured to obtain a mapping relationship between service attributes of different execution steps corresponding to each service configured in advance;
a determining unit 430, configured to determine a service chain of a target service based on a mapping relationship corresponding to the target service and an attribute value of each service attribute corresponding to the target service, where the target service is one of the different services.
In one possible implementation, the collecting unit 410 is specifically configured to collect service messages and/or service logs of different services in real time.
In a possible implementation, the obtaining unit 420 is further configured to obtain attribute values of service attributes corresponding to the target service in the service data based on service attributes involved in different execution steps in a mapping relationship corresponding to the target service.
In one possible implementation, the determining unit 430 is specifically configured to:
based on the mapping relation corresponding to the target service, searching for the same attribute value of the same service attribute related to different execution steps with the mapping relation in the target service;
aggregating the attribute values of other service attributes related to the searched same attribute value;
and associating the attribute values of the aggregated service attributes according to the execution sequence of the execution steps of the target service to obtain a service chain of the target service.
In one possible implementation, the apparatus further comprises a configuration unit 440;
a configuring unit 440, configured to configure a chain identifier for each service chain of the target service, where the chain identifier is used to uniquely identify a corresponding service chain.
In one possible implementation, the apparatus further comprises a monitoring unit 450;
and the monitoring unit 450 unit is used for monitoring the service of the service chain of the target service based on the chain identifier of the service chain aiming at each service chain.
The functions of each functional unit of the apparatus for determining a service chain provided in the foregoing embodiments of the present application may be implemented by using the foregoing method steps, and therefore, detailed working processes and beneficial effects of each unit in the apparatus for determining a service chain provided in the embodiments of the present application are not repeated herein.
An electronic device is further provided in the embodiments of the present application, as shown in fig. 5, and includes a processor 510, a communication interface 520, a memory 530, and a communication bus 540, where the processor 510, the communication interface 520, and the memory 530 complete communication with each other through the communication bus 540.
A memory 530 for storing a computer program;
the processor 510, when executing the program stored in the memory 530, implements the following steps:
collecting service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance;
and determining a service chain of the target service based on a mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of the different services.
In one possible implementation, collecting service data of different services in real time includes:
and collecting service messages and/or service logs of different services in real time.
In a possible implementation, after obtaining a mapping relationship of service attributes between different execution steps in each service configured in advance, the method further includes:
and acquiring attribute values of all service attributes corresponding to the target service in the service data based on the service attributes related to different execution steps in the mapping relation corresponding to the target service.
In one possible implementation, determining a service chain of a target service based on a mapping relationship corresponding to the target service and attribute values of service attributes corresponding to the target service includes:
based on the mapping relation corresponding to the target service, searching for the same attribute value of the same service attribute related to different execution steps with the mapping relation in the target service;
aggregating the attribute values of other service attributes related to the searched same attribute value;
and associating the attribute values of the aggregated service attributes according to the execution sequence of the execution steps of the target service to obtain a service chain of the target service.
In one possible implementation, after determining the service chain of the target service, the method further includes:
and configuring a chain identifier for each service chain of the target service, wherein the chain identifier is used for uniquely identifying the corresponding service chain.
In one possible implementation, after configuring a chain identifier for each service chain of the target service, the method further includes:
and for each service chain, performing service monitoring on the service chain of the target service based on the chain identifier of the service chain.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Since the implementation manner and the beneficial effects of the problem solving of each device of the electronic device in the foregoing embodiment can be implemented by referring to each step in the embodiment shown in fig. 2, detailed working processes and beneficial effects of the electronic device provided in the embodiment of the present application are not repeated herein.
In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the method for determining a service chain according to any one of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for determining a service chain according to any one of the above embodiments.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.

Claims (10)

1. A method for determining a service chain, the method comprising:
collecting service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
acquiring a mapping relation of service attributes between different execution steps corresponding to each service which is configured in advance;
and determining a service chain of the target service based on a mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of the different services.
2. The method of claim 1, wherein collecting service data of different services in real time comprises:
and collecting service messages and/or service logs of different services in real time.
3. The method of claim 1, wherein after obtaining the service attribute mapping relationship between different execution steps in the services configured in advance, the method further comprises:
and acquiring attribute values of all service attributes corresponding to the target service in the service data based on the service attributes related to different execution steps in the mapping relation corresponding to the target service.
4. The method according to claim 1 or 3, wherein determining the service chain of the target service based on the mapping relationship corresponding to the target service and the attribute value of each service attribute corresponding to the target service comprises:
based on the mapping relation corresponding to the target service, searching for the same attribute value of the same service attribute related to different execution steps with the mapping relation in the target service;
aggregating the attribute values of other service attributes related to the searched same attribute value;
and associating the attribute values of the aggregated service attributes according to the sequence of the execution steps of the target service to obtain a service chain of the target service.
5. The method of claim 1, wherein after determining the traffic chain for the target traffic, the method further comprises:
and configuring a chain identifier for each service chain of the target service, wherein the chain identifier is used for uniquely identifying the corresponding service chain.
6. The method of claim 5, wherein after configuring a chain identification for each service chain of the target service, the method further comprises:
and for each service chain, performing service monitoring on the service chain of the target service based on the chain identifier of the service chain.
7. An apparatus for determining a service chain, the apparatus comprising:
the acquisition unit is used for acquiring service data of different services in real time; the service data comprises service attributes and attribute values of corresponding service attributes;
the acquiring unit is used for acquiring the mapping relation of the service attributes between different execution steps corresponding to each service which is configured in advance;
and the determining unit is used for determining a service chain of the target service based on the mapping relation corresponding to the target service and the attribute value of each service attribute corresponding to the target service, wherein the target service is one of the different services.
8. The apparatus of claim 7, wherein the obtaining unit is further configured to obtain an attribute value of each service attribute corresponding to the target service in the service data based on service attributes of different execution steps in a mapping relationship corresponding to the target service.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202111282115.0A 2021-11-01 2021-11-01 Service chain determining method and device, electronic equipment and medium Active CN113986955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111282115.0A CN113986955B (en) 2021-11-01 2021-11-01 Service chain determining method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111282115.0A CN113986955B (en) 2021-11-01 2021-11-01 Service chain determining method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN113986955A true CN113986955A (en) 2022-01-28
CN113986955B CN113986955B (en) 2024-03-19

Family

ID=79745279

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111282115.0A Active CN113986955B (en) 2021-11-01 2021-11-01 Service chain determining method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113986955B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095201A1 (en) * 2014-12-19 2016-06-23 华为技术有限公司 Service link deployment method and device
CN107229619A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 Internet service link calls statistics, methods of exhibiting and the device of situation
WO2020042029A1 (en) * 2018-08-29 2020-03-05 华为技术有限公司 Discovery method for invoked link, apparatus, device, and storage medium
CA3168303A1 (en) * 2019-01-18 2020-07-23 10353744 Canada Ltd. Microservice full-link monitoring system and method
WO2020220638A1 (en) * 2019-04-29 2020-11-05 平安科技(深圳)有限公司 Method and apparatus for associating link system with log system, and storage medium
WO2020252896A1 (en) * 2019-06-18 2020-12-24 平安科技(深圳)有限公司 Hash table-based full-link data sampling method, apparatus, and device, and storage medium
CN112416708A (en) * 2020-11-17 2021-02-26 中国工商银行股份有限公司 Asynchronous call link monitoring method and system
CN113094166A (en) * 2021-05-10 2021-07-09 杭州网易云音乐科技有限公司 Link tracking method, device, medium and computing equipment
CN113536054A (en) * 2021-07-15 2021-10-22 中国工商银行股份有限公司 Business monitoring method, device, equipment and storage medium based on graph data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016095201A1 (en) * 2014-12-19 2016-06-23 华为技术有限公司 Service link deployment method and device
CN107229619A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 Internet service link calls statistics, methods of exhibiting and the device of situation
WO2020042029A1 (en) * 2018-08-29 2020-03-05 华为技术有限公司 Discovery method for invoked link, apparatus, device, and storage medium
CA3168303A1 (en) * 2019-01-18 2020-07-23 10353744 Canada Ltd. Microservice full-link monitoring system and method
WO2020220638A1 (en) * 2019-04-29 2020-11-05 平安科技(深圳)有限公司 Method and apparatus for associating link system with log system, and storage medium
WO2020252896A1 (en) * 2019-06-18 2020-12-24 平安科技(深圳)有限公司 Hash table-based full-link data sampling method, apparatus, and device, and storage medium
CN112416708A (en) * 2020-11-17 2021-02-26 中国工商银行股份有限公司 Asynchronous call link monitoring method and system
CN113094166A (en) * 2021-05-10 2021-07-09 杭州网易云音乐科技有限公司 Link tracking method, device, medium and computing equipment
CN113536054A (en) * 2021-07-15 2021-10-22 中国工商银行股份有限公司 Business monitoring method, device, equipment and storage medium based on graph data

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
SHALVAH\'S BLOG: "A practical tracing journey with OpenTelemetry on Node.js", pages 1, Retrieved from the Internet <URL:https://blog.shalvah.me/posts/a-practical-tracing-journey-with-opentelemetry-on-node-js> *
YANGYADATTA 等: "Multi-agent Distributed Control and Power sharing between Microgrid DERs", 2020 21ST NATIONAL POWER SYSTEMS CONFERENCE (NPSC), pages 1 - 6 *
刘清洋: "面向微服务架构化应用的容器云平台的研究与实现", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 4, pages 139 - 118 *
枕柯梦仙: "Flask全链路日志追踪TraceID实现", pages 1, Retrieved from the Internet <URL:https://zhuanlan.zhihu.com/p/343993061> *

Also Published As

Publication number Publication date
CN113986955B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN111163129B (en) Resource processing method and device based on cross-link network
CN110222533B (en) Distributed data security application method and system and electronic equipment
CN110780870B (en) Service execution method, device, equipment and storage medium
WO2020259003A1 (en) Link tracking method and apparatus
CN107920094B (en) Data acquisition method and device, server and network equipment
CN110602056B (en) Service parameter transmission method and device
CN108509392B (en) Multi-mechanism account checking method, system, computer equipment and storage medium
CN111245916A (en) Service calling method, service arranging method and device based on micro-service gateway
CN109327353B (en) Service flow determination method and device and electronic equipment
CN114172966B (en) Service calling method, service processing method and device under unitized architecture
CN112446786A (en) Abnormal transaction processing method and device, electronic equipment and readable storage medium
CN111163130A (en) Network service system and data transmission method thereof
CN113067875A (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN114745295A (en) Data acquisition method, device, equipment and readable storage medium
CN113596078A (en) Service problem positioning method and device
CN111405027B (en) Block chain consensus result screening method, device, computer equipment and storage medium
CN114640657A (en) Multi-registration center fusion method and device
CN113986955B (en) Service chain determining method and device, electronic equipment and medium
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN113469814A (en) Method and device for determining transaction duration data
CN112737869A (en) Link tracking method and system of ESB (Enterprise service bus) system
CN110990278A (en) Test method and device
US20240127158A1 (en) Method and system for generating key performance indicator prediction model for multi-cloud applications
CN116701410B (en) Method and system for storing memory state data for data language of digital networking
CN110659033B (en) Protocol registration distribution method, storage medium, electronic equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant