Data transmission method, device, equipment, medium and program product

By building a blueprint parameter pool and node management based on role information, the problem of inefficient node management in distributed systems is solved, flexible operation instance distribution and load balancing are achieved, and system stability and reliability are improved.

CN119211236APending Publication Date: 2024-12-27CCB FINTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411401187.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In distributed systems, the prior art adopts static configuration and hard-coded node management, resulting in inefficiency, poor flexibility and poor scalability, which cannot meet the node management needs in case of increased business complexity and expansion of node number.

Method used

By analyzing the request, building a blueprint parameter pool, obtaining node attribute information, determining the correspondence between nodes and operation instances based on role information and status information, and sending corresponding operation instances through middleware to ensure that nodes of different roles receive different operation instances.

Benefits of technology

It improves the efficiency and accuracy of node management, realizes flexible operation instance distribution and load balancing, adapts to business logic changes, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211236A_ABST
    Figure CN119211236A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method and device, equipment, a storage medium and a program product, and is applied to the technical field of cloud computing. The data transmission method comprises the following steps: analyzing a received first request, and constructing a blueprint parameter pool based on an analysis result; the analysis result at least comprises function information and demand information, and the demand information refines the function information; in response to the received second request, selecting a target parameter from the blueprint parameter pool and generating an operation instance based on the target parameter; the operation instance is used for enabling the node to execute specific service logic; acquiring attribute information of a plurality of nodes; the attribute information comprises at least one of state information and configuration information of the node, the state information is used for representing dynamic information of the node at the current moment, and the configuration information is used for representing role information of the node; based on the configuration information and / or the state information, determining a corresponding relationship between each node and the operation instance; and based on the corresponding relationship, controlling the middleware to respectively send the operation instances to the plurality of nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing technology, and more specifically to a data transmission method, apparatus, device, medium, and program product. Background Art

[0002] In the current distributed system architecture, the system is often composed of multiple nodes. Traditional methods usually use static configuration and hard coding to manage these nodes. For example, the operation and maintenance personnel manually configure and manage these nodes, or configure and manage nodes based on pre-set configuration information and code. These methods are inefficient, inflexible, and poorly scalable, and cannot meet the needs of node management under the circumstances of increasing business complexity and the expansion of the number of nodes. Summary of the invention

[0003] In view of the above problems, the present disclosure provides a data transmission method, apparatus, device, medium and program product.

[0004] According to the first aspect of the present disclosure, a data transmission method is provided, comprising: parsing a received first request, building a blueprint parameter pool based on the parsing result, wherein the parsing result includes at least function information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information; in response to receiving a second request, selecting a target parameter from the blueprint parameter pool and generating an operation instance based on the target parameter; wherein the operation instance is used to enable the node to execute a specific business logic; obtaining attribute information of multiple nodes; wherein the attribute information includes at least one of the state information and configuration information of the node, the state information is used to characterize the dynamic information of the node at the current moment, and the configuration information is used to characterize the role information of the node; based on the role information, configuration information and / or state information, determining the correspondence between each node and the operation instance; based on the correspondence, controlling the middleware to send corresponding operation instances to multiple nodes respectively; wherein nodes with different roles receive different operation instances.

[0005] According to an embodiment of the present disclosure, the received first request is parsed, and a blueprint parameter pool is constructed based on the parsing result, including: selecting a target blueprint framework from a plurality of pre-built blueprint frameworks based on functional information; and constructing a blueprint parameter pool corresponding to the target blueprint framework based on demand information.

[0006] According to an embodiment of the present disclosure, in response to receiving a second request, selecting target parameters from a blueprint parameter pool and generating an operation instance based on the target parameters includes: parsing the second request to obtain first information and second information; wherein the first information is used to determine the target parameters and the second information is used to characterize the operation instance requirements; selecting the target parameters from the blueprint parameter pool based on the first information; and generating an operation instance based on the target parameters and the second information.

[0007] According to an embodiment of the present disclosure, generating an operation instance based on a target parameter and second information includes: generating an initial instance based on the second information; and assigning the target parameter to the corresponding initial instance to obtain the operation instance.

[0008] According to an embodiment of the present disclosure, the attribute information of multiple nodes is obtained, including: obtaining the authentication credentials of each node; sending an attribute acquisition request to a designated interface of the node based on the authentication credentials; parsing the received response information to obtain the attribute information of the node; wherein the response information is generated by the node based on the received attribute acquisition request.

[0009] According to an embodiment of the present disclosure, based on the status information and / or configuration information, the correspondence between each node and the operation instance is determined, including: based on the configuration information, determining a first correspondence between each node and the operation instance; wherein, in the first correspondence, nodes of the same role correspond to the same operation instances; based on the configuration information and the status information, determining a second correspondence between each node and the operation instance; wherein, in the second correspondence, nodes of the same role correspond to different operation instances.

[0010] According to an embodiment of the present disclosure, based on the configuration information and the status information, the second correspondence between each node and the operation instance is determined, including: determining the target instance group corresponding to each node according to the configuration information of each node, wherein nodes of different roles correspond to different target instance groups, and the target instance group contains different operation instances to obtain attribute information of multiple nodes; based on the status information of the node, matching the target instance corresponding to the node in the target instance group to obtain the second correspondence between the node and the operation instance.

[0011] According to an embodiment of the present disclosure, based on the corresponding relationship, the control middleware sends corresponding operation instances to multiple nodes respectively, including: determining the corresponding message format based on the configuration information of each node; wherein the message format includes a message header and a message body; performing a serialization operation on the operation instance, and encapsulating the operation instance after the serialization operation in the message body to obtain a message to be transmitted; sending the message to be transmitted to the middleware, and the middleware sends the message to be transmitted to the target node based on the corresponding relationship.

[0012] A second aspect of the present disclosure provides a data transmission device, including: a construction module, used to parse a received first request, and build a blueprint parameter pool based on the parsing result; wherein the parsing result includes at least function information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information; a generation module, used to select target parameters from the blueprint parameter pool in response to receiving a second request and generate an operation instance based on the target parameters; wherein the operation instance is used to enable the node to execute a specific business logic; an acquisition module, used to acquire attribute information of multiple nodes; wherein the attribute information includes at least one of the state information and configuration information of the node, the state information is used to characterize the dynamic information of the node at the current moment, and the configuration information is used to characterize the role information of the node; a determination module, used to determine the correspondence between each node and the operation instance based on the role information, configuration information and / or state information; a control module, used to control the middleware to send corresponding operation instances to multiple nodes respectively based on the correspondence; wherein nodes with different roles receive different operation instances.

[0013] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0015] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0017] Figure 1 The application scenario diagram of the data transmission method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown;

[0018] Figure 2 A flowchart of a data transmission method according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 3 A flowchart of constructing a blueprint parameter pool in response to a received first request according to an embodiment of the present disclosure is schematically shown;

[0020] Figure 4 A flowchart schematically shows, in response to receiving a second request, selecting a target parameter from a blueprint parameter pool and generating an operation instance based on the target parameter according to an embodiment of the present disclosure;

[0021] Figure 5 Schematically shows a flowchart of an operation example based on target parameters and second information generation according to an embodiment of the present disclosure;

[0022] Figure 6 A flowchart for obtaining attribute information of multiple nodes according to an embodiment of the present disclosure is schematically shown;

[0023] Figure 7 A flowchart schematically illustrates a method of determining a second corresponding relationship between each node and an embodiment based on configuration information and state information according to an embodiment of the present disclosure;

[0024] Figure 8 A flowchart schematically shows a method of controlling a middleware to send corresponding operation instances to multiple nodes based on a corresponding relationship according to an embodiment of the present disclosure;

[0025] Fig. 9 A structural block diagram of a data transmission device according to an embodiment of the present disclosure is schematically shown; and

[0026] Fig.10 A block diagram of an electronic device suitable for implementing a data transmission method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0027] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0028] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0029] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0030] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0031] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0032] In the technical solution of the present disclosure, the information and data involved (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] An embodiment of the present disclosure provides a data transmission method, comprising: parsing a received first request, building a blueprint parameter pool based on the parsing result, wherein the parsing result includes at least function information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information; in response to receiving a second request, selecting a target parameter from the blueprint parameter pool and generating an operation instance based on the target parameter; wherein the operation instance is used to enable the node to execute a specific business logic; obtaining attribute information of multiple nodes; wherein the attribute information includes at least one of the node's status information and configuration information, the status information is used to characterize the node's dynamic information at the current moment, and the configuration information is used to characterize the node's role information; based on the role information, configuration information and / or status information, determining the correspondence between each node and the embodiment; based on the correspondence, controlling the middleware to send corresponding operation instances to multiple nodes respectively; wherein nodes with different roles receive different operation instances.

[0034] Figure 1 An application scenario diagram of the data transmission method, apparatus, device, medium, and program product according to an embodiment of the present disclosure is schematically shown.

[0035] like Figure 1As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0036] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0037] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0038] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0039] It should be noted that the data transmission method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the node configuration device provided in the embodiment of the present disclosure can generally be set in the server 105. The data transmission method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the node configuration device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0040] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0041] The following will be based on Figure 1 The scene described by Figure 2~Figure 8 The data transmission method of the disclosed embodiment is described in detail.

[0042] Figure 2 The flowchart of the data transmission method according to the embodiment of the present disclosure is schematically shown.

[0043] like Figure 2 As shown, the data transmission method of this embodiment includes operations S210 to S250.

[0044] In operation S210, the received first request is parsed, and a blueprint parameter pool is constructed based on the parsing result; wherein the parsing result includes at least functional information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the functional information.

[0045] In some embodiments, after receiving a first request sent by a user, a corresponding blueprint parameter pool is constructed by parsing the first request.

[0046] A blueprint is a predefined template or script that describes how to configure, deploy, and manage a set of resources or services. A blueprint may include a series of steps that define the entire process from creating a resource to configuring its properties. A blueprint parameter pool is a place to centrally store and manage parameters. These parameters are defined during blueprint design and referenced by different operations or components as needed during blueprint execution. Parameters in a blueprint parameter pool can include various types of data, such as strings, numbers, Boolean values, etc., which are used to configure various properties of cloud service resources.

[0047] During the specific implementation process, the first request is sent by the user through an application programming interface (API) call, a web interface operation or other communication methods. By parsing the received first request, the specific functions (function information) that the user wants to perform and the specific parameters or conditions (requirement information) required for these functions are identified.

[0048] In operation S220, in response to receiving the second request, a target parameter is selected from the blueprint parameter pool and an operation instance is generated based on the target parameter; wherein the operation instance is used to enable a designated node to execute a specific business logic.

[0049] In some embodiments, the second request may include the first information and the second information. The second information is used to characterize the requirements of the operation instance, and the first information is the information of the target parameters required to construct the operation instance. The operation instance is generated by parsing the target parameter information and the operation instance requirement information in the second request. One business logic may correspond to one operation instance, or may be split into multiple operations, corresponding to generating multiple operation instances, which are respectively executed by multiple identical or different nodes to complete the business logic.

[0050] During the specific implementation process, the second request may also include a blueprint identifier, which is used to quickly locate the corresponding blueprint parameter pool and generate an operation instance based on the target parameter information and the operation instance requirement information.

[0051] In operation S230, attribute information of a plurality of nodes is acquired.

[0052] In some embodiments, the attribute information includes at least one of the state information and configuration information of the node, the state information is used to represent the dynamic information of the node at the current moment, and the configuration information is used to represent the role information of the node.

[0053] Optionally, the state information of the node is used to represent the dynamic information of the node at the current moment, such as the current resource usage, health status, load status, etc. of the node.

[0054] The configuration information of a node is the static or configurable properties of the node, such as the role information and labels of the node. The role information includes, for example, the specific responsibilities and functions of the node in the cluster. Allocating operation instances based on the role information of the node can effectively optimize the rationality of resource allocation, improve the stability of the system, and support complex scenarios.

[0055] In the specific implementation process, the node role can include multiple aspects, depending on the type and purpose of the cluster. Taking the node roles of master node and slave node as an example, the master node is mainly responsible for processing write operations and some key read operations. It is the main storage and management node of data and has high performance requirements. The slave node is mainly used to undertake read operations and data backup tasks, and has lower performance requirements. The master node and the slave node differ in both functional responsibilities and performance requirements. Therefore, different implementation examples can be sent to corresponding nodes based on role information to improve resource utilization and stability.

[0056] In operation S240, a correspondence between each node and an operation instance is determined based on the role information configuration information and / or the state information.

[0057] In some embodiments, if the attribute information of a node is different, the operation instance corresponding to the node may be different. Determining the correspondence between a node and an operation instance based on the attribute information of the node can effectively improve the flexibility and accuracy of the operation instance distribution, achieve load balancing, optimize the execution efficiency of each operation instance, and improve the utilization rate of node resources.

[0058] In operation S250, based on the corresponding relationship, the control middleware sends corresponding operation instances to multiple nodes respectively; wherein nodes with different roles receive different operation instances.

[0059] In some embodiments, the correspondence may include, for example, a first correspondence and a second correspondence. In the first correspondence, nodes with the same role information correspond to the same operation instances, and nodes with different role information correspond to different operation instances. In the second correspondence, nodes with the same role information may also correspond to different operation instances.

[0060] In the disclosed embodiment, the middleware is used as an intermediate component for message transmission, and a middleware embodiment is shared on multiple nodes to achieve efficient resource utilization and simplified management. The middleware service is logically regarded as a single entity responsible for processing requests and responses from multiple nodes.

[0061] The distribution of operation instances based on middleware can effectively decouple the sender and receiver of messages, improve the flexibility and scalability of message delivery. And message delivery through middleware can effectively improve the response speed, effectively handle a large number of concurrent requests, and reduce the pressure on the server.

[0062] The data transmission method provided by the embodiment of the present disclosure can effectively improve the flexibility and response speed of the generation of operation instances by selecting target parameters from the blueprint parameter pool to generate operation instances, so as to quickly generate corresponding operation instances according to different business scenarios or requirements, and the design of the blueprint parameter pool can effectively realize the dynamic management and maintenance of the configuration parameter set, so that the configuration parameters can be flexibly adjusted according to business requirements, thereby improving the scalability of the configuration parameters. In addition, the embodiment of the present disclosure sends operation instances to each node based on the corresponding relationship by the middleware, which can effectively improve the overall efficiency and accuracy of node configuration and management. The operation instances directly act on the specified nodes, so that these nodes can quickly adapt to new business logic or configuration requirements, effectively improving the stability and reliability of node management.

[0063] Figure 3 The flowchart of constructing a blueprint parameter pool in response to a received first request according to an embodiment of the present disclosure is schematically shown.

[0064] like Figure 3As shown, in response to the received first request, building a blueprint parameter pool in this embodiment includes operations S310 to S320.

[0065] In operation S310 , a target blueprint framework is selected from a plurality of pre-built blueprint frameworks based on the functional information.

[0066] In some embodiments, the functional information is used to characterize the service or operation type involved in the first request, which defines the basic tasks or functions that the system needs to perform. For example, the first request may be a request to create a new database instance, run a data analysis task, or access a specific storage resource. Based on the parsed functional information, one or more blueprint frameworks that match the target functional items can be selected from the blueprint framework library. Among them, the blueprint framework library includes multiple constructed blueprint frameworks, which are standardized templates designed for different types of functions and services. Each blueprint framework contains a series of predefined components, configurations, and processes for rapid deployment and configuration of services.

[0067] In operation S320, a blueprint parameter pool corresponding to the target blueprint framework is constructed based on the demand information.

[0068] In some embodiments, the requirement information is a parameter or condition further refined on the basis of the function information, and the requirement information specifies the specific configuration, resource amount, performance requirements, etc. required to perform the task or function. Based on the requirement information obtained by parsing, a blueprint parameter pool corresponding to the target blueprint framework is constructed, wherein the blueprint parameter pool contains a collection of all necessary parameters and configuration information for guiding the implementation and deployment of the blueprint framework.

[0069] In the specific implementation process, the required target blueprint framework is first clarified through the function information, wherein the function information can be either the relevant information of the basic tasks or functions to be performed, or directly the blueprint identifier. In the case where the function information is the relevant information of the basic tasks or functions to be performed, the server automatically selects a suitable blueprint framework from the blueprint framework library as the target blueprint framework by analyzing the function information. In the case where the function information is a blueprint identifier, the corresponding blueprint framework is directly searched from the blueprint framework library based on the blueprint identifier as the target blueprint framework. After selecting the target framework, a blueprint parameter pool corresponding to the target blueprint framework is constructed according to the requirement information obtained by parsing, wherein the blueprint parameter pool contains all the parameters and configuration information required when executing the target function or task. Among them, the requirement information may include, for example, a parameter list, a parameter value (or a parameter selection condition), etc. And, if the parameter is a dynamically generated parameter, in addition to the parameter value, the requirement information should also include the necessary conditions for generating these values.

[0070] The disclosed embodiment determines the target blueprint framework based on the first request and constructs a blueprint parameter pool corresponding to the target blueprint framework, which can effectively improve development efficiency, avoid the tedious process of designing an architecture from scratch, and improve the scalability and maintainability of the blueprint parameter pool, so that the system can flexibly adapt to different business scenarios and changes in demand.

[0071] Figure 4 The flowchart schematically shows, in response to receiving a second request, selecting a target parameter from a blueprint parameter pool and generating an operation instance based on the target parameter according to an embodiment of the present disclosure.

[0072] like Figure 4 As shown, in response to receiving the second request, this embodiment selects target parameters from the blueprint parameter pool and generates an operation instance based on the target parameters, including operations S410 to S430.

[0073] In operation S410, the second request is parsed to obtain first information and second information; wherein the first information is used to determine the target parameter, and the second information is used to characterize the operation instance requirement.

[0074] In some embodiments, a parsing operation is performed on the received second request, and the second request may include multiple types of information, such as user input, system status, external data, etc. The first information and the second information are extracted from the parsed information.

[0075] In operation S420, a target parameter is selected from a blueprint parameter pool based on the first information.

[0076] In operation S430, an operation instance is generated based on the target parameter and the second information.

[0077] In some embodiments, the first information is used to determine parameter requirements, which may be necessary to perform a certain operation. The required target parameters are searched and determined in the blueprint parameter pool according to the first information, and these target parameters will be used for subsequent operation instance generation. Among them, the first information may include, for example, data types, ranges, default values, etc. After determining the target parameters, a specific operation instance is generated based on the target parameters and the second information, wherein the number of operation instances is not less than 1, and the operation instance contains all the information required to perform the current operation, such as operation type, parameter value, execution conditions, etc.

[0078] In the specific implementation process, each business logic may correspond to an operation instance, or may be split into multiple operations, and multiple operation instances may be generated accordingly. When the business logic corresponds to multiple operation instances, the second request may include multiple sub-requests, wherein each sub-request has corresponding first information and second information, and based on the first information and second information of each sub-request, the target parameter corresponding to the sub-request is determined and the operation instance corresponding to the sub-request is created. The generation process of the operation instance is dynamic and can be adjusted according to different requests and parameters.

[0079] In addition, the process of selecting the target parameter may also include: verifying the searched parameter. Specifically, it may be verified whether the searched parameter meets the requirements of the second request (such as the accuracy, applicability, and completeness of the parameter) and the constraints in the blueprint definition (such as data type, value range, etc.). If the searched parameter meets the user request requirements and the constraints, the searched parameter is determined as the target parameter.

[0080] The embodiments of the present disclosure dynamically generate operation instances according to different requests, which can effectively improve the flexibility and adaptability of the system and achieve efficient generation of operation instances.

[0081] Figure 5 A flowchart schematically shows an operation example based on target parameters and second information generation according to an embodiment of the present disclosure.

[0082] like Figure 5 As shown, the example of generating an operation based on the target parameter and the second information in this embodiment includes operations S510 to S520.

[0083] In operation S510, an initial instance is generated based on second information.

[0084] In some embodiments, the second information is parsed, initial instances are generated according to the parsed information, and necessary resources, such as network connections, database connections, etc., are allocated to each initial instance.

[0085] The second information is used to further describe or specify the specific requirements of the operation instance, which may include the specific type of operation, required resources, execution conditions, etc. The initial instance is generated according to the parsed second information, wherein the initial instance is a basic framework or template that can be created according to the general part of the second information or predefined rules. The initial instance contains the basic structure and attributes required for the operation instance, but has not yet filled in specific target parameters or execution details.

[0086] In operation S520, target parameters are assigned to corresponding initial instances to obtain operation instances.

[0087] In some embodiments, after the initial instance is generated, the acquired target parameters are assigned to the corresponding initial instance, and the target parameters in each initial instance are verified to ensure that the instance formed by the target parameters conforms to the expected format and range. After the verification is passed, the instance is determined as an operation instance. The target parameters are specific, customized information for each operation instance, and may include input data, execution parameters, configuration options, etc. By assigning corresponding target parameters to each initial instance, the initial instance is converted into a specific, executable operation instance.

[0088] The present disclosure generates an initial instance and flexibly assigns different target parameters to the initial instance without changing the basic structure or logic to obtain an operation instance, thereby improving the flexibility and scalability of the operation instance generation. As a predefined template or pattern, the initial instance can be repeatedly adapted in different contexts. By simply changing the target parameters, multiple operation instances with similar structures but different functions can be quickly generated, thereby improving the repeatability of the operation instance. In some special cases, the target parameters may need to be dynamically determined at runtime. By pre-generating the initial instance, the target parameters can be dynamically assigned at runtime according to actual needs, thereby realizing the dynamic operation instance construction process, effectively improving development efficiency, and enhancing the maintainability and scalability of the system.

[0089] Figure 6 The flowchart of obtaining attribute information of multiple nodes according to an embodiment of the present disclosure is schematically shown.

[0090] like Figure 6 As shown, the step of obtaining role information of multiple nodes in this embodiment includes operations S610 to S630.

[0091] In operation S610, the authentication credentials of each node are obtained.

[0092] In some embodiments, before calling the designated interface of the node, it is necessary to obtain the authentication credentials of each node, wherein the node credentials include the designated interface key, access token, etc.

[0093] Among them, obtaining the authentication credentials of the node includes centralized authentication and decentralized authentication. The corresponding authentication method can be selected according to the node architecture and permission settings. For example, if all nodes use the same authentication center or the authentication information is shared between the nodes, it means that each node corresponds to the same set of authentication credentials. Then, only one set of authentication credentials is needed to access the specified interface of all nodes. If the authentication mechanisms of each node are different and the authentication information is not shared between these mechanisms, the authentication credentials of each node need to be obtained separately.

[0094] In operation S620, a property acquisition request is sent to a designated interface of the node based on the authentication credentials.

[0095] In some embodiments, an attribute acquisition request is constructed based on the acquired authentication credentials, and the attribute acquisition request is sent to the designated interface of the node. The authentication credentials are included in the request header or request body of the attribute acquisition request, and are used to verify whether the attribute acquisition request is valid when the designated interface receives the request. If the authentication credentials of the attribute acquisition request are valid, the designated interface further processes the attribute acquisition request and generates response information based on the parsing result. The designated interface can be, for example, an application programming interface (API) interface, which can provide a standardized and efficient data acquisition method and ensure the consistency and accuracy of the data.

[0096] In operation S630, the received response information is parsed to obtain the attribute information of the node; wherein the response information is generated by the node based on the received attribute acquisition request.

[0097] In some embodiments, the response information received from the node is parsed to obtain the attribute information of the node.

[0098] The response information may include, for example, a status code, a response header, and a response body. The status code is used to indicate the processing result of the property acquisition request, and the response header contains metadata about the response, such as content type, cache control, etc. The response body contains the result data of the property acquisition request, for example, the status information and configuration information of the node, such as the role ID, role name, permission list information, resource status, etc. of the node.

[0099] The disclosed embodiment obtains the attribute information of the node based on the authentication credentials of the node, effectively improving the security of the node information and preventing unauthorized access and data leakage risks. The method can dynamically obtain the attribute information of the node, effectively improving the flexibility of obtaining the node attribute information, and can quickly respond to business changes and improve the flexibility of updating the node attribute information.

[0100] The data transmission method provided by the embodiment of the present disclosure further includes: determining the correspondence between each node and the operation instance based on the state information and / or configuration information.

[0101] Based on the configuration information, a first correspondence between each node and an operation instance is determined; wherein, in the first correspondence, nodes with the same role correspond to the same operation instance.

[0102] In some embodiments, taking the case where the role information of a node includes a master node and a slave node as an example, the number of master nodes is 1, and the number of slave nodes is N (N is a positive integer).

[0103] If the correspondence between the node and the operation instance is the first correspondence, the same operation instance is sent to the nodes with the same role information. For example, operation instance A is sent to the master node, and the same operation instance B is sent to N slave nodes. Each node receives at least one operation instance, and the same operation instance can be sent to nodes with different role information at the same time. However, among the multiple operation instances received by nodes with different role information, there is at least one different operation instance. For example, the operation instances received by the master node include operation instance A, operation instance C1, and operation instance C2, and the operation instances received by the slave nodes include operation instance B, operation instance C1, and operation instance C2.

[0104] Or, based on the configuration information and the state information, a second corresponding relationship between each node and the operation instance is determined; wherein, in the second corresponding relationship, nodes with the same role correspond to different operation instances.

[0105] If the correspondence between the node and the operation instance is the second relationship, different operation instances are sent to nodes with the same role information. It is necessary to further determine the matching relationship between multiple nodes with the same role and each operation instance based on the status information of each node and send the corresponding operation instance to each node according to the matching relationship.

[0106] Figure 7 A flowchart is schematically shown for determining a second corresponding relationship between each node and an embodiment based on configuration information and state information according to an embodiment of the present disclosure.

[0107] like Figure 7 As shown, in this embodiment, sending different operation instances to nodes with the same role includes operations S710 to S720.

[0108] In operation S710, a target instance group corresponding to each node is determined according to configuration information of each node, wherein nodes with different roles correspond to different target instance groups, and the target instance groups contain different operation instances.

[0109] In some embodiments, the target instance group corresponding to each role node is determined according to the configuration information of the node. For example, all nodes whose node role is role 1 have a corresponding relationship with instance group A, and all nodes whose node role is role 2 have a corresponding relationship with instance group B. Instance group A and instance group B both contain multiple different operation instances.

[0110] In operation S720, based on the state information of the node, the target operation instance corresponding to the node is matched in the target instance group to obtain a second corresponding relationship between the node and the operation instance.

[0111] In some embodiments, the node status information is used to characterize the current available resources of each node, and may include, for example, node processing capability, memory size, storage capacity, current load, etc.

[0112] Different operation instances have different resource requirements (such as CPU resources, memory, network bandwidth, etc.). You can determine which nodes are suitable for executing specific operation instances based on the node attribute information and the resource requirements of each operation instance. For example, you can determine which node the operation instance in the instance group corresponds to based on the resource requirements of the operation instance and the remaining resources of the node. In addition, you can also consider the impact of resource utilization, load balancing, and communication costs between nodes on the corresponding relationship.

[0113] In the specific implementation process, the second correspondence between the operation instance and the node can be dynamically adjusted according to the change of the current resource situation of the node. For example, when the node load is too high, the middleware can migrate some operation instances to other nodes with lower load.

[0114] Exemplarily, nodes may include computing-intensive nodes (equipped with high-performance CPUs and large amounts of memory), storage-intensive nodes (equipped with large-capacity hard disks and sufficient I / O bandwidth), and general-purpose nodes (resource balance, suitable for performing multiple tasks). The types of operation instances may include big data analysis instances, machine learning training instances, file storage service instances, etc. Among them, big data analysis instances need to process a large amount of data, with high requirements for CPU and memory, but always have requirements for storage and I / O bandwidth; machine learning training instances are usually computing-intensive tasks, with high requirements for CPU resources, GPU resources, and memory; file storage service instances need to continuously read and write a large amount of data, with high requirements for storage and I / O bandwidth, but relatively low requirements for CPU and memory. By analyzing the requirements of the operation instance and the node resources, a corresponding relationship between each node and the operation instance is established to send each operation instance to the most suitable node. For example, a big data analysis instance can be deployed on a computing-intensive node to shorten the data analysis time; a file storage service instance can be deployed on a storage-intensive node to ensure rapid response and stability of data access, etc., thereby achieving optimal resource allocation and efficient utilization, which helps to improve the efficiency of business logic processing.

[0115] The data transmission method provided by the embodiment of the present disclosure sends operation instances based on the attribute information of the nodes, and can dynamically match the operation instances with the most suitable nodes according to the changes in the node environment, thereby improving the flexibility and reliability of the operation instance distribution and improving resource utilization and stability.

[0116] Figure 8The flowchart schematically shows a flow chart of controlling the middleware to send corresponding operation instances to multiple nodes respectively based on the corresponding relationship according to an embodiment of the present disclosure.

[0117] like Figure 8 As shown, based on the corresponding relationship, the control middleware of this embodiment sends corresponding operation instances to multiple nodes respectively, including operation S810 to operation S830.

[0118] In operation S810, a corresponding message format is determined based on configuration information of each node; wherein the message format includes a message header and a message body.

[0119] In some embodiments, the message formats corresponding to different nodes may be different. Therefore, it is necessary to first determine the message format corresponding to each node based on the node configuration information.

[0120] In the specific implementation process, the message format includes a message header and a message body, wherein the message header may include, for example, a target node address, a message type, an email, etc., and the message body may include the specific content of the operation instance.

[0121] In operation S820, a serialization operation is performed on the operation instance, and the operation instance after the serialization operation is encapsulated in a message body to obtain a message to be transmitted.

[0122] In some embodiments, after the message format is determined, a serialization operation is performed on the operation instance, and the operation instance is encapsulated in the message body, wherein the operation instance contains all necessary information required to perform the operation, such as the operation type, parameters, execution conditions, etc., and the information is converted into a format suitable for transmission through the serialization operation, and the converted information is embedded in the message body to obtain the message to be transmitted. The serialization operation can be implemented based on a preset serialization framework, and the serialization framework is used to convert the operation instance into a transmittable format, wherein common serialization frameworks include JSON, XML, etc.

[0123] Converting the operation instance into a message to be transmitted and sending it can effectively reduce the coupling between the sender and the receiver. If the operation instance is sent directly, the sender and the receiver must share the same operation instance type. Converting the operation instance into a message format and sending it can effectively reduce the dependency between the sender and the receiver, making it easier to expand and maintain. Converting the operation instance into a message format and sending it can achieve cross-platform interoperability. As a standardized format, the message format can be transmitted and processed across different platforms and languages, while the operation instance may be limited to a specific programming language or framework.

[0124] In operation S830, the message to be transmitted is sent to the middleware, and the middleware sends the message to be transmitted to the target node based on the corresponding relationship.

[0125] In some embodiments, after the message to be transmitted is generated, the message to be transmitted is sent to the middleware, and the middleware sends the message to be transmitted to the target node based on the corresponding relationship. During the transmission process, since different nodes may use different message formats, in order to ensure that the message can be correctly parsed and processed by the target node, the middleware may need to perform a series of processing on the received message to be transmitted, such as message format conversion, security encryption, load balancing, etc.

[0126] Middleware is a software component that can connect multiple systems and nodes, and is used to enable systems and / or nodes to work together. Middleware can provide a reliable data transmission mechanism between multiple nodes and / or systems to ensure that data is transmitted safely and completely between applications. In addition, middleware can also realize the conversion of communication protocols, so that different systems and / or applications can communicate seamlessly. Sending messages to be transmitted to the target node based on middleware can effectively improve the security and reliability of message transmission.

[0127] The data transmission method provided by the embodiment of the present disclosure dynamically adjusts the structure and content of the message based on the role information of the node, so that the system can flexibly adapt to different business scenarios and changes in demand, and uses the middleware as the transmission channel of the message, which can optimize the routing and distribution strategies of the message, ensure that the message can reach the target node quickly and accurately, and send and receive messages based on the middleware, without establishing a connection between the message sender and the receiver, thereby reducing the coupling between the sender and the receiver and improving the stability and reliability of message transmission.

[0128] Based on the above data transmission method, the present disclosure also provides a data transmission device. Fig. 9 The device is described in detail.

[0129] Fig. 9 The structural block diagram of the data transmission device according to an embodiment of the present disclosure is schematically shown.

[0130] like Fig. 9 As shown, the data transmission device 900 of this embodiment includes a construction module 910 , a generation module 920 , an acquisition module 930 , a determination module 940 and a control module 950 .

[0131] The construction module 910 is used to parse the received first request and construct a blueprint parameter pool based on the parsing result; wherein the parsing result includes at least function information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information. In one embodiment, the construction module 910 can be used to perform the operation S210 described above, which will not be repeated here.

[0132] The generation module 920 is used to select a target parameter from the blueprint parameter pool in response to receiving the second request and generate an operation instance based on the target parameter; wherein the operation instance is used to enable the node to execute a specific business logic. In one embodiment, the generation module 920 can be used to perform the operation S220 described above, which will not be repeated here.

[0133] The acquisition module 930 is used to acquire the attribute information of multiple nodes; wherein the attribute information includes at least one of the state information and configuration information of the node, the state information is used to represent the dynamic information of the node at the current moment, and the configuration information is used to represent the role information of the node. In one embodiment, the acquisition module 930 can be used to perform the operation S230 described above, which will not be repeated here.

[0134] The determination module 940 is used to determine the correspondence between each node and the operation instance based on the role information configuration information and / or the state information. In one embodiment, the determination module 940 can be used to perform the operation S240 described above, which will not be described in detail here.

[0135] The control module 950 is used to control the middleware to send corresponding operation instances to multiple nodes based on the corresponding relationship; wherein nodes with different roles receive different operation instances. In one embodiment, the control module 950 can be used to perform the operation S250 described above, which will not be repeated here.

[0136] According to an embodiment of the present disclosure, any multiple modules of the construction module 910, the generation module 920, the acquisition module 930, the determination module 940 and the control module 950 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the construction module 910, the generation module 920, the acquisition module 930, the determination module 940 and the control module 950 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the construction module 910 , the generation module 920 , the acquisition module 930 , the determination module 940 , and the control module 950 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.

[0137] Fig.10A block diagram of an electronic device suitable for implementing a data transmission method according to an embodiment of the present disclosure is schematically shown.

[0138] like Fig.10 As shown, the electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 to a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0139] In RAM 1003, various programs and data required for the operation of electronic device 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0140] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The electronic device 1000 may further include one or more of the following components connected to the input / output (I / O) interface 1005: an input portion 1006 including a keyboard, a mouse, etc.; an output portion 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk, etc.; and a communication portion 1009 including a network interface card such as a LAN card, a modem, etc. The communication portion 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the input / output (I / O) interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage portion 1008 as needed.

[0141] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0142] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1002 and / or RAM 1003 described above and / or one or more memories other than ROM 1002 and RAM 1003.

[0143] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the data transmission method provided by the embodiment of the present disclosure.

[0144] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1001. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0145] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1009, and / or installed from the removable medium 1011. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0146] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0147] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0148] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0149] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0150] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data transmission method, characterized in that: The method comprises: Parse the received first request, and build a blueprint parameter pool based on the parsing result; wherein the parsing result includes at least function information and requirement information, the function information and the requirement information are both used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information; In response to receiving the second request, selecting a target parameter from the blueprint parameter pool and generating an operation instance based on the target parameter; wherein the operation instance is used to enable the node to execute a specific business logic; Acquire attribute information of multiple nodes; wherein the attribute information includes at least one of state information and configuration information of the node, the state information is used to represent the dynamic information of the node at the current moment, and the configuration information is used to represent the role information of the node; Determine a correspondence between each node and the operation instance based on the configuration information and / or the state information; Based on the corresponding relationship, the control middleware sends corresponding operation instances to the multiple nodes respectively; wherein nodes with different roles receive different operation instances.

2. The data transmission method according to claim 1, characterized in that ,, the parsing of the received first request and building a blueprint parameter pool based on the parsing result includes: Based on the functional information, selecting a target blueprint framework from a plurality of pre-built blueprint frameworks; Based on the demand information, a blueprint parameter pool corresponding to the target blueprint framework is constructed.

3. The data transmission method according to claim 1, characterized in that: In response to receiving the second request, selecting a target parameter from the blueprint parameter pool and generating an operation instance based on the target parameter comprises: Parsing the second request to obtain first information and second information; wherein the first information is used to determine the target parameter, and the second information is used to characterize the operation instance requirement; Selecting a target parameter from a blueprint parameter pool based on the first information; An operation instance is generated based on the target parameter and the second information.

4. The data transmission method according to claim 3, characterized in that: The generating an operation instance based on the target parameter and the second information includes: generating an initial instance based on the second information; The target parameters are assigned to the corresponding initial instances to obtain the operation instances.

5. The data transmission method according to claim 1, characterized in that: The obtaining of attribute information of multiple nodes includes: Obtain authentication credentials for each node; Sending an attribute acquisition request to a designated interface of the node based on the authentication credential; Parse the received response information to obtain the attribute information of the node; wherein the response information is generated by the node based on the received attribute acquisition request.

6. The data transmission method according to claim 1, characterized in that: The determining, based on the state information and / or the configuration information, a correspondence between each node and the operation instance includes: Based on the configuration information, determine a first correspondence between each node and the operation instance; wherein, in the first correspondence, nodes with the same role correspond to the same operation instance; or Based on the configuration information and the state information, a second corresponding relationship between each node and the operation instance is determined; wherein, in the second corresponding relationship, nodes with the same role correspond to different operation instances.

7. The data transmission method according to claim 6, characterized in that: The determining, based on the configuration information and the state information, a second corresponding relationship between each node and the operation instance includes: Determine the target instance group corresponding to each node according to the configuration information of each node, wherein nodes with different roles correspond to different target instance groups, and the target instance groups contain different operation instances; Based on the state information of the node, a target operation instance corresponding to the node is matched in the target instance group to obtain a second corresponding relationship between the node and the operation instance.

8. The data transmission method according to claim 1, characterized in that: Based on the corresponding relationship, the controlling middleware sends corresponding operation instances to the multiple nodes respectively, including: Determine a corresponding message format based on the configuration information of each node; wherein the message format includes a message header and a message body; Performing a serialization operation on the operation instance, and encapsulating the operation instance after the serialization operation in a message body to obtain a message to be transmitted; The message to be transmitted is sent to a middleware, and the middleware sends the message to be transmitted to a target node based on the corresponding relationship.

9. A data transmission device, characterized in that: The device comprises: A construction module, configured to parse the received first request and construct a blueprint parameter pool based on the parsing result; wherein the parsing result includes at least function information and requirement information, both of which are used to characterize the purpose of the blueprint parameter pool, and the requirement information is a refinement of the function information; A generation module, configured to select a target parameter from the blueprint parameter pool and generate an operation instance based on the target parameter in response to receiving the second request; wherein the operation instance is used to enable the node to execute a specific business logic; An acquisition module, used to acquire attribute information of multiple nodes; wherein the attribute information includes at least one of the state information and configuration information of the node, the state information is used to represent the dynamic information of the node at the current moment, and the configuration information is used to represent the role information of the node; A determination module, configured to determine a correspondence between each node and the operation instance based on the role information configuration information and / or the state information; The control module is used to control the middleware to send corresponding operation instances to the multiple nodes respectively based on the corresponding relationship; wherein the operation instances received by nodes with different roles are different.

10. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.