A heterogeneous communication method, device and equipment
By synchronizing the configuration information of heterogeneous nodes and processing packets based on the service interface, the stability problem during heterogeneous node access and communication protocol changes is solved, and fast access to heterogeneous nodes and smooth communication between service nodes is achieved.
Patent Information
- Application Number
- CN202310162365.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2043-02-21
AI Technical Summary
Heterogeneous nodes cannot quickly access the network interconnection system, resulting in inconvenience in communication between service nodes and heterogeneous nodes. When the communication protocol of heterogeneous nodes is changed, the stability of the network interconnection system is poor.
By obtaining heterogeneous configuration information of heterogeneous nodes and synchronizing it to the network interconnection device in the network interconnection system after verification, it receives unified request messages from service nodes based on the service interface, and assembles messages based on heterogeneous configuration information. , send, receive and convert, to ensure smooth communication between service nodes and heterogeneous nodes.
It realizes the system stability when the communication protocol changes of heterogeneous nodes is quickly accessed and the risk of synchronization delays and inconsistencies such as storage paths and caches. The system operation link is clear and maintainable.
Smart Images

Figure CN116155719B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a heterogeneous communication method, device and equipment. Background Art
[0002] When the application system cooperates with external organizations, there are a lot of demands for adapting to the protocols of various external organizations, including message protocols, communication protocols, security policies, etc. How to efficiently and quickly adapt to various external organization protocols is of great significance to improving the efficiency of business access. Adapting a large number of differentiated messages from organizations while ensuring the stability of the network interconnection system (usually referred to as the gateway system) is the core of the smooth operation of the business. The communication protocols of different external organizations are different. The gateway needs to shield various heterogeneous adaptations and provide a unified message protocol to the business system to facilitate the use of the business system.
[0003] However, with the current heterogeneous communication method, heterogeneous nodes cannot be quickly connected to the network interconnection system, which makes it inconvenient for business nodes to communicate with heterogeneous nodes, and when the communication protocol of heterogeneous nodes is changed, the stability of the network interconnection system is poor. Summary of the invention
[0004] One or more embodiments of the present specification provide a heterogeneous communication method, apparatus, device and storage medium to solve the following technical problems: heterogeneous nodes cannot quickly access the network interconnection system, making it inconvenient for business nodes to communicate with heterogeneous nodes, and when the communication protocol of the heterogeneous nodes is changed, the stability of the network interconnection system is poor.
[0005] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
[0006] One or more embodiments of this specification provide a heterogeneous communication method, applicable to a network interconnection system, including:
[0007] Obtain heterogeneous configuration information corresponding to heterogeneous nodes, and synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification;
[0008] Receive a unified request message sent by a business node based on a service interface;
[0009] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface;
[0010] Based on the heterogeneous configuration information, the unified request message is assembled to obtain the heterogeneous request message corresponding to the heterogeneous nodes;
[0011] Send heterogeneous request messages to heterogeneous nodes and receive heterogeneous response messages returned by heterogeneous nodes;
[0012] According to the heterogeneous configuration information, the heterogeneous response messages are converted into a unified response message and sent to the service node.
[0013] One or more embodiments of this specification provide a heterogeneous communication device, which is applicable to a configuration terminal in a network interconnection device, including:
[0014] The configuration unit is used to obtain heterogeneous configuration information corresponding to heterogeneous nodes, and synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification.
[0015] One or more embodiments of this specification provide a heterogeneous communication device, which is applicable to an operating terminal in a network interconnection device, including:
[0016] A request receiving unit, used to receive a unified request message sent by a service node based on a service interface;
[0017] An acquisition unit, used to acquire heterogeneous configuration information corresponding to a service interface according to a preset service interface index;
[0018] An assembling unit, used for assembling the unified request message based on the heterogeneous configuration information to obtain the heterogeneous request message corresponding to the heterogeneous nodes;
[0019] A communication unit, used to send a heterogeneous request message to a heterogeneous node and receive a heterogeneous response message returned by the heterogeneous node;
[0020] The parsing unit is used to convert the heterogeneous response message into a unified response message according to the heterogeneous configuration information, and send it to the service node.
[0021] One or more embodiments of this specification provide a heterogeneous communication device, including:
[0022] at least one processor; and,
[0023] a memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0025] Receive a unified request message sent by a business node based on a service interface;
[0026] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface;
[0027] Based on the heterogeneous configuration information, assembling the unified request message to obtain a heterogeneous request message corresponding to the heterogeneous node;
[0028] Sending the heterogeneous request message to the heterogeneous node, and receiving the heterogeneous response message returned by the heterogeneous node;
[0029] According to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message, and sent to the service node.
[0030] One or more embodiments of this specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to:
[0031] Receive a unified request message sent by a business node based on a service interface;
[0032] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface;
[0033] Based on the heterogeneous configuration information, assembling the unified request message to obtain a heterogeneous request message corresponding to the heterogeneous node;
[0034] Sending the heterogeneous request message to the heterogeneous node, and receiving the heterogeneous response message returned by the heterogeneous node;
[0035] According to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message, and sent to the service node.
[0036] At least one of the above technical solutions adopted in one or more embodiments of this specification can achieve the following beneficial effects:
[0037] When a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to the network interconnection device corresponding to the online environment, without the need for a Git repository, avoiding various synchronization delays and inconsistency risks such as storage paths and caches, and the system operation link is clear and maintainable. This makes it easy for heterogeneous nodes to quickly access the network interconnection system, so that business nodes and heterogeneous nodes can communicate quickly, and ensure the stability of the network interconnection system when the communication protocol of the heterogeneous nodes is changed. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0039] Figure 1 is a scenario diagram of a heterogeneous communication system provided by one or more embodiments of this specification;
[0040] Figure 2a This is a first flow chart of a heterogeneous communication method provided by one or more embodiments of this specification;
[0041] Figure 2b is a second flow chart of the heterogeneous communication method provided by one or more embodiments of this specification;
[0042] Figure 2c It is a third flow chart of the heterogeneous communication method provided by one or more embodiments of this specification;
[0043] Figure 3a This is a first structural diagram of a heterogeneous communication device provided by one or more embodiments of this specification;
[0044] Figure 3b is a second structural diagram of a heterogeneous communication device provided by one or more embodiments of this specification;
[0045] Figure 4 is a schematic diagram of the architecture of a terminal of a heterogeneous communication system provided by one or more embodiments of this specification;
[0046] Figure 5a It is a schematic diagram of the operation flow of the operation equipment provided by one or more embodiments of this specification;
[0047] Figure 5b It is a schematic diagram of the heterogeneous configuration online process provided by one or more embodiments of this specification;
[0048] Figure 5c It is a schematic diagram of the operation flow of the operating equipment provided by one or more embodiments of this specification. DETAILED DESCRIPTION
[0049] The embodiments of this specification provide a heterogeneous communication method, apparatus, device, and storage medium.
[0050] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0051] There are two main solutions at present. The first one is to use Git warehouse to store heterogeneous velocity scripts and groovy scripts, and meet the differentiated message requirements of different institutions based on velocity scripts and groovy scripts. Different scripts only perform a module function, store Git addresses in the database according to different institutions, synchronize the scripts of Git warehouse to the server by scheduled tasks, and load the scripts from the corresponding directory of the server during operation to achieve the adaptation of differentiated messages. However, this method is difficult to control the cycle, and cannot synchronize to the latest script changes of Git in real time. In addition, the gateway system needs to synchronize and convert multiple times during loading. In addition, the use of local cache and distributed cache introduces various data inconsistency risks. The overall design is bloated, the use is complex, the use threshold is high, and the access efficiency is low. After the institution goes online, there are often demands for message, communication address, key replacement, etc. In the design process, only functional implementation is considered. In the subsequent external institution changes, it is impossible to support smooth configuration transition. The isolation is poor, the grayscale capability is poor, and the emergency capability is weak. The emergency can only manually operate the Git warehouse. The emergency efficiency is low and the risk of modifying the configuration when the institution changes is too high. It is difficult to maintain the smooth and orderly iterative development of the business. The system has poor high availability and insufficient stability. The second type is: based on a configured heterogeneous message gateway system, various atomic capabilities (such as HTTP communication capability, algorithm signature capability, string conversion capability, etc.) are provided based on the product configuration background, and the configuration is fully utilized to achieve the adaptation of the differentiated messages of the organization. However, as the number of heterogeneous nodes (i.e. external organizations) and business nodes (i.e. business systems) connected to the gateway system increases, the communication scenarios faced are becoming more and more complex, and the configured atomic capabilities cannot enumerate all differentiated scenarios, resulting in the problem that heterogeneous nodes cannot access the gateway system. At that time, the access efficiency will be greatly reduced due to insufficient atomic capabilities, and it will not be able to meet business development.
[0052] Therefore, a design method for a gateway system (i.e., a network interconnection device) that can quickly adapt to external organization protocols is needed to facilitate rapid access of heterogeneous nodes (i.e., external organizations) while ensuring the stability of the system when the protocols of heterogeneous nodes are changed.
[0053] Based on this, the embodiment of the present invention can obtain the heterogeneous configuration information corresponding to the heterogeneous nodes, and after verification, the heterogeneous configuration information is synchronized to the network interconnection device corresponding to the online environment in the network interconnection system; based on the service interface, the unified request message sent by the business node is received; according to the preset service interface index, the heterogeneous configuration information corresponding to the service interface is obtained; based on the heterogeneous configuration information, the unified request message is assembled to obtain the heterogeneous request message corresponding to the heterogeneous node; the heterogeneous request message is sent to the heterogeneous node, and the heterogeneous response message returned by the heterogeneous node is received; according to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message and sent to the business node. In the embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to each network interconnection device without the need for a Git repository, avoiding various synchronization delays and inconsistent risks such as storage paths and caches, and the system operation link is clear and maintainable. Thereby, it is convenient for heterogeneous nodes to quickly access the network interconnection system, so that the business node and the heterogeneous node can communicate quickly, and the stability of the network interconnection system is guaranteed when the communication protocol of the heterogeneous node is changed.
[0054] For example, reference Figure 1 , a heterogeneous communication system may include network interconnection devices (such as gateways), and terminals and / or servers, such as service terminals where service nodes are located and heterogeneous servers where heterogeneous nodes are located. It includes devices in different environments, such as devices corresponding to offline environments, devices corresponding to pre-release environments, devices corresponding to online environments, etc., which will be explained in detail below and will not be repeated here.
[0055] The network interconnection system in the present invention is a heterogeneous gateway system for business nodes, specifically refers to satisfying the communication protocol adaptation between various business nodes and heterogeneous nodes, generally including the adaptation of message protocols (such as message replacement, message format conversion, message sorting and other differentiated processing), the adaptation of message communication methods (such as HTTP protocol, HTTPS protocol, TCP protocol, etc.), and the adaptation of message security policies (such as various signature algorithms, encryption and decryption algorithms, digest algorithms, etc.). Different institutions (heterogeneous nodes) have different communication protocols, and the network interconnection equipment needs to shield various heterogeneous adaptations and provide a unified message protocol to the business nodes for the convenience of business nodes.
[0056] Among them, the terminal can be terminal devices such as mobile phones, tablets, laptops, etc., or it can be smart terminals such as wearable devices, smart speakers, smart home appliances, etc.
[0057] Above Figure 1 The example is only an example of a system architecture for implementing the embodiment of the present invention. The embodiment of the present invention is not limited to the above Figure 1 The system structure shown is based on which various embodiments of the present invention are proposed.
[0058] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.
[0059] This embodiment will be described from the perspective of a first heterogeneous communication device, which may be specifically integrated into a terminal device, such as a mobile phone, a tablet computer, a laptop computer, or a personal computer (PC).
[0060] FIG2 is a flow chart of a heterogeneous communication method provided by one or more embodiments of this specification. The method can be applied to different business fields, such as Internet financial business field, e-commerce business field, instant messaging business field, game business field, official business field, etc. The process can be executed by a computing device in the corresponding field (such as a configuration device and an operating device in a gateway system), and some input parameters or intermediate results in the process allow manual intervention and adjustment to help improve accuracy.
[0061] Figure 2a The process in may include the configuration process and the operation process, which may specifically include the following steps:
[0062] 101. Obtain heterogeneous configuration information corresponding to heterogeneous nodes, and synchronize the heterogeneous configuration information to all network interconnection devices in the network interconnection system.
[0063] Among them, heterogeneous nodes refer to nodes that use different communication protocols with business nodes. In business scenarios, business nodes need to communicate with heterogeneous nodes and exchange information to obtain services provided by heterogeneous nodes.
[0064] In an embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to the network interconnection device corresponding to the online environment, and quickly put into actual use for communication without the need for a Git repository, thereby avoiding the risks of various synchronization delays and inconsistencies such as storage paths and caches. The system operation link is clear and highly maintainable.
[0065] refer to Figure 5b and Figure 5c In one embodiment, the above steps specifically include the following steps:
[0066] Obtain heterogeneous configuration information corresponding to heterogeneous nodes;
[0067] Synchronize the heterogeneous configuration information to the device corresponding to the offline environment, and perform offline environment verification on the heterogeneous configuration information;
[0068] When the offline environment verification passes, the heterogeneous configuration information is synchronized to the device corresponding to the pre-release environment, and the configuration verification is performed;
[0069] After the configuration verification is passed in the pre-release environment, the heterogeneous configuration information is synchronized to all network interconnected devices corresponding to the offline environment.
[0070] When a new heterogeneous node is connected, the corresponding configuration personnel can complete the configuration and development of security, communication, and message heterogeneous scripts according to the service interface requirements, and enter them into the configuration center of the configuration terminal. The configuration center can use the distributed configuration middleware in the microservice (such as Apollo, etc.) to push the heterogeneous configuration information to the devices in the corresponding environment of the gateway in real time, and first synchronize it to the offline environment for joint debugging with business nodes and heterogeneous nodes to test the availability of the link. After the offline environment is verified to be correct, the configuration can be changed to the devices in the pre-release environment.
[0071] It is worth noting that because the pre-production environment is equivalent to a quasi-production environment, in order to ensure the stability of the heterogeneous gateway system, the core system is changed to perform change defense rule verification to ensure the stability and security of network interconnected devices when the configuration is changed.
[0072] refer to Figure 5b The change defense rule verification of this application refers to: before pushing the heterogeneous configuration information to the network interconnection device corresponding to the pre-release environment, a pre-verification is performed, which can be specifically performed such as script risk monitoring scanning (to prevent dangerous code loading), configuration information integrity verification, etc. After pushing the heterogeneous configuration information to the network interconnection device of the pre-release environment, a post-verification is also required, which can be specifically performed such as real-time operation monitoring of the gateway system, configuration operation result identification and detection, etc., to ensure the smooth operation of the system and the normal operation of the heterogeneous configuration to the greatest extent.
[0073] After the configuration verification of the pre-release environment is correct, the heterogeneous configuration information can be grouped and gradually synchronized to all network interconnected devices corresponding to the online environment according to different preset rules to complete the configuration online. The preset rules can be machine dimensions, user dimensions, etc. In this process, pre-verification and post-verification are still performed to ensure the stability of the entire network interconnection system during the configuration process.
[0074] 102. Receive a unified request message sent by a business node based on a service interface.
[0075] refer to Figure 5a ,The business system uses the preset internal microservice interface (such as the RPC interface of the Dubbo protocol) to send the unified message of the business system to the heterogeneous gateway system.
[0076] Among them, microservices is an architecture that divides a single monolithic application into smaller projects and associated independent services. A service usually implements a set of independent features or functions, including its own business logic and adapters. The association between each microservice is achieved by exposing the API (Application Program Interface). These independent microservices do not need to be deployed in the same virtual machine, the same system, and the same application server. When using, you can directly call the corresponding API interface.
[0077] 103. According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface.
[0078] refer to Figure 5a The heterogeneous gateway system obtains heterogeneous configuration information in the configuration center according to the unique interface index assigned to the business system and the specific service of an organization. The heterogeneous configuration information here has environmental isolation. Only the heterogeneous configuration information in the current communication corresponding environment can be found here. During the synchronization process with the heterogeneous configuration information of the configuration devices in the network interconnection system, the high availability of the network interconnection system is jointly guaranteed.
[0079] 104. Based on the heterogeneous configuration information, assemble the unified request message to obtain the heterogeneous request message corresponding to the heterogeneous node.
[0080] refer to Figure 5c After obtaining the heterogeneous configuration information, it enters the core processing flow of the network interconnection device, which mainly includes the message assembly processor, the message communication processor, and the message parsing processor.
[0081] Message assembly mainly uses heterogeneous script function methods to complete the heterogeneous adaptation of the unified request message of the business node to the heterogeneous request message. The heterogeneous script function is an abstract class reserved by the gateway system in the message assembly processor, and provides the ability to call various security services and common methods in various conversion processes within the script, such as sorting, traversal, replacement and other function tool libraries, which can minimize the difficulty of developing heterogeneous scripts. Script developers only need to focus on conversion adaptation.
[0082] The message assembly processor needs to load the heterogeneous assembly script corresponding to the configuration center to the network interconnection device. Here, different languages can choose script languages that are more compatible with this language. For example, Java language can choose Groovy as the corresponding script language. The groovy loading engine can load the script corresponding to the configuration center into the running state of the gateway system to complete the corresponding message assembly and security processing. In order to improve the performance of the gateway, the loading engine needs to cache the script in the system, so that it does not need to be loaded once for each business request, which consumes the gateway system memory while increasing the system risk and the call time.
[0083] Run the heterogeneous assembly script to complete the message assembly. The unified request message of the business node has been converted into the message protocol format of the heterogeneous node.
[0084] 105. Send the heterogeneous request message to the heterogeneous node, and receive the heterogeneous response message returned by the heterogeneous node.
[0085] refer to Figure 5c ,Entering the message communication processor, the gateway system needs to have various communication capabilities such as HTTP communication, TCP communication, HTTPS communication, webSocket communication, etc., set the request address, timeout time and other parameters of the heterogeneous nodes according to the communication configuration information, and send the message processed by the message assembly processor to the organization.
[0086] After the heterogeneous node processing is completed, the response message is returned to the communication processor of the gateway system, and the message is transferred to the message parsing processor.
[0087] 106. According to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message, and sent to the service node.
[0088] refer to Figure 5c The message parsing processor also mainly runs heterogeneous parsing scripts, uses the script loading engine to load the parsing script into the gateway system, uses security services in the script to complete decryption, signature verification and other authentication functions, and then converts the response message into a unified message of the business system according to the method in the parsing script function to complete the message parsing.
[0089] After the gateway completes the processing, it uses the internal microservice interface to send the unified response message to the business system.
[0090] As can be seen from the above, in the embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to each network interconnection device without the need for a Git repository, avoiding the risks of various synchronization delays and inconsistencies such as storage paths and caches, and the system operation link is clear and highly maintainable. This makes it convenient for heterogeneous nodes to quickly access the network interconnection system, so that business nodes and heterogeneous nodes can communicate quickly, and ensures the stability of the network interconnection system when the communication protocol of the heterogeneous nodes is changed.
[0091] like Figure 2b As shown, a heterogeneous communication method is provided, which can be executed by a processor of a configuration device terminal. The specific process of the heterogeneous communication method is as follows:
[0092] Get the heterogeneous configuration information corresponding to the heterogeneous nodes.
[0093] When a new heterogeneous node is connected, the corresponding configuration personnel can complete the configuration and development of security, communication, and message heterogeneous scripts according to the service interface requirements, and enter them into the configuration center of the network interconnection device.
[0094] Synchronize heterogeneous configuration information to the devices corresponding to the offline environment and perform offline environment verification on the heterogeneous configuration information.
[0095] Among them, the offline environment refers to the test environment, which includes network interconnection equipment, business nodes and heterogeneous nodes.
[0096] In one embodiment, distributed configuration middleware (such as Apollo, etc.) can be used to push heterogeneous configuration information to devices in the corresponding environment in real time, and first synchronize it to the offline environment for joint debugging with business nodes and heterogeneous nodes to test the availability of the link.
[0097] When the offline environment verification passes, the heterogeneous configuration information is synchronized to the device corresponding to the pre-release environment, and the configuration is verified.
[0098] The pre-production environment refers to the quasi-production environment. In order to ensure the stability of the heterogeneous gateway system, configuration verification is required here, and the change defense rules are executed according to the configuration verification results.
[0099] The configuration verification specifically includes the following steps:
[0100] Before synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the pre-release environment, a pre-verification is performed based on the configuration data of the heterogeneous configuration information;
[0101] After synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the pre-release environment, post-verification is performed based on the operation results of the network interconnection device;
[0102] When the post-verification fails, obtain the historical heterogeneous configuration information corresponding to the heterogeneous nodes;
[0103] In the network interconnection device, the current heterogeneous configuration information is updated to the historical heterogeneous configuration information.
[0104] While verifying, the heterogeneous configuration information is gradually pushed to all network interconnected devices in the pre-release environment. This method can ensure the stability of the gateway system. In addition, when the post-verification fails, the historical heterogeneous configuration information can be used to maximize the stability of the gateway system when the configuration of the heterogeneous nodes is changed.
[0105] In one embodiment, the result of the post-check is set as pass or fail according to preset rules. For example, a success rate lower than 80% or a success rate lower than the historical operation result by more than 5% can be set as fail, otherwise it is set as pass.
[0106] In a specific embodiment, when the post-verification fails, obtaining the historical heterogeneous configuration information corresponding to the heterogeneous nodes specifically includes the following steps:
[0107] When the post-check fails, a result notification is generated;
[0108] According to the rollback operation of the user for the result notification, the historical heterogeneous configuration information corresponding to the heterogeneous nodes is obtained.
[0109] In one embodiment, the following steps are also included:
[0110] When the post-check fails, a result notification is generated;
[0111] According to the user's ignore operation on the result notification, the current heterogeneous configuration information is synchronized to the next network interconnection device.
[0112] Since the post-verification rules are usually about the running results rather than specific parameters or events, when the post-verification fails, a result notification can usually be generated. The result notification includes information such as the running results, running process, and running parameters. This information is fed back to the user, and the user can make manual decisions based on this information, and choose to roll back or ignore the operation, thereby further improving the stability of the system.
[0113] After the configuration verification is passed in the pre-release environment, the heterogeneous configuration information is synchronized to the network interconnection devices corresponding to the online environment.
[0114] Among them, the network interconnection device corresponding to the online environment refers to the gateway device used in the actual communication process. After the heterogeneous configuration information goes online, it indicates that the configuration is officially put into use.
[0115] In one embodiment, this step includes the following steps:
[0116] After the configuration verification is passed in the pre-release environment, the heterogeneous configuration information is synchronized to the first group of network interconnection devices corresponding to the online environment according to the preset rules, and the configuration verification is performed;
[0117] After the configuration verification of the first group of network interconnection devices is passed, the heterogeneous configuration information is synchronized to the next group of network interconnection devices in the online environment according to the preset rules, and configuration verification is performed until the heterogeneous configuration information is synchronized to all network interconnection devices in the online environment.
[0118] The preset rules may include multiple grayscale strategies such as machine dimension and user dimension. For example, in the machine dimension, it can be implemented according to the configuration parameters of the device or the needs of the user. The grayscale strategy refers to a strategy for gradually pushing heterogeneous configuration information in groups.
[0119] During this process, pre-check and post-check are still performed to ensure the stability of the entire network interconnection system during the configuration process.
[0120] The pre-check and post-check may specifically include the following steps:
[0121] Before synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the online environment, a pre-verification is performed based on the configuration data of the heterogeneous configuration information;
[0122] After synchronizing the heterogeneous configuration information to the network interconnection devices corresponding to the online environment, post-verification is performed based on the operation results of the network interconnection devices;
[0123] When the post-verification fails, obtain the historical heterogeneous configuration information corresponding to the heterogeneous nodes;
[0124] In the network interconnection device, the current heterogeneous configuration information is updated to the historical heterogeneous configuration information.
[0125] In a specific embodiment, the following steps may also be included:
[0126] When the post-check fails, a result notification is generated;
[0127] According to the rollback operation of the user on the result notification, the historical heterogeneous configuration information corresponding to the heterogeneous nodes is obtained;
[0128] Alternatively, when the post-check fails, a result notification is generated;
[0129] According to the user's ignore operation on the result notification, the current heterogeneous configuration information is synchronized to the next network interconnection device.
[0130] The configuration online process can be controlled by manual decision-making, which can improve the stability of the system.
[0131] In the above process, the configuration center is synchronized and sent to the operation terminal in real time, without the risk of various synchronization delays and inconsistencies such as Git warehouses, storage paths, and caches. The system operation link is clear and maintainable. The configuration isolation of different environments such as offline environments, pre-release environments, and online environments is achieved. The configuration center synchronizes changes in real time, and the configuration changes have grayscale and rollback capabilities to ensure system stability.
[0132] like Figure 2cAs shown, a heterogeneous communication method is provided, which can be executed by a processor of an operating device terminal, wherein the operating device and the configuration device in the previous embodiment can be the same device. In order to distinguish the steps of different processes, the terminal that is executing the configuration process is called the configuration device, and the device that is executing the operation process is called the operation device. The specific process of the heterogeneous communication method executed by the operation device is as follows:
[0133] Receive unified request messages sent by business nodes based on service interfaces.
[0134] In one embodiment, the business system uses an internal microservice interface (such as an RPC interface of the Dubbo protocol) to send a unified message of the business system to a heterogeneous gateway system.
[0135] In one embodiment, when a user performs an operation on a terminal where a service node is located, the service node sends a unified request message to the operating device.
[0136] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface.
[0137] In one embodiment, the network interconnection system obtains heterogeneous configuration information from the configuration center according to a unique service interface index assigned to a business node and a specific service of a heterogeneous node.
[0138] 303. Based on the heterogeneous configuration information, assemble the unified request message to obtain heterogeneous request messages corresponding to the heterogeneous nodes.
[0139] In one embodiment, this step specifically includes the following steps:
[0140] Based on the heterogeneous configuration information, obtaining security configuration information, communication configuration information, assembly scripts and parsing scripts;
[0141] The unified request message is assembled based on the assembly script to obtain the heterogeneous request message corresponding to the heterogeneous node.
[0142] refer to Figure 5c ,The assembly script can call the security service to sign and encrypt the unified request message according to the ,requirements of different heterogeneous nodes. This process may have different algorithms ,and different encryption rules for different heterogeneous nodes, and different ,encryption fields that need to be processed.
[0143] Based on the security configuration, security information is added to the heterogeneous request message to obtain a heterogeneous request message carrying the security information.
[0144] 304. Send the heterogeneous request message to the heterogeneous node, and receive the heterogeneous response message returned by the heterogeneous node.
[0145] In one embodiment, this step specifically includes the following steps:
[0146] sending the heterogeneous request message carrying the security information to the heterogeneous node according to the communication configuration information;
[0147] Receive a heterogeneous response message returned by the heterogeneous node.
[0148] According to the heterogeneous configuration information, the heterogeneous response messages are converted into a unified response message and sent to the service node.
[0149] In one embodiment, the heterogeneous response message carries security information, and this step specifically includes the following steps:
[0150] authenticating the heterogeneous response message according to the security information;
[0151] After authentication is passed, the heterogeneous response message is converted into a unified response message based on the parsing script;
[0152] Based on the communication configuration, the unified response message is sent to the service node.
[0153] The security configurations of the same heterogeneous nodes are the same. The main confirmation information for authentication is that the business node and the heterogeneous node use the same security configuration rules and the message processing methods on both sides are consistent, so that normal communication can be carried out.
[0154] In one embodiment, the method further includes 305 , storing the assembly script and the parsing script in the online network interconnection device.
[0155] In order to improve the performance of the gateway, the loading engine needs to cache the script in the system, so it does not need to be loaded once for each business request. This consumes the gateway system memory, increases the system risk, and increases the call time.
[0156] From the above, it can be seen that in the scheme of the present invention, message assembly mainly uses heterogeneous script function methods to complete the heterogeneous adaptation of unified messages of business systems to institutional messages. Heterogeneous script functions are abstract classes reserved by the gateway system in the message assembly processor, and provide the ability to call various security services and commonly used methods in various conversion processes within the script, such as sorting, traversal, replacement and other function tool libraries, which can minimize the difficulty of developing heterogeneous scripts, and script developers only need to focus on conversion adaptation.
[0157] The network interconnection system based on script and configuration design does not need to worry about atomic capabilities. It can use the various capabilities of scripts and programming languages to customize the message adaptation functions of various heterogeneous nodes, and there will be no scenario where organizations cannot access the network interconnection system.
[0158] According to the method described in the foregoing embodiment, the following will be further described in detail by taking the example of the heterogeneous communication device being specifically integrated in a terminal.
[0159] In one embodiment, a heterogeneous communication device (ie, a first heterogeneous communication device) is further provided. The heterogeneous communication device can be integrated into a terminal such as a terminal of a configuration device in a network interconnection system. Figure 3a As shown, the first heterogeneous communication device may include: a configuration unit 401, specifically as follows:
[0160] The configuration unit 401 is used to obtain heterogeneous configuration information corresponding to the heterogeneous nodes, and synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification.
[0161] In a specific embodiment, the configuration unit 401 further includes an input subunit 501, an offline verification subunit 502, a pre-transmission subunit 503, and a grayscale subunit 504, which are specifically as follows:
[0162] The input subunit 501 is used to obtain heterogeneous configuration information corresponding to the heterogeneous nodes.
[0163] The offline verification subunit 502 is used to synchronize the heterogeneous configuration information to the device corresponding to the offline environment and perform offline environment verification on the heterogeneous configuration information.
[0164] The pre-launch subunit 503 is used to synchronize the heterogeneous configuration information to the device corresponding to the pre-launch environment and perform configuration verification when the offline environment verification passes.
[0165] The pre-transmission subunit 503 may be specifically used for:
[0166] Before synchronizing the heterogeneous configuration information to the network interconnection device in the pre-release environment, performing a pre-verification according to the configuration data of the heterogeneous configuration information;
[0167] After synchronizing the heterogeneous configuration information to the network interconnection device in the pre-release environment, a post-verification is performed according to the operation result of the network interconnection device.
[0168] The pre-transmission subunit 503 may also be used for:
[0169] When the post-check fails, a result notification is generated;
[0170] According to a rollback operation of the user for the result notification, obtaining the historical heterogeneous configuration information corresponding to the heterogeneous node;
[0171] According to the user's ignore operation on the result notification, the current heterogeneous configuration information is synchronized to the next network interconnection device.
[0172] The grayscale subunit 504 is used to synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment after the configuration verification is passed in the pre-release environment.
[0173] The grayscale subunit 505 can be specifically used for:
[0174] After the configuration verification in the pre-release environment is passed, according to a preset rule, the heterogeneous configuration information is synchronized to the first group of network interconnection devices in the online environment, and a configuration verification is performed;
[0175] After the configuration verification of the first group of network interconnection devices is passed, the heterogeneous configuration information is synchronized to the next group of network interconnection devices in the online environment according to the preset rules, and configuration verification is performed until the heterogeneous configuration information is synchronized to all network interconnection devices in the online environment.
[0176] The grayscale subunit 505 may also be used for:
[0177] Before synchronizing the heterogeneous configuration information to the network interconnection device in the online environment, performing a pre-verification based on the configuration data of the heterogeneous configuration information;
[0178] After synchronizing the heterogeneous configuration information to the network interconnection device in the online environment, a post-verification is performed based on the operation result of the network interconnection device.
[0179] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0180] In order to better implement the above method, the embodiment of the present application further provides a heterogeneous communication device (i.e., a second heterogeneous communication device), which can be integrated into an electronic device, such as a terminal, a server, a personal computer, etc. For example, in this embodiment, the method of the embodiment of the present invention is described in detail by taking the heterogeneous communication device integrated into the operating device terminal of the network interconnection system as an example.
[0181] like Figure 3b As shown, the heterogeneous communication device may include: a request receiving unit 601, an acquisition unit 602, an assembly unit 603, a communication unit 604 and a parsing unit 605, which are specifically as follows:
[0182] (1) A request receiving unit 601 is used to receive a unified request message sent by a service node based on a service interface.
[0183] (2) An acquisition unit 602 is used to acquire heterogeneous configuration information corresponding to a service interface according to a preset service interface index.
[0184] (3) An assembling unit 603 is used to assemble the unified request message based on the heterogeneous configuration information to obtain a heterogeneous request message corresponding to the heterogeneous node.
[0185] In one embodiment, the assembling unit 603 may specifically include an acquiring subunit and an assembling subunit, as follows:
[0186] An acquisition subunit, used to acquire security configuration information, communication configuration information, assembly scripts and parsing scripts based on the heterogeneous configuration information;
[0187] An assembling subunit is used to assemble the unified request message based on the assembly script to obtain a heterogeneous request message corresponding to the heterogeneous node.
[0188] The assembly subunit can be used for:
[0189] Based on the security configuration information, security information is added to the heterogeneous request message to obtain a heterogeneous request message carrying the security information.
[0190] The communication unit 604 is used to send a heterogeneous request message to a heterogeneous node and receive a heterogeneous response message returned by the heterogeneous node.
[0191] In one embodiment, the communication unit 604 may specifically include a communication subunit and a receiving subunit, as follows:
[0192] A communication subunit, configured to send the heterogeneous request message carrying the security information to the heterogeneous node according to the communication configuration information;
[0193] The receiving subunit is used to receive the heterogeneous response message returned by the heterogeneous node.
[0194] (5) A parsing unit 605 is used to convert the heterogeneous response message into a unified response message according to the heterogeneous configuration information, and send the unified response message to the service node.
[0195] The parsing unit 605 may be specifically configured to: authenticate the heterogeneous response message according to the security configuration information;
[0196] After authentication is passed, the heterogeneous response message is converted into a unified response message based on the parsing script;
[0197] Based on the communication configuration, the unified response message is sent to the service node
[0198] In one embodiment, a cache unit 606 is further included, which is used to store the assembly script and the parsing script in the online network interconnection device.
[0199] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0200] As can be seen from the above, the embodiment of the present application can obtain the heterogeneous configuration information corresponding to the heterogeneous nodes, and synchronize the heterogeneous configuration information to the online network interconnection device in the network interconnection system after verification; receive the unified request message sent by the business node based on the service interface; obtain the heterogeneous configuration information corresponding to the service interface according to the preset service interface index; assemble the unified request message based on the heterogeneous configuration information to obtain the heterogeneous request message corresponding to the heterogeneous node; send the heterogeneous request message to the heterogeneous node, and receive the heterogeneous response message returned by the heterogeneous node; according to the heterogeneous configuration information, convert the heterogeneous response message into a unified response message and send it to the business node. In the embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to each network interconnection device without the need for a Git repository, avoiding the risks of various synchronization delays and inconsistencies such as storage paths and caches, and the system operation link is clear and maintainable. Thereby, it is convenient for heterogeneous nodes to quickly access the network interconnection system, so that business nodes and heterogeneous nodes can communicate quickly, and the stability of the network interconnection system is guaranteed when the communication protocol of the heterogeneous nodes is changed.
[0201] The present application also provides a terminal device, which may be a tablet computer, a micro-processing box, a drone, or an image acquisition device. Figure 4 As shown, it shows a schematic diagram of the structure of the terminal device involved in the embodiment of the present application, specifically:
[0202] The terminal device may include one or more processors 801 of processing cores, one or more computer-readable storage media memories 802, a power supply 803, an input module 804, and a communication module 805. Those skilled in the art will appreciate that Figure 4 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0203] The processor 801 is the control center of the terminal device. It uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 802 and calling data stored in the memory 802, it executes various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. In some embodiments, the processor 801 may include one or more processing cores; in some embodiments, the processor 801 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 801.
[0204] The memory 802 can be used to store software programs and modules. The processor 801 executes various functional applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 802 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 802 may also include a memory controller to provide the processor 801 with access to the memory 802.
[0205] The terminal device also includes a power supply 803 for supplying power to various components. In some embodiments, the power supply 803 can be logically connected to the processor 801 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 803 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0206] The terminal device may further include an input module 804, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0207] The terminal device may further include a communication module 805. In some embodiments, the communication module 805 may include a wireless submodule, and the terminal device may perform short-range wireless transmission through the wireless submodule of the communication module 805, thereby providing wireless broadband Internet access. For example, the communication module 805 may be used to help users send and receive emails, browse web pages, and access streaming media.
[0208] Although not shown, the terminal device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 801 in the terminal device will load the executable files corresponding to the processes of one or more application programs into the memory 802 according to the following instructions, and the processor 801 will run the application programs stored in the memory 802, thereby realizing various functions, as follows:
[0209] Obtain heterogeneous configuration information corresponding to heterogeneous nodes, and synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification;
[0210] Receive a unified request message sent by a business node based on a service interface;
[0211] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface;
[0212] Based on the heterogeneous configuration information, the unified request message is assembled to obtain the heterogeneous request message corresponding to the heterogeneous nodes;
[0213] Send heterogeneous request messages to heterogeneous nodes and receive heterogeneous response messages returned by heterogeneous nodes;
[0214] According to the heterogeneous configuration information, the heterogeneous response messages are converted into a unified response message and sent to the service node.
[0215] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0216] As can be seen from the above, in the embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to each network interconnection device, without the need for various synchronization delays and inconsistency risks such as Git warehouses, storage paths, and caches. The system operation link is clear and maintainable. This makes it convenient for heterogeneous nodes to quickly access the network interconnection system, so that business nodes and heterogeneous nodes can communicate quickly, and ensure the stability of the network interconnection system when the communication protocol of the heterogeneous nodes is changed.
[0217] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0218] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any heterogeneous communication method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0219] Obtaining heterogeneous configuration information corresponding to heterogeneous nodes, and synchronizing the heterogeneous configuration information to all network interconnection devices in the network interconnection system;
[0220] Receive a unified request message sent by a business node based on a service interface;
[0221] According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface;
[0222] Based on the heterogeneous configuration information, the unified request message is assembled to obtain the heterogeneous request message corresponding to the heterogeneous nodes;
[0223] Send heterogeneous request messages to heterogeneous nodes and receive heterogeneous response messages returned by heterogeneous nodes;
[0224] According to the heterogeneous configuration information, the heterogeneous response messages are converted into a unified response message and sent to the service node.
[0225] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0226] Since the instructions stored in the storage medium can execute the steps in any heterogeneous communication method provided in the embodiments of the present application, the beneficial effects that can be achieved by any heterogeneous communication method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0227] As can be seen from the above, in the embodiment of the present application, when a new heterogeneous node is connected to the network interconnection system, the heterogeneous configuration information can be quickly synchronized to each network interconnection device, without the need for various synchronization delays and inconsistency risks such as Git warehouses, storage paths, and caches. The system operation link is clear and maintainable. This makes it convenient for heterogeneous nodes to quickly access the network interconnection system, so that business nodes and heterogeneous nodes can communicate quickly, and ensure the stability of the network interconnection system when the communication protocol of the heterogeneous nodes is changed.
[0228] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0229] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0230] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0231] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0232] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification may be in the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0233] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0234] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0235] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0236] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0237] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0238] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0239] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0240] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0241] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0242] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0243] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A heterogeneous communication method, applicable to a network interconnection system, comprising: Obtaining heterogeneous configuration information corresponding to heterogeneous nodes, and synchronizing the heterogeneous configuration information to a network interconnection device corresponding to an online environment in the network interconnection system after verification; Receive a unified request message sent by a business node based on a service interface; According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface; Based on the heterogeneous configuration information, assembling the unified request message to obtain a heterogeneous request message corresponding to the heterogeneous node; Sending the heterogeneous request message to the heterogeneous node, and receiving the heterogeneous response message returned by the heterogeneous node; According to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message, and sent to the service node.
2. The heterogeneous communication method according to claim 1, wherein the obtaining of heterogeneous configuration information corresponding to the heterogeneous nodes and synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification specifically comprises: Obtain heterogeneous configuration information corresponding to heterogeneous nodes; Synchronize the heterogeneous configuration information to the device corresponding to the offline environment, and perform offline environment verification on the heterogeneous configuration information; When the offline environment verification is passed, the heterogeneous configuration information is synchronized to the network interconnection device corresponding to the pre-release environment, and the configuration verification is performed; After the configuration verification in the pre-release environment is passed, the heterogeneous configuration information is synchronized to all network interconnected devices corresponding to the online environment.
3. The heterogeneous communication method according to claim 2, wherein after the configuration verification in the pre-release environment is passed, synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the online environment, specifically comprising: After the configuration verification in the pre-release environment is passed, the heterogeneous configuration information is synchronized to the first group of network interconnection devices in the online environment according to preset rules, and the configuration verification is performed; After the configuration verification of the first group of network interconnection devices is passed, the heterogeneous configuration information is synchronized to the next group of network interconnection devices in the online environment according to the preset rules, and configuration verification is performed until the heterogeneous configuration information is synchronized to all network interconnection devices in the online environment.
4. The heterogeneous communication method according to claim 2, wherein the configuration verification comprises: Before synchronizing the heterogeneous configuration information to the network interconnection device in the current environment, performing a pre-verification according to the configuration data of the heterogeneous configuration information; After synchronizing the heterogeneous configuration information to the network interconnection device in the current environment, a post-verification is performed according to the operation result of the network interconnection device.
5. The heterogeneous communication method according to claim 4, further comprising: When the post-check fails, obtaining historical heterogeneous configuration information corresponding to the heterogeneous node; The current heterogeneous configuration information is updated to the historical heterogeneous configuration information in the network interconnection device.
6. The heterogeneous communication method according to claim 5, wherein when the post-check fails, obtaining the historical heterogeneous configuration information corresponding to the heterogeneous node comprises: When the post-check fails, a result notification is generated; According to a rollback operation of the user for the result notification, the historical heterogeneous configuration information corresponding to the heterogeneous node is obtained.
7. The heterogeneous communication method according to claim 6, further comprising: When the post-check fails, a result notification is generated; According to the user's ignore operation on the result notification, the current heterogeneous configuration information is synchronized to the next network interconnection device.
8. The heterogeneous communication method according to claim 1, wherein the assembling of the unified request message based on the heterogeneous configuration information to obtain the heterogeneous request message corresponding to the heterogeneous node specifically comprises: Based on the heterogeneous configuration information, obtaining security configuration information, communication configuration information, assembly scripts and parsing scripts; The unified request message is assembled based on the assembly script to obtain the heterogeneous request message corresponding to the heterogeneous node.
9. The heterogeneous communication method according to claim 8, wherein the step of assembling the unified request message based on the assembly script to obtain the heterogeneous request message corresponding to the heterogeneous node specifically comprises: Based on the security configuration information, security information is added to the heterogeneous request message to obtain a heterogeneous request message carrying the security information.
10. The heterogeneous communication method according to claim 9, wherein sending the heterogeneous request message to the heterogeneous node and receiving the heterogeneous response message returned by the heterogeneous node specifically comprises: sending the heterogeneous request message carrying the security information to the heterogeneous node according to the communication configuration information; Receive a heterogeneous response message returned by the heterogeneous node.
11. The heterogeneous communication method according to claim 10, wherein the heterogeneous response message carries the security information, and the converting the heterogeneous response message into a unified response message according to the heterogeneous configuration information and sending the unified response message to the service node specifically comprises: authenticating the heterogeneous response message according to the security configuration information; After authentication is passed, the heterogeneous response message is converted into a unified response message based on the parsing script; Based on the communication configuration, the unified response message is sent to the service node.
12. The heterogeneous communication method according to claim 11, after obtaining the security configuration, communication configuration, assembly script and parsing script based on the heterogeneous configuration information, further comprising: The assembly script and the parsing script are stored in the online network interconnection device.
13. A heterogeneous communication device, suitable for a configuration terminal in a network interconnection system, comprising: A configuration unit, used to obtain heterogeneous configuration information corresponding to heterogeneous nodes, and synchronize the heterogeneous configuration information to a network interconnection device corresponding to an online environment in the network interconnection system after verification; The configuration unit comprises: An input subunit is used to obtain heterogeneous configuration information corresponding to heterogeneous nodes; An offline verification subunit, used to synchronize the heterogeneous configuration information to a device corresponding to an offline environment, and perform offline environment verification on the heterogeneous configuration information; The pre-launch subunit is used to synchronize the heterogeneous configuration information to the device corresponding to the pre-launch environment and perform configuration verification when the offline environment verification passes; The grayscale sub-unit is used to synchronize the heterogeneous configuration information to the network interconnection device corresponding to the online environment after the configuration verification in the pre-release environment is passed.
14. A heterogeneous communication device, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtaining heterogeneous configuration information corresponding to heterogeneous nodes, and synchronizing the heterogeneous configuration information to the network interconnection device corresponding to the online environment in the network interconnection system after verification; Receive a unified request message sent by a business node based on a service interface; According to the preset service interface index, obtain the heterogeneous configuration information corresponding to the service interface; Based on the heterogeneous configuration information, assembling the unified request message to obtain a heterogeneous request message corresponding to the heterogeneous node; Sending the heterogeneous request message to the heterogeneous node, and receiving the heterogeneous response message returned by the heterogeneous node; According to the heterogeneous configuration information, the heterogeneous response message is converted into a unified response message, and sent to the service node.
Citation Information
Patent Citations
Message transmission method and message transmission system
CN107040613A
Cross-network data processing method and device
CN114124929A