A digital object query method for distributed link tracing framework
By storing and updating the current request task and context link information in the data request message, the complex problem of link tracing in the distributed network is solved, the accuracy of task execution and the continuity of link information are achieved, and the system performance and large-scale traffic processing capabilities are improved.
Patent Information
- Application Number
- CN202411175327.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2044-08-26
AI Technical Summary
The existing distributed digital object development framework is difficult to effectively track and debug links under multi-threading or asynchronous conditions, resulting in a great performance impact and it is difficult to meet the needs of large-scale traffic acceptance.
By jointly storing the current request task and context link information in the data request message, a comprehensive recording of the digital object task content and processing order is achieved, ensuring the accurate transmission and sharing of the context information of each node in the distributed network, and the link information is updated in real time during the data request message delivery process, reducing the impact on system performance.
It improves the integrity and consistency of data tracking, ensures the accuracy of task execution and the continuity of link information, improves the ability to undertake large-scale traffic, and solves the complex problems of link data tracking and debugging methods.
Smart Images

Figure CN119128006B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of distributed digital networking, and specifically relates to a digital object query method, apparatus, device and readable storage medium for a distributed link tracking framework. Background Art
[0002] In the context of modern information technology and big data applications, the Digital Internet, as a virtual data network based on the Internet, has achieved interconnection and interoperability of heterogeneous, heterogeneous, and sovereign data through standardized protocols, greatly promoting the use and value of data.
[0003] Currently, distributed digital object development frameworks are widely used in digital networking systems to implement flexible distributed digital object operations. To ensure the application of distributed digital object development frameworks in complex and heterogeneous data spaces, distributed digital object development frameworks also need to provide corresponding link tracking functions to ensure the recording of data transmission.
[0004] However, the open source link tracking framework of the existing distributed digital object development framework generally does not support automatic processing in multi-threaded scenarios, which makes it difficult for developers to effectively track and debug in multi-threaded or asynchronous situations. At the same time, since the link tracking function requires additional data transmission, it also has a significant impact on the performance of the original service, making it difficult to meet the needs of large-scale traffic handling. Summary of the Invention
[0005] The present application aims to provide a digital object query method, apparatus, device and readable storage medium for a distributed link tracking framework, at least to solve the problem of complex link data tracking and debugging methods in the process of information interaction in a distributed digital network.
[0006] In a first aspect, embodiments of the present application disclose a digital object query method for a distributed link tracing framework, which is applied to a local network node of a distributed network, including:
[0007] Obtaining a data request message for digital object data; the data request message includes a commonly stored current request task and context link information; the current request task is used to represent the task content for the digital object at the local network node; the context link information is used to represent the task content and processing order of each execution task in the task group where the current request task is located, at different network nodes in the distributed network, for the digital object;
[0008] Extracting the current request task and the context link information from the data request message, and executing the current request task;
[0009] updating the context link information according to the node information of the local network node and the task content of the currently requested task, and updating the task content of the currently requested task according to the execution result obtained by executing the currently requested task;
[0010] The updated context link information and the updated current request task are stored together as an updated data request message.
[0011] In a second aspect, embodiments of the present application further disclose a digital object query device for a distributed link tracing framework, which is applied to a local network node of a distributed network, comprising:
[0012] A message acquisition module, configured to acquire a data request message for digital object data; the data request message includes a commonly stored current request task and context link information; the current request task is used to represent the task content for the digital object at the local network node; the context link information is used to represent the task content and processing order for each execution task in the task group where the current request task is located, at different network nodes in the distributed network, for the digital object;
[0013] An information extraction module, configured to extract the current request task and the context link information from the data request message, and execute the current request task;
[0014] an information updating module, configured to update the context link information according to the node information of the local network node and the task content of the currently requested task, and to update the task content of the currently requested task according to the execution result obtained by executing the currently requested task;
[0015] The message integration module is used to store the updated context link information and the updated current request task together as an updated data request message.
[0016] In a third aspect, an embodiment of the present application further discloses an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0017] In a fourth aspect, an embodiment of the present application further discloses a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0018] In summary, in the embodiment of the present application, based on storing the current request task and context link information together in the data request message, a comprehensive record of the digital object task content and processing order is achieved, ensuring that the context information of each execution task can be accurately transmitted and shared in different nodes of the distributed network, thereby improving the integrity and consistency of data tracking, and thus solving the problem of difficulty in effective tracking and debugging in multi-threaded or asynchronous situations in the prior art, ensuring the accuracy and integrity of data transmission records in complex heterogeneous data spaces; and then by extracting and updating the current request task and context link information from the data request message during the transmission process of the data request message, ensuring the real-time update and synchronization of link information and task content, solving the problem of insufficient automatic processing capability of the link tracking function in the prior art in multi-threaded scenarios, ensuring the accuracy of task execution and the integrity of link information, maintaining the continuity and consistency of link information, reducing the impact on system performance, and improving the ability to undertake large-scale traffic. Therefore, based on the method of the embodiment of the present application, by establishing a data request message with low code intrusion and easy to query link data structure, the problem of complex link data tracking and debugging methods in the process of information interaction in distributed digital networks is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In the attached figure:
[0020] Figure 1 This is a flowchart of the steps of a digital object query method for a distributed link tracing framework provided by an embodiment of the present application;
[0021] Figure 2 This is a flowchart of the activation operation behavior provided by the embodiment of the present application;
[0022] Figure 3 This is a flowchart of the end operation behavior provided by the embodiment of the present application;
[0023] Figure 4 This is a flowchart of another method for querying digital objects in a distributed link tracing framework provided by an embodiment of the present application;
[0024] Figure 5 This is a flowchart of obtaining active operation behaviors in the current thread provided by an embodiment of the present application;
[0025] Figure 6 It is a flow chart of forwarding data requests in a network switch according to command types;
[0026] Figure 7 It is a flow chart of data request forwarding in a digital networking switch according to gateway type;
[0027] Figure 8It is a flowchart of the steps of a digital object query method for a distributed link tracking framework provided to a data requesting network node;
[0028] Figure 9 This is a block diagram of a digital object query device for a distributed link tracing framework provided by an embodiment of the present application;
[0029] Figure 10 is a block diagram of an electronic device according to an embodiment of the present application;
[0030] Figure 11 This is a block diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0032] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0033] The Internet of Things is a logical network formed with data pragmatics as the first-order entity. Data pragmatics and data resources all come from various data spaces and are managed autonomously by each space. In each space, access to the Internet of Things infrastructure is achieved through an Internet of Things switch. Users can find digital objects in one or more data spaces through the identifier of the digital object. In this process, the Internet of Things application client will initiate a data request message (DataObjectInterfaceProtocol, DOIP) request for the digital object data. The request will pass through multiple Internet of Things gateways and Internet of Things switches, and may retrieve digital objects from data warehouses in multiple data spaces and merge data. Therefore, this link is quite complex, so we need a distributed link tracking framework designed specifically for the Internet of Things.
[0034] To this end, the corresponding solution should be able to meet the following functional requirements:
[0035] The data network link tracking framework needs to be able to track and record the call links between different components in the data network system, including cross-service, cross-process, and cross-server calls. From the user request to the final user request return, all DOIP requests and their related function calls must be fully connected in series using the same link identifier, so that developers can view the DOIP call duration, call parameters, response parameters, and call sequence from the link tracking interface;
[0036] The link tracing framework not only records the entire call link process, but also integrates the log data required by developers into the link. This allows developers to obtain more comprehensive call execution information in addition to basic information.
[0037] And meet the following non-functional requirements:
[0038] Link tracing functionality should be independent of the system developed by the developer. Excessive modifications to the original system code increase the complexity of system maintenance and upgrades, potentially leading to performance degradation and instability. Therefore, the link tracing function should be designed to be streamlined and decoupled from the original system, minimizing the need for system code modifications.
[0039] The functionality provided by the link tracing framework is not only frequently called across various system processes, but also directly impacts the overall operational efficiency and stability of the system. Therefore, ensuring the high performance of the link tracing framework itself is crucial, as it directly impacts the system's monitoring quality, troubleshooting efficiency, and overall operational smoothness.
[0040] Considering that the goal of link lifecycle management in a distributed system is to manage the relationships between multiple operational behaviors (Spans) generated during system operation, a collection of causally related system calls belongs to a data class (Tracer) used to manage spans. The focus is on managing the causal relationships between different spans while minimizing the impact on the original system code. In concurrent scenarios, when multiple spans are running simultaneously, it is necessary to find the parent span relationship for each newly created span in any thread. Existing link tracing solutions widely use thread-local storage (ThreadLocalStorage) technology as a shared solution for the lifecycle of calls within a link. When using ThreadLocalStorage to store the lifecycle variables (Scopes) of spans, a lifecycle variable manager (ScopeManager) only requires a local thread (ThreadLocal) to manage the lifecycle of link calls. This ensures that each thread has its own currently active Scope object instance. Therefore, span-related operations are performed by obtaining the currently active span, activating a span, and deactivating a span.
[0041] Therefore, based on the consideration of the above requirements, Figure 1 As shown, this embodiment provides a digital object query method for a distributed link tracking framework, which is applied to a local network node of a distributed network.
[0042] The method may include the following steps:
[0043] Step 101: Obtain a data request message for digital object data.
[0044] Among them, the data request message includes the jointly stored current request task and context link information; the current request task is used to represent the task content for the digital object in the local network node; the context link information is used to represent the task content and processing order of the digital object for each execution task in the task group where the current request task is located in different network nodes of the distributed network.
[0045] In some embodiments of the present application, a data request message for digital object data is obtained. The data request message contains the current request task and context link information. The current request task is used to describe the specific operation content of the digital object on the local network node. The context link information is used to describe the content and processing order of each execution task in the task group where the current request task is located in different nodes of the distributed network. This information is stored together in the data request message to ensure that in a distributed environment, each node can accurately transmit and share the context information of the task, thereby achieving comprehensive tracking of the task execution process.
[0046] For example, in a digital networking system, a user initiates a digital object query request through a digital networking application client. This request is encapsulated as a data request message, which contains the current request task and context link information. The current request task may be "querying the metadata of a digital object," while the context link information records the processing steps and sequence of the request in previous nodes. For example, a data request message may contain the following information: Current request task: Query the metadata of the digital object with ID 12345; Context link information: Node A has processed it, and node B is processing it. Then, when the local network node receives the data request message, it extracts the current request task and context link information to prepare for subsequent task execution and link tracking.
[0047] Step 102: extract the current request task and context link information from the data request message, and execute the current request task.
[0048] In some embodiments of the present application, the current request task and context link information are extracted from the data request message, and the current request task is executed. The current request task contains the specific operation content that needs to be performed on the local network node, while the context link information records the processing steps and sequence of the task at each node in the distributed network. By extracting this information, the local network node can accurately understand the execution context of the current task and perform corresponding operations based on the task content, thereby ensuring the smooth execution of the task and the integrity of the link information.
[0049] For example, in a digital networking system, a local network node receives a data request message that contains the current request task and context link information. Assume that the current request task is "querying the metadata of the digital object with ID 12345." The context link information records the processing steps and sequence of the request in the previous node, such as "node A has been processed, and node B is processing." Then, the local network node first extracts the current request task and context link information from the data request message. Then, based on the content of the current request task, the local network node performs a query operation to retrieve the metadata of the digital object with ID 12345 from the digital object repository. After executing the current request task, the local network node returns the result and updates the context link information to reflect the latest processing status. In this way, the link information during the entire task execution process can be kept complete and consistent.
[0050] like Figure 2 As shown in the figure, when a new operation behavior instance needs to be created to express the process executed by the current system, the following steps will be followed:
[0051] A1: Create a new operation behavior instance that carries information based on the current system context information.
[0052] A2: Create a new lifecycle variable instance through the lifecycle variable manager.
[0053] A3: Bind the new lifecycle variable instance to the new operation behavior instance. At this point, the created lifecycle variable object will be responsible for managing the lifecycle of the operation behavior.
[0054] A4: Get the active lifecycle variable instance corresponding to the current thread from the thread local storage in the lifecycle variable manager.
[0055] A5: Set the active lifecycle variable instance as the parent of the newly created lifecycle variable instance. In this case, when there are multiple layers of parent lifecycle variable instances, they exist in a linked list.
[0056] A6: Store the new lifetime variable object instance in the thread-local storage of the lifetime variable manager and return the newly activated operation behavior object.
[0057] In the subsequent process, the lifecycle variables in the lifecycle variable manager will manage the parent-child relationship between operation behaviors.
[0058] Correspondingly, such as Figure 3 As shown in the figure, when a certain part of the system program is executed, the distributed tracing system needs to end the corresponding operation behavior instance and report the link data to the tracing system backend. At this time, the following steps will be executed:
[0059] B1: Get the lifecycle variable object instance corresponding to the operation behavior.
[0060] B2: After obtaining the variable, determine whether the current thread's active lifecycle variable stored in the lifecycle variable manager that manages this lifecycle variable is itself. If the result is no, execute B3; if the result is yes, execute B4-B6:
[0061] B3: Report an error.
[0062] B4: Restore the parent lifecycle variables stored in the system to the thread local storage in the lifecycle variable manager.
[0063] B5: Destroy the current lifecycle variable to end the lifecycle management of the current operation behavior.
[0064] B6: Report the link data of this operation behavior.
[0065] Step 103 : updating the context link information according to the node information of the local network node and the task content of the current request task, and updating the task content of the current request task according to the execution result obtained by executing the current request task.
[0066] In some embodiments of the present application, the context link information is updated based on the node information of the local network node and the task content of the currently requested task, and the task content of the currently requested task is updated based on the execution result obtained from executing the currently requested task. The node information of the local network node includes the node's identification, location, processing capabilities, etc. The task content of the currently requested task is the specific operation instruction. After executing the currently requested task, the execution result needs to be recorded and the context link information is updated to reflect the latest processing status. This process ensures the accuracy of task execution and the integrity of the link information.
[0067] For example, in a digital network system, the local network node successfully executes the current request task of "querying the metadata of the digital object ID 12345". Assuming that the node information of the local network node is "node B" and the execution result is "the metadata of the digital object ID 12345 is {…}". Then, the local network node first updates the context link information based on the node information and the task content of the current request task. For example, the context link information is updated to "node A has been processed, node B has been processed". Then, based on the execution result obtained by executing the current request task, the task content of the current request task is updated. For example, the task content of the current request task is updated to "the metadata of the digital object ID 12345 has been queried". In this way, the real-time update and synchronization of the context link information and task content are ensured, so that subsequent nodes can accurately understand the execution background and latest status of the task, thereby improving the integrity and consistency of data tracking.
[0068] Step 104 : Store the updated context link information and the updated current request task together as an updated data request message.
[0069] In some embodiments of the present application, the updated context link information and the updated current request task are stored together as an updated data request message. After the current request task is executed and the relevant information is updated, this updated information needs to be repackaged into a new data request message. This step ensures that all nodes can obtain the latest link information and task content when processing tasks, thereby ensuring the continuity and consistency of task execution.
[0070] For example, in a digital networking system, the local network node "Node B" has successfully executed the task of "querying the metadata of the digital object ID 12345" and updated the context link information and the task content of the current request task. Assume that the updated context link information is "Node A has been processed, Node B has been processed", and the updated task content of the current request task is "The metadata of the digital object ID 12345 has been queried." The local network node repackages this updated information into a new data request message. The new data request message contains the following content: Updated context link information: Node A has been processed, Node B has been processed, updated current request task: The metadata of the digital object ID 12345 has been queried. By storing this information together as an updated data request message, it is ensured that in subsequent task processing, each node can obtain the latest task status and link information, thereby improving the integrity and consistency of data tracking.
[0071] In summary, in the embodiment of the present application, based on storing the current request task and context link information together in the data request message, a comprehensive record of the digital object task content and processing order is achieved, ensuring that the context information of each execution task can be accurately transmitted and shared in different nodes of the distributed network, thereby improving the integrity and consistency of data tracking, and thus solving the problem of difficulty in effective tracking and debugging in multi-threaded or asynchronous situations in the prior art, ensuring the accuracy and integrity of data transmission records in complex heterogeneous data spaces; and then by extracting and updating the current request task and context link information from the data request message during the transmission process of the data request message, ensuring the real-time update and synchronization of link information and task content, solving the problem of insufficient automatic processing capability of the link tracking function in the prior art in multi-threaded scenarios, ensuring the accuracy of task execution and the integrity of link information, maintaining the continuity and consistency of link information, reducing the impact on system performance, and improving the ability to undertake large-scale traffic. Therefore, based on the method of the embodiment of the present application, by establishing a data request message with low code intrusion and easy to query link data structure, the problem of complex link data tracking and debugging methods in the process of information interaction in distributed digital networks is solved.
[0072] Figure 4 Another digital object query method for a distributed link tracing framework provided in an embodiment of the application is applied to a local network node of a distributed network and may include the following steps:
[0073] Step 201: Obtain a data request message for digital object data.
[0074] Among them, the data request message includes the jointly stored current request task and context link information; the current request task is used to represent the task content for the digital object in the local network node; the context link information is used to represent the task content and processing order of the digital object for each execution task in the task group where the current request task is located in different network nodes of the distributed network.
[0075] The method shown in this step has been described in step 101 and will not be repeated here.
[0076] Step 202: extract the current request task and context link information from the data request message, and execute the current request task.
[0077] The method shown in this step has been described in step 102 and will not be repeated here.
[0078] Step 203: update the context link information according to the node information of the local network node and the task content of the current request task, and update the task content of the current request task according to the execution result obtained by executing the current request task.
[0079] The method shown in this step has been described in step 103 and will not be repeated here.
[0080] Optionally, in order to update the context link information according to the node information of the local network node and the task content of the currently requested task, step 203 includes the following sub-steps:
[0081] Sub-step 2031, determining the node number of the local network node according to the node information of the local network node, and determining the task type number corresponding to the task content of the current request task according to the current request task.
[0082] In some embodiments of the present application, in order to further simplify the data complexity of the context link information, the node number of the local network node is determined based on the node information of the local network node, and the task type number corresponding to the task content of the current request task is determined based on the current request task. The node number is an identifier used to uniquely identify the local network node and is usually assigned by the system when the node is initialized. The task type number is an identifier used to identify the type of the currently requested task and is determined based on the task content. By determining the node number and task type number, basic data can be provided for subsequent context link information updates.
[0083] For example, in a digital networking system, the local network node "Node B" receives a data request message, and the current request task is "query metadata of digital object ID 12345". First, the system determines the node number of the local network node based on the node information, for example, the node number of "Node B" is "002". Next, the system determines the task type number based on the task content of the current request task. Assume that the task type number of the "query digital object metadata" task is "01". Therefore, the task type number of the current request task is "01". In this way, the system determines the node number "002" of the local network node and the task type number "01" of the current request task. These numbers will be used for subsequent context link information updates to ensure that the link information during task execution is accurate and complete.
[0084] Sub-step 2032: concatenate the node number and the task type number to obtain context link update data.
[0085] In some embodiments of this application, the node number and task type number are concatenated to obtain contextual link update data. The node number and task type number identify the local network node and the type of the currently requested task, respectively. By concatenating these two numbers, a unique contextual link update data can be generated to record the execution status of the currently requested task on the local network node. This concatenation operation ensures the uniqueness and traceability of the link information, providing a foundation for subsequent link information updates.
[0086] For example, in a digital networking system, the local network node "Node B" has determined the node number to be "002", and the task type number of the current request task is "01". In order to generate context link update data, the system splices the node number "002" and the task type number "01". Then the spliced context link update data is "00201". This data indicates that a request task with a task type of "query digital object metadata" (number 01) was executed on node B (number 002). In this way, the system generates unique context link update data for recording and tracking the execution status of the current request task.
[0087] In sub-step 2033 , the context link information is taken as a data sequence, and the context link update data is taken as an additional item of the data sequence and added to the context link information to obtain updated context link information.
[0088] In some embodiments of the present application, context link information is treated as a data sequence, and context link update data is added to the context link information as an addition to the data sequence to obtain updated context link information. Context link information records the processing steps and sequence of tasks at each node in a distributed network. By adding context link update data to context link information, it is possible to ensure that the processing status of each node is accurately recorded, thereby achieving comprehensive tracking and monitoring of the task execution process.
[0089] For example, in a digital networking system, the local network node "Node B" has generated the context link update data "002-01", indicating that a request task with the task type of "query digital object metadata" has been executed on Node B. Assume that the current context link information is "00100", which means that a task with the task type of "initialization request" has been executed on Node A before. Then, in order to update the context link information, the system adds the context link update data "00201" as an addition to the data sequence to the existing context link information "00100". The updated context link information is "0010000201". In this way, the system records the processing status of each node in the context link information to ensure the integrity and consistency of the task execution process. In this way, when subsequent nodes receive the updated context link information, they can accurately understand the execution background and latest status of the task, thereby improving the integrity and consistency of data tracking.
[0090] Optionally, when the task type of the currently requested task is a local processing task, in order to update the task content of the currently requested task according to the execution result obtained by executing the currently requested task, step 203 includes the following sub-steps:
[0091] Sub-step 2034: determining the task group corresponding to the current request task based on the current request task, and searching for the subsequent request task of the current request task from the task group.
[0092] In some embodiments of the present application, a task group corresponding to the current request task is determined based on the current request task, and a subsequent request task of the current request task is searched from the task group. A task group refers to a collection of multiple related request tasks in a distributed network, which are executed sequentially in a certain order. A subsequent request task refers to a task that needs to be executed immediately after the current request task is completed. By determining the task group and searching for the subsequent request task, the continuous execution of tasks and the integrity of link information can be ensured.
[0093] For example, in a digital networking system, the local network node "Node B" is processing a data request message, and the current request task is "querying the metadata of the digital object ID 12345." The system first determines, based on the current request task, that the task belongs to the "digital object query" task group. This task group contains multiple related request tasks, such as "querying metadata," "obtaining data content," and "verifying data integrity." The system then searches the task group for the successor request task of the current request task. Assume that in the task group, the successor request task of the current request task is "obtaining the data content of the digital object ID 12345." In this way, the system determines the successor request task of the current request task, providing a basis for subsequent task execution and link information updates.
[0094] Sub-step 2035: When a subsequent request task is found, the task content of the subsequent request task is updated to the new current request task.
[0095] In some embodiments of the present application, if a subsequent request task is found, the task content of the subsequent request task is updated to the new current request task. A subsequent request task is a task that needs to be executed immediately after the current request task is completed. By updating the task content of the subsequent request task to the new current request task, the continuous execution of the task and the integrity of the link information can be ensured, thereby achieving comprehensive tracking and monitoring of the task execution process.
[0096] For example, in a digital networking system, local network node "Node B" has completed the current request task, "Query the metadata of digital object ID 12345," and has found the subsequent request task, "Get the data content of digital object ID 12345," in the task group. The system updates the task content of the subsequent request task to the new current request task. Specifically, the content of the new current request task is "Get the data content of digital object ID 12345." In this way, the system ensures the continuous execution of tasks, allowing subsequent task processing to proceed smoothly and maintaining the integrity and consistency of link information.
[0097] Sub-step 2036: If the subsequent request task cannot be found, the preset stop task is updated to the new current request task.
[0098] In some embodiments of the present application, in contrast to sub-step 2035, when no subsequent request task can be found, the preset stop task is updated to the new current request task. The preset stop task refers to the system's default end task when there is no subsequent request task in the task group. By updating the preset stop task to the new current request task, the integrity of the task execution process and the continuity of the link information can be ensured, and the system can correctly end the execution of the current task group even in the absence of a subsequent request task.
[0099] For example, in a digital networking system, the local network node "Node B" has completed the current request task "Query metadata of digital object ID 12345" and attempts to find a subsequent request task in the task group. However, the system finds that there is no subsequent request task in the task group. In this case, the system updates the preset stop task to the new current request task. The preset stop task may be "End task group execution and record log." Specifically, the content of the new current request task is "End task group execution and record log." In this way, the system ensures the integrity of the task execution process, and even in the absence of a subsequent request task, the system can correctly end the execution of the current task group and record relevant link information.
[0100] like Figure 5 As shown, in the specific execution process of step 2034 to step 2036, the active Span of the current thread needs to be obtained. The following steps will be performed:
[0101] C1: Get the lifecycle variables corresponding to the current thread through the thread local storage in the lifecycle variable manager;
[0102] C2: If the obtained lifecycle variable is empty, an empty operation behavior is returned;
[0103] C3: If the obtained lifecycle variable is not empty, the bound operation behavior is obtained from the lifecycle variable;
[0104] C4: Returns the obtained operation behavior as an instance.
[0105] Step 204 : Store the updated context link information and the updated current request task together as an updated data request message.
[0106] The method shown in this step has been described in step 104 and will not be repeated here.
[0107] Step 205: Send the execution result obtained by executing the currently requested task as a task log to the log management device.
[0108] The log management device records the execution result, the current request task corresponding to the execution result, and the corresponding relationship between the task groups to which the current request task belongs.
[0109] In some embodiments of the present application, the execution result obtained by executing the current request task will be sent to the log management device as a task log. The log management device is responsible for recording the corresponding relationship between the execution result, the current request task, and the task group where the current request task is located. This process ensures that the detailed information of the task execution is accurately recorded and stored, which is convenient for subsequent query and analysis. By sending the task log to the log management device, it is possible to achieve comprehensive monitoring and tracking of the task execution process, thereby improving the observability and debugging efficiency of the system.
[0110] For example, in a digital networking system, the local network node "Node B" successfully executed the task of "querying the metadata of the digital object ID 12345" and obtained the execution result. Assume that the execution result is "the metadata of the digital object ID 12345 is {...}". Then the local network node sends the execution result as a task log to the log management device. The task log contains the following information: execution result: the metadata of the digital object ID 12345 is {...}, current request task: query the metadata of the digital object ID 12345, the task group where the current request task is located: node A has been processed, node B has been processed. After receiving the task log, the log management device will record this information and establish a corresponding relationship between the execution result, the current request task and the task group. In this way, the system administrator can query the execution details and link information of each task through the log management device, thereby improving the observability and debugging efficiency of the system. In some embodiments of the present application, special tag information (Tag) information can also be added to the log information to further help users query the log.
[0111] Optionally, when the current request task of the updated data request message is a forwarding task, the embodiment of the present application further provides the following additional steps:
[0112] Step 206: In the distributed network, determine a target network node corresponding to the updated data request message, and send the updated data request message to the target network node.
[0113] The target network node is a network node other than the local network node in the distributed network.
[0114] In some embodiments of the present application, a target network node corresponding to the updated data request message is determined in the distributed network, and the updated data request message is sent to the target network node. The target network node is a network node other than the local network node in the distributed network. This step is applicable when the current request task is a forwarding task. By determining the target network node and sending the updated data request message to that node, the task can be continued in the distributed network, thereby achieving complete task processing and link information continuity.
[0115] For example, in a digital network system, after the local network node "Node B" completes the execution of the current request task, it determines that the current request task is a forwarding task. Assume that the updated data request message contains the following information: updated context link information: Node A has been processed, Node B has been processed, updated current request task: forward the metadata request for the digital object ID 12345, the local network node "Node B" needs to send the updated data request message to the target network node "Node C". First, Node B determines that the target network node is "Node C" based on the routing information of the distributed network. Then, Node B sends the updated data request message to Node C. After receiving the updated data request message, Node C continues to process the request to ensure the continuous execution of the task in the distributed network. In this way, the complete processing of the task and the continuity of the link information are ensured, and the integrity and consistency of data tracking are improved.
[0116] Optionally, in the case where the local network node is not directly connected to the target network node, in order to send the updated data request message to the target network node, step 206 includes the following sub-steps:
[0117] Sub-step 2061: determining a target data exchange network node in the distributed network.
[0118] The target data exchange network node is a data exchange network node in the distributed network that is connected to the local network node and the target network node respectively.
[0119] In some embodiments of the present application, a target data exchange network node is determined in a distributed network. The target data exchange network node refers to a data exchange network node in the distributed network that is connected to both the local network node and the target network node. When the local network node and the target network node are not directly connected, determining the target data exchange network node enables the relaying and forwarding of the data request message, thereby ensuring that the data request message successfully reaches the target network node.
[0120] For example, in a data network system, the local network node "Node A" needs to send an updated data request message to the target network node "Node C". Since Node A is not directly connected to Node C, the system needs to determine a target data exchange network node to relay the message. Then the system first searches for a data exchange network node in the distributed network that is connected to both Node A and Node C. Suppose the system finds a data exchange network node "Exchange Node B", which is connected to both Node A and Node C. In this way, the system determines the target data exchange network node "Exchange Node B" for relaying and forwarding the updated data request message. In this way, it ensures that the data request message can be smoothly transmitted from the local network node A to the target network node C, thereby improving the reliability and integrity of data transmission.
[0121] like Figure 6 As shown, in some embodiments of the present application, when the data exchange network node is a data network switch, it will be responsible for forwarding data requests between different data spaces.
[0122] During the interaction between the data network switch and the data space, to ensure that the complete link of a request is not interrupted in the switch application, after receiving the request, the specific operation will be carried out according to the following process:
[0123] M1: Submits the request to the switch processing module (SwitchHander) to determine whether the request is a switch configuration operation;
[0124] Next, if the request is a switch configuration operation, steps M2 to M5 are executed to create an operation behavior according to the corresponding setting operation and end the operation behavior after execution; if the request is not a switch configuration command, steps M6 to M10 are executed to use the corresponding DOIP request client to process the request:
[0125] M2: Determine the type of configuration operation;
[0126] M3: Create configuration operations according to request type;
[0127] M4: Execute corresponding configuration operations;
[0128] M5: End the configuration operation to return the result;
[0129] M6: Request to be handed over to the digital object processor;
[0130] M7: Determines which type of interactive client the request should be given to;
[0131] M8: Create a corresponding handover operation according to the judgment result of step M7;
[0132] M9: Execute the created transfer operation;
[0133] M10: End the handover operation to return the result.
[0134] M3: If the request is not a switch configuration command, the request will be handed over to the Digital Object Handler (DOHandler) for processing, and then it will determine which type of interactive client the request needs to be given to, and use the corresponding switch function (SwitchFunction) according to its interaction type.
[0135] like Figure 7 As shown, in some embodiments of the present application, the gateway application divides traffic types into three types, and performs specific operations according to the following processes according to the three different situations:
[0136] S1: When the request is for management traffic, no forwarding is required and only local operations are required.
[0137] S2: When the traffic received by the gateway application is internal traffic in the data space, there is no need to forward the request to the switch. Instead, the address of the target data exchange network node can be obtained through the identity resolution system of the space and sent directly;
[0138] S3: When the traffic received by the gateway application is not the internal traffic of the data space, it needs to send the traffic to the data exchange network node bound to the corresponding gateway. This data exchange network node is responsible for finding the address of the target data exchange network node to forward the traffic.
[0139] Sub-step 2062: sending the updated data request message to the target switching network node, so that the target switching network node forwards the updated data request message to the target network node.
[0140] In some embodiments of the present application, an updated data request message is sent to a target switching network node, causing the target switching network node to forward the updated data request message to the target network node. The target switching network node acts as a relay and forwarder for data request messages in a distributed network. When the local network node and the target network node are not directly connected, relaying through the target switching network node ensures that the data request message reaches the target network node smoothly, thereby achieving complete task processing and link information continuity.
[0141] For example, in a data networking system, the local network node "Node A" needs to send an updated data request message to the target network node "Node C". Since Node A and Node C are not directly connected, the system has determined that the target data exchange network node is "Exchange Node B". Node A sends the updated data request message to Exchange Node B. Specifically, Node A transmits the data request message to the address of Exchange Node B through the network protocol. After receiving the data request message, Exchange Node B forwards the message to the target network node "Node C" according to its internal routing rules. In this way, even if the two are not directly connected, it ensures that the data request message can be smoothly transmitted from the local network node A to the target network node C.
[0142] In one embodiment of the present application, the local network node is a data requesting network node, such as Figure 8 As shown, the digital object query method for the distributed link tracing framework provided in the embodiment of the present application can also be performed according to the following steps:
[0143] Step 301 : In response to a first execution command for a request task in a task group, the request task corresponding to the first execution command is determined as a current request task.
[0144] In some embodiments of the present application, the data requesting network node will respond to the first execution command for the request task in the task group and determine the request task corresponding to the first execution command as the current request task. In a distributed network, the request task in the task group may contain multiple execution commands. The first execution command refers to the first command executed in the task group. By determining the request task corresponding to the first execution command as the current request task, the execution order of the tasks and the accuracy of the context link information can be ensured, thereby providing a basis for subsequent task execution and link tracking.
[0145] For example, in a digital networking system, a user initiates a digital object query task containing multiple steps at a data request network node. Assume that the first execution command in the task group is "query the metadata of the digital object with ID 12345". When the local network node receives the execution command, the system determines the request task corresponding to the execution command as the current request task. Specifically, the local network node recognizes that this is the first execution command in the task group and marks it as the current request task. The content of the current request task is "query the metadata of the digital object with ID 12345", and this task will serve as the starting point for subsequent task execution and link tracking.
[0146] Step 302: Add the target code segment to the determined current request task, so as to use the current request task with the target code segment as a data request message.
[0147] The target code segment is used to store context link information.
[0148] In some embodiments of the present application, a data requesting network node adds a target code segment to a currently requested task, thereby transmitting the currently requested task with the target code segment as a data request message. The target code segment is used to store contextual link information, which includes the processing steps and sequence of the task at each node in the distributed network. By adding the target code segment to the currently requested task, it is possible to ensure that the contextual link information is accurately recorded and transmitted during the task execution process, thereby enabling comprehensive tracking and monitoring of the task execution process.
[0149] For example, in a digital networking system, the local network node "Node A" determines that the current request task is "querying the metadata of the digital object ID 12345". In order to ensure that the context link information can be accurately recorded and transmitted during the task execution process, Node A adds a target code segment to the current request task. The target code segment is used to store the context link information, for example: current node: Node A, task content: query the metadata of the digital object ID 12345, context link information: empty (because this is the first execution command); then by adding the target code segment, Node A sends the current request task with the target code segment as a data request message. In this way, when subsequent nodes receive the data request message, they can extract and update the context link information from the target code segment, and continue to execute the task based on this information, thereby ensuring the integrity and consistency of the task execution process.
[0150] Step 303: Obtain a data request message for the digital object data.
[0151] Among them, the data request message includes the jointly stored current request task and context link information; the current request task is used to represent the task content for the digital object in the local network node; the context link information is used to represent the task content and processing order of the digital object for each execution task in the task group where the current request task is located in different network nodes of the distributed network.
[0152] The method shown in this step has been described in step 101 and will not be repeated here.
[0153] Step 304: extract the current request task and context link information from the data request message, and execute the current request task.
[0154] The method shown in this step has been described in step 102 and will not be repeated here.
[0155] Step 305 : updating the context link information according to the node information of the local network node and the task content of the current request task, and updating the task content of the current request task according to the execution result obtained by executing the current request task.
[0156] The method shown in this step has been described in step 103 and will not be repeated here.
[0157] Step 306: Store the updated context link information and the updated current request task together as an updated data request message.
[0158] The method shown in this step has been described in step 104 and will not be repeated here.
[0159] In summary, in the embodiment of the present application, based on storing the current request task and context link information together in the data request message, a comprehensive record of the digital object task content and processing order is achieved, ensuring that the context information of each execution task can be accurately transmitted and shared in different nodes of the distributed network, thereby improving the integrity and consistency of data tracking, and thus solving the problem of difficulty in effective tracking and debugging in multi-threaded or asynchronous situations in the prior art, ensuring the accuracy and integrity of data transmission records in complex heterogeneous data spaces; and then by extracting and updating the current request task and context link information from the data request message during the transmission process of the data request message, ensuring the real-time update and synchronization of link information and task content, solving the problem of insufficient automatic processing capability of the link tracking function in the prior art in multi-threaded scenarios, ensuring the accuracy of task execution and the integrity of link information, maintaining the continuity and consistency of link information, reducing the impact on system performance, and improving the ability to undertake large-scale traffic. Therefore, based on the method of the embodiment of the present application, by establishing a data request message with low code intrusion and easy to query link data structure, the problem of complex link data tracking and debugging methods in the process of information interaction in distributed digital networks is solved.
[0160] refer to Figure 9 , which shows a digital object query device 40 for a distributed link tracing framework provided by an embodiment of the present application, applied to a local network node of a distributed network, including:
[0161] Message acquisition module 401 is used to obtain a data request message for digital object data; the data request message includes a currently requested task and context link information that are stored together; the currently requested task represents the task content for the digital object at the local network node; the context link information represents the task content and processing order for each executing task in the task group where the currently requested task is located at different network nodes in the distributed network.
[0162] The information extraction module 402 is used to extract the current request task and context link information from the data request message and execute the current request task;
[0163] The information updating module 403 is used to update the context link information according to the node information of the local network node and the task content of the current request task, and to update the task content of the current request task according to the execution result obtained by executing the current request task;
[0164] The message integration module 404 is configured to store the updated context link information and the updated current request task together as an updated data request message.
[0165] Optionally, in the case where the local network node is a data requesting network node, the apparatus 40 further includes:
[0166] an initial command acquisition module, configured to, in response to a first execution command for a request task in a task group, determine the request task corresponding to the first execution command as a current request task;
[0167] The message generation module is used to add a target code segment to the determined current request task, so as to use the current request task with the target code segment as a data request message; the target code segment is used to store context link information.
[0168] Optionally, the information updating module 403 includes:
[0169] The number confirmation submodule is used to determine the node number of the local network node according to the node information of the local network node, and determine the task type number corresponding to the task content of the current request task according to the current request task;
[0170] The number splicing submodule is used to splice the node number with the task type number to obtain the context link update data;
[0171] The information injection submodule is used to take the context link information as a data sequence and the context link update data as an additional item of the data sequence, and add them to the context link information to obtain the updated context link information.
[0172] Optionally, when the task type of the currently requested task is a local processing task, the information updating module 403 includes:
[0173] The task confirmation submodule is used to determine the task group corresponding to the current request task according to the current request task, and to find the subsequent request task of the current request task from the task group;
[0174] The update submodule is used to update the task content of the subsequent request task to the new current request task when the subsequent request task is found;
[0175] The termination submodule is used to update the preset stop task to the new current request task when the subsequent request task cannot be found.
[0176] Optionally, when the current request task of the updated data request message is a forwarding task, the apparatus 40 further includes:
[0177] The message sending module is used to determine the target network node corresponding to the updated data request message in the distributed network and send the updated data request message to the target network node; the target network node is a network node other than the local network node in the distributed network.
[0178] Optionally, when the local network node is not directly connected to the target network node, the message sending module includes:
[0179] The target node confirmation submodule is used to determine the target data exchange network node in the distributed network; the target data exchange network node is a data exchange network node in the distributed network that is connected to the local network node and the target network node respectively;
[0180] The message sending submodule is configured to send the updated data request message to the target switching network node, so that the target switching network node forwards the updated data request message to the target network node.
[0181] In summary, in the embodiment of the present application, based on storing the current request task and context link information together in the data request message, a comprehensive record of the digital object task content and processing order is achieved, ensuring that the context information of each execution task can be accurately transmitted and shared in different nodes of the distributed network, thereby improving the integrity and consistency of data tracking, and thus solving the problem of difficulty in effective tracking and debugging in multi-threaded or asynchronous situations in the prior art, ensuring the accuracy and integrity of data transmission records in complex heterogeneous data spaces; and then by extracting and updating the current request task and context link information from the data request message during the transmission process of the data request message, ensuring the real-time update and synchronization of link information and task content, solving the problem of insufficient automatic processing capability of the link tracking function in the prior art in multi-threaded scenarios, ensuring the accuracy of task execution and the integrity of link information, maintaining the continuity and consistency of link information, reducing the impact on system performance, and improving the ability to undertake large-scale traffic. Therefore, based on the method of the embodiment of the present application, by establishing a data request message with low code intrusion and easy to query link data structure, the problem of complex link data tracking and debugging methods in the process of information interaction in distributed digital networks is solved.
[0182] Reference Figure 10 , electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0183] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 502 may include one or more modules to facilitate interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
[0184] The memory 504 is used to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, multimedia, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0185] The power supply assembly 506 provides power to the various components of the electronic device 500. The power supply assembly 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.
[0186] The multimedia component 508 includes an interface that provides an output interface between the electronic device 500 and the user. In some embodiments, the interface may include a liquid crystal display (LCD) and a touch panel (TP). If the interface includes a touch panel, the interface may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of touch or slide actions, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0187] The audio component 510 is used to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is used to receive external audio signals when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0188] The input / output I / O interface 512 provides an interface between the processing component 502 and peripheral interface modules, such as a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0189] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500. The sensor assembly 514 can also detect changes in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and temperature changes of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0190] The communication component 516 is used to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0191] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to implement the methods provided in the embodiments of the present application.
[0192] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by the processor 520 of the electronic device 500 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0193] Figure 11FIG. 6 is a block diagram of an electronic device 600 according to another embodiment of the present invention. For example, the electronic device 600 may be provided as a server. Figure 11 The electronic device 600 includes a processing component 622, which further includes one or more processors, and a memory resource represented by a memory 632 for storing instructions executable by the processing component 622, such as an application. The application stored in the memory 632 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 622 is configured to execute the instructions to perform the method provided in the embodiments of the present application.
[0194] The electronic device 600 may further include a power supply component 626 configured to perform power management of the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to a network, and an input / output (I / O) interface 658. The electronic device 600 may operate based on an operating system stored in the memory 632, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.
[0195] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0196] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A digital object query method for a distributed link tracing framework, applied to a local network node in a distributed network, characterized in that: include: Obtaining a data request message for digital object data; The data request message includes the currently requested task and context link information stored together; The current requested task is used to represent the task content for the digital object at the local network node; The context link information is used to characterize the task content and processing order of each execution task in the task group where the current request task is located in different network nodes of the distributed network for the digital object; Extracting the current request task and the context link information from the data request message, and executing the current request task; updating the context link information according to the node information of the local network node and the task content of the currently requested task, and updating the task content of the currently requested task according to the execution result obtained by executing the currently requested task; The updated context link information and the updated current request task are stored together as an updated data request message.
2. The method according to claim 1, wherein In the case where the local network node is a data requesting network node, before obtaining the data request message for the digital object data, the method further includes: In response to a first execution command for a request task in a task group, determining the request task corresponding to the first execution command as the current request task; A target code segment is added to the determined current request task, so that the current request task with the target code segment is used as the data request message; the target code segment is used to store context link information.
3. The method according to claim 1, wherein The updating of the context link information according to the node information of the local network node and the task content of the currently requested task includes: Determining the node number of the local network node according to the node information of the local network node, and determining the task type number corresponding to the task content of the current request task according to the current request task; Concatenate the node number and the task type number to obtain context link update data; The context link information is taken as a data sequence, and the context link update data is taken as an additional item of the data sequence and added to the context link information to obtain updated context link information.
4. The method according to claim 1, wherein In a case where the task type of the currently requested task is a local processing task, updating the task content of the currently requested task according to the execution result obtained by executing the currently requested task includes: Determine, according to the current request task, a task group corresponding to the current request task, and search for a subsequent request task of the current request task from the task group; When the subsequent request task is found, the task content of the subsequent request task is updated to the new current request task; In the case that the subsequent request task cannot be found, the preset stop task is updated to the new current request task.
5. The method according to claim 1, wherein In the case where the current request task of the updated data request message is a forwarding task, the method further includes: In the distributed network, a target network node corresponding to the updated data request message is determined, and the updated data request message is sent to the target network node; the target network node is a network node other than the local network node in the distributed network.
6. The method according to claim 5, wherein In a case where the local network node is not directly connected to the target network node, sending the updated data request message to the target network node includes: Determining a target data exchange network node in the distributed network; the target data exchange network node is a data exchange network node in the distributed network that is connected to the local network node and the target network node respectively; The updated data request message is sent to the target data exchange network node, so that the target data exchange network node forwards the updated data request message to the target network node.
7. The method according to claim 1, wherein The method further comprises: The execution result obtained by executing the current request task is sent to the log management device as a task log; the log management device records the execution result, the current request task corresponding to the execution result, and the correspondence between the task group where the current request task is located.
8. A digital object query device for a distributed link tracking framework, characterized in that: Local network nodes used in distributed networks, including: A message acquisition module, configured to acquire a data request message for digital object data; the data request message includes a commonly stored current request task and context link information; the current request task is used to represent the task content for the digital object at the local network node; the context link information is used to represent the task content and processing order for each execution task in the task group where the current request task is located, at different network nodes in the distributed network, for the digital object; An information extraction module, configured to extract the current request task and the context link information from the data request message, and execute the current request task; an information updating module, configured to update the context link information according to the node information of the local network node and the task content of the currently requested task, and to update the task content of the currently requested task according to the execution result obtained by executing the currently requested task; The message integration module is used to store the updated context link information and the updated current request task together as an updated data request message.
9. An electronic device, characterized in that: include: a processor, a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Application request tracking method, system, equipment and medium
CN118210674A
Direct connections to a plurality of storage object replicas in a computer network
US8060619B1