Data query method and device for registration center alliance, equipment and medium

Through the data query method of the Registration Center Alliance, the problem of low registry query efficiency in multi-data center environments is solved. Through the query and load balancing of the Registration Center Alliance, efficient data query and business support are achieved, and the reliability of the system is enhanced. and expansion capabilities.

CN119127971APending Publication Date: 2024-12-13PING AN BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411278227.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing registration center query data technology in a multi-data center environment has a high data synchronization frequency that occupies bandwidth and CPU, resulting in a degradation in performance, low query efficiency, and huge data volume, resulting in unstable operation, which cannot effectively support financial business processing.

Method used

A data query method for registry alliance is proposed. By obtaining the business service nodes of each data center in advance, generating alliance information based on the registration address and priority, connecting each other to form a registry alliance. When the target data center cannot meet the query When demand is required, query the registry center that meets the needs in the alliance to avoid large-scale data synchronization and reduce the load of the registry center.

Benefits of technology

It improves data query efficiency, avoids single-point problems in the registration center, enhances business reliability, ensures business support capabilities between multiple data centers, maximizes business expansion capabilities, and reduces the load of the registration center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127971A_ABST
    Figure CN119127971A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, and discloses a registration center alliance data query method, device and equipment and a medium, and the method comprises the steps: creating a registration center corresponding to a data center according to a business service node corresponding to each data center, and generating alliance information according to a registration address and priority corresponding to each registration center; all registration centers are mutually connected according to the alliance information to obtain a registration center alliance; when the target data center receives the data query request, detecting whether the service capability of the target data center meets a query demand corresponding to the data query request; when the service capability of the target data center does not meet the query requirement corresponding to the query request, querying a registration center meeting the query requirement in a registration center alliance; and when the queried service capability of the registration center meets the query requirement, querying target data corresponding to the data query request through the queried registration center. According to the invention, the data query efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a data query method, device, equipment and medium for a registration center alliance. Background Art

[0002] With the development of multi-data center and multi-cloud environments, the registration center inevitably faces the problem of providing services across data centers. On the one hand, in most cases, financial business processing is completed in a single data center, that is, the registration center needs to fully support the financial business in this data center; on the other hand, when the data center cannot independently support business capabilities, it needs to be able to dispatch to other data centers to complete business processing. Therefore, the registration center is an indispensable and important component in modern distributed systems.

[0003] The existing registration center data query technology is to deploy a registration center in each data center, and through the data synchronization mechanism, replicate the data of different data centers to achieve the effect that each registration center has all the data. In actual applications, if the synchronization frequency is too high, it will occupy a lot of bandwidth and CPU, while if the synchronization frequency is too low, the real-time performance of the data is not enough, and each registration center has the data of all data centers, resulting in a huge amount of data, reduced registration center performance, and even unstable operation, resulting in low efficiency of data query. Summary of the invention

[0004] The present invention provides a data query method, device, equipment and medium for a registration center alliance, the main purpose of which is to solve the problem of low data query efficiency.

[0005] To achieve the above-mentioned purpose, the present invention provides a data query method of a registration center alliance, comprising:

[0006] Create a registration center corresponding to each data center according to the business service nodes corresponding to each data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center;

[0007] Connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center;

[0008] When a preset target data center receives a data query request, detecting whether the service capability of the target data center meets the query requirements corresponding to the data query request;

[0009] When the service capability of the target data center does not meet the query requirement corresponding to the query request, querying a registry that meets the query requirement in the registry alliance;

[0010] When the service capability of the queried registration center meets the query requirement, the target data corresponding to the data query request is queried through the queried registration center.

[0011] Optionally, the step of creating a registration center corresponding to each data center according to the pre-acquired business service node corresponding to the data center includes:

[0012] Configure a registry instance for each pre-obtained data center;

[0013] Configure the registration information of the registry center according to the registry center instance;

[0014] Mapping the registration information with the business service node to obtain a registration mapping relationship;

[0015] A registration center corresponding to the data center is created through the registration mapping relationship.

[0016] Optionally, generating alliance information according to the registration address and priority corresponding to each registration center includes:

[0017] Arrange all registration centers in descending order according to the priority corresponding to each registration center to obtain the first registration center sequence;

[0018] Arrange the registration addresses corresponding to each registration center from top to bottom according to the sequence order of the first registration center sequence to obtain a second registration center sequence;

[0019] Generate alliance information according to the second registration center sequence.

[0020] Optionally, the interconnecting all registration centers according to the alliance information to obtain a registration center alliance corresponding to the data center includes:

[0021] Selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, and gathering the registration centers that are not selected as a registration center set;

[0022] Selecting a next registration center in the registration center set according to the order of the registration centers in the alliance information, and extracting the registration address of the next registration center;

[0023] receiving a connection request from the target registration center through the next registration center;

[0024] When the connection request is successfully received, the registration address of the target registration center is sent to the next registration center, and the process returns to the step of selecting the next registration center in the registration center set according to the order of the registration centers in the alliance information, until all the registration centers in the registration center set are selected;

[0025] When all the registration centers in the registration center set are selected, the method returns to the step of selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, until all the registration centers are selected as target registration centers;

[0026] When all the registration centers are used as target registration centers, a registration center alliance corresponding to the data center is generated.

[0027] Optionally, the detecting whether the service capability of the target data center meets the query requirement corresponding to the data query request includes:

[0028] Determining a query requirement according to the data query request;

[0029] Simulating the target business capability of the target data center through the query demand;

[0030] Comparing the target service capability with the service capability of the target data center;

[0031] It is determined whether the target data center meets the query requirements corresponding to the data query request based on the compared business capabilities.

[0032] Optionally, the step of searching the registry alliance for a registry that meets the query requirement includes:

[0033] Extracting the connection registration center corresponding to the target data center according to the registration center alliance;

[0034] Selecting a target connection registration center according to the priority of the connection registration center;

[0035] Determine whether the data center corresponding to the target connection registration center meets the query requirement;

[0036] When the data center corresponding to the target connection registration center does not meet the query requirement, the process returns to the step of selecting the target connection registration center according to the priority of the connection registration center until a registration center meeting the query requirement is found.

[0037] Optionally, querying the target data corresponding to the data query request through the queried registration center includes:

[0038] Extracting request parameters corresponding to the data query request;

[0039] Connecting the data query request to the business service node corresponding to the queried registration center according to the request parameters;

[0040] The target data corresponding to the data query request is queried through the business service node.

[0041] In order to solve the above problem, the present invention further provides a data query device for a registration center alliance, the device comprising:

[0042] An alliance information generation module is used to create a registration center corresponding to each data center according to the business service nodes corresponding to the data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center;

[0043] A registration center alliance creation module, used to connect all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center;

[0044] A query request detection module is used to detect whether the business capability of a preset target data center meets the query requirements corresponding to the data query request when the preset target data center receives the data query request;

[0045] A registration center query module, used for querying a registration center that meets the query requirement in the registration center alliance when the business capability of the target data center does not meet the query requirement corresponding to the query request;

[0046] The target data query module is used to query the target data corresponding to the data query request through the queried registration center when the business capability of the queried registration center meets the query requirement.

[0047] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0048] at least one processor; and,

[0049] a memory communicatively connected to the at least one processor; wherein,

[0050] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data query method of the registration center alliance described above.

[0051] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the data query method of the registration center alliance described above.

[0052] The embodiment of the present invention avoids the single point problem of the registration center by deploying multiple registration centers, and avoids the synchronization of a large amount of data in normal times by performing data query within the alliance when necessary, thereby reducing the load of the registration center; at the same time, when necessary, the data of other data centers can be queried through the alliance, so that the business can be transferred between different data centers, improving the reliability of the business, ensuring that the business can be completed in cooperation between various data centers, and maximizing the support capabilities of multiple data centers for the business. Therefore, the data query method, device, equipment and medium of the registration center alliance proposed by the present invention can solve the problem of low data query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a flow chart of a data query method of a registration center alliance provided in an embodiment of the present invention;

[0054] Figure 2 A schematic diagram of alliance information formation provided by an embodiment of the present invention;

[0055] Figure 3 A schematic diagram of selecting a data center provided by an embodiment of the present invention;

[0056] Figure 4 A functional module diagram of a data query device for a registration center alliance provided by an embodiment of the present invention;

[0057] Figure 5 A schematic diagram of the structure of an electronic device for implementing the data query method of the registration center alliance provided by an embodiment of the present invention.

[0058] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0059] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0060] The embodiment of the present application provides a data query method for a registration center alliance. The execution subject of the data query method of the registration center alliance includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data query method of the registration center alliance can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0061] Reference Figure 1 FIG. 1 is a flow chart of a data query method of a registration center alliance provided by an embodiment of the present invention. In this embodiment, the data query method of the registration center alliance includes:

[0062] S1. Create a registration center corresponding to each data center according to the pre-acquired business service node corresponding to the data center, and generate alliance information according to the registration address and priority corresponding to each registration center.

[0063] In an embodiment of the present invention, a data center refers to a physical or virtual location where data storage and computing resources are concentrated, a business service node refers to a server or virtual machine instance that provides services within the data center, each data node can be registered with a registration center to facilitate discovery and access by other services, each data center deploys a set of data centers, and each registration center provides services specifically for this data center, wherein the registration center refers to software in a distributed service system that is responsible for managing information related to each business service node.

[0064] In the embodiment of the present invention, the step of creating a registration center corresponding to each data center according to the pre-acquired business service node corresponding to the data center includes:

[0065] Configure a registry instance for each pre-obtained data center;

[0066] Configure the registration information of the registry center according to the registry center instance;

[0067] Mapping the registration information with the business service node to obtain a registration mapping relationship;

[0068] A registration center corresponding to the data center is created through the registration mapping relationship.

[0069] In detail, each data center has a unique identifier, and the business service node information of the data center includes the address, port, protocol and other information of the service node. For each data center, its corresponding registration center instance needs to be configured. The registration center instance is responsible for managing and coordinating the registration and discovery of each service instance, including service registration, configuring which services can be registered with the registration center; service discovery, configuring how to discover registered services; heartbeat and health check, configuring the heartbeat detection and health check mechanism of the service. Once the registration center instance is started and configured, the business service node needs to be registered with the registration center, and the registration information corresponding to each registration center needs to be configured based on the registration center instance.

[0070] Specifically, for the business service nodes of each data center, the corresponding registration information needs to be configured. The registration information includes the service name, address, port, protocol, etc., and then the service is registered to the registration center through the API interface of the registration center, and the registration information of the registration center is mapped with the business service node to obtain a registration mapping relationship. The registration mapping relationship can be a configuration file or a database record, which describes the relationship between each business service node and its corresponding registration center instance, thereby creating a set of registration centers corresponding to each data center based on the registration mapping relationship.

[0071] Furthermore, for a set of registration centers corresponding to each data center, if the registration centers of different data centers need to be connected to each other, the connection needs to be made based on the data of the registration centers. Therefore, the registration data of each registration center needs to be extracted.

[0072] In the embodiment of the present invention, the alliance information refers to the IP address information and priority information of each registration center, and the IP address information and the priority information constitute the alliance information.

[0073] In the embodiment of the present invention, the generating of alliance information according to the registration address and priority corresponding to each registration center includes:

[0074] Arrange all registration centers in descending order according to the priority corresponding to each registration center to obtain the first registration center sequence;

[0075] Arrange the registration addresses corresponding to each registration center from top to bottom according to the sequence order of the first registration center sequence to obtain a second registration center sequence;

[0076] Generate alliance information according to the second registration center sequence.

[0077] In detail, the priority of other registration centers is set for each set of registration centers through commands, and the priority is planned. First, all registration centers are sorted based on the priority of each registration center, and all registration centers are arranged in order from large to small priority. For example, the priority of registration center 1 is 90, the priority of registration center 2 is 80, and the priority of registration center 3 is 70. Then the first registration center sequence is {1,2,3}, and the registration address of each registration center is arranged from top to bottom based on the sequence order of the first registration center sequence. Then registration center 1 is arranged at the top and registration center 3 is arranged at the bottom, thereby obtaining the second registration center sequence, and then the alliance information of each registration center is generated according to the IP address and priority of the registration center, such as Figure 2 As shown in the figure, it is a schematic diagram of the alliance information formation. The data in the alliance information represents the priority from high to low from top to bottom. The registration center 1 is at the top layer, and the alliance information in the registration center 1 includes the IP addresses of the registration center 2 to the registration center n. In addition, the alliance information corresponding to the registration center 2 includes the IP addresses of the registration center 1 to the registration center n, and the IP addresses are arranged in order from high to low priority, so as to obtain the alliance information corresponding to each registration center.

[0078] Furthermore, the registration centers in different data centers are connected to each other to form a registration center alliance. The registration center alliances can query each other's data, but will not synchronize data with each other to ensure that the data centers do not affect each other.

[0079] S2. All registration centers are interconnected according to the alliance information to obtain a registration center alliance corresponding to the data center.

[0080] In the embodiment of the present invention, the registration center alliance refers to a registration center alliance formed by connecting all registration centers to each other. When a data center needs to be added, it is equivalent to adding a registration center cluster in the registration center alliance.

[0081] In the embodiment of the present invention, the step of connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center includes:

[0082] Selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, and gathering the registration centers that are not selected as a registration center set;

[0083] Selecting a next registration center in the registration center set according to the order of the registration centers in the alliance information, and extracting the registration address of the next registration center;

[0084] receiving a connection request from the target registration center through the next registration center;

[0085] When the connection request is successfully received, the registration address of the target registration center is sent to the next registration center, and the process returns to the step of selecting the next registration center in the registration center set according to the order of the registration centers in the alliance information, until all the registration centers in the registration center set are selected;

[0086] When all the registration centers in the registration center set are selected, the method returns to the step of selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, until all the registration centers are selected as target registration centers;

[0087] When all the registration centers are used as target registration centers, a registration center alliance corresponding to the data center is generated.

[0088] In detail, the registration centers in different data centers are connected to each other, that is, the IP address of another registration center (i.e., registration center 2 in the registration center set) is set to one registration center (i.e., the target registration center) through a command, and the target registration center sends a connection request to registration center 2. After the connection is successful, the target registration center tells registration center 2 its own IP address, and then repeats the above steps continuously, so that all registration centers are connected to each other and know the IP addresses of all registration centers.

[0089] Exemplarily, registration center 1 is selected as the target registration center, and registration centers 2 to n are taken as the registration center set. Then, registration centers 2 to n are selected in order of priority to be connected to registration center 1 until all registration centers are connected to registration center 1. Then, registration center 2 is selected as the target registration center, and registration centers 1 to n are taken as the registration center set. Then, registration centers 1 to n (except registration center 2) are selected in order of priority to be connected to each other until all registration centers are connected to registration center 2, thereby completing the connection between all registration centers in pairs to form a registration center alliance.

[0090] Specifically, as financial business grows, the amount of data and the number of users will also increase. Through flexible registration center expansion, enterprises can smoothly add new services and functions without affecting existing services. That is, when a data center needs to be added, it is equivalent to adding a registration center cluster within the registration center alliance, which has a very limited impact on the alliance's load. This leaves enough expansion space for the future business development of financial enterprises. For example, new registration center nodes can better distribute service requests, reduce the risk of single point failures, and support the registration and management of more service instances, thereby ensuring that the system can still maintain efficient operation in the face of growing transaction volume or user demand.

[0091] Furthermore, based on the registration center alliance, data query function can be realized. Under normal circumstances, the business capabilities that a data center can complete are all completed within the data center, and the registration center does not need to perform data queries across data centers. However, there may be special circumstances where the capabilities of the data center are insufficient to support business capabilities, and thus it is necessary to detect the capabilities of the data center for the next step of processing.

[0092] S3. When the preset target data center receives a data query request, it detects whether the service capability of the target data center meets the query requirements corresponding to the data query request.

[0093] In the embodiment of the present invention, when a data center receives a data query request, detecting whether its business capabilities meet the query requirements is a key step in ensuring efficient and reliable services. It provides the ability for multiple data centers to support each other, ensuring that the business can be completed in cooperation between each data center, maximizing the support capabilities of multiple data centers for the business, and is a nearly unlimited horizontal expansion capability.

[0094] In the embodiment of the present invention, the detecting whether the service capability of the target data center meets the query requirement corresponding to the data query request includes:

[0095] Determining a query requirement according to the data query request;

[0096] Simulating the target business capability of the target data center through the query demand;

[0097] Comparing the target service capability with the service capability of the target data center;

[0098] It is determined whether the target data center meets the query requirements corresponding to the data query request based on the compared business capabilities.

[0099] In detail, the query requirements corresponding to the data query request include query type, for example, range query, single query, aggregate query, etc.; data volume: the size of the data volume queried; response time requirements: the expectation of response time; resource requirements: such as computing, memory, storage, etc., and then simulate the business capabilities required by the target data center according to the query requirements corresponding to the data query request, such as processing power, server computing power and throughput; storage capacity, storage space and read / write speed; network bandwidth, data transmission rate; concurrent processing capability, the ability to process multiple queries at the same time; system load, current system load status, and collect the actual business capability data corresponding to the target data center, such as computing power, storage performance, network bandwidth, concurrent processing capability, so as to compare the target business capabilities in the simulation test with the actual business capabilities of the data center and analyze their matching degree.

[0100] Specifically, analyze whether the processing capacity of the target data center can meet the computing requirements of the query, storage capacity, storage and I / O performance are sufficient; network capacity, network bandwidth and latency meet the requirements; concurrent processing capacity, whether it can handle the expected number of concurrent requests, and then judge whether the target data center can meet the query requirements based on the comparison results, that is, analyze whether the actual business capabilities of the target data center meet the standards of the simulation requirements, compare key performance indicators such as response time, processing capacity, system load, determine whether it meets the requirements, check the performance of the system under high load and abnormal conditions, ensure stability and reliability, so as to effectively detect whether the business capabilities of the target data center can meet specific data query requests.

[0101] Furthermore, if the capacity of the current data center is insufficient to support the business capabilities, the registration center will initiate queries to other registration centers in turn according to the priority and address of the recorded data centers until the business capability requirements are met.

[0102] S4. When the business capability of the target data center does not meet the query requirements corresponding to the query request, query a registry that meets the query requirements in the registry alliance.

[0103] In an embodiment of the present invention, if the capacity of the current data center is insufficient to support the business capacity, the registration center will initiate inquiries to other registration centers in turn according to the priority and address of the recorded data center until the business capacity requirements are met; or if a serious failure occurs in a data center, making it difficult to complete most business processing, it is only necessary to switch the business processing to other data centers through the data center level to ensure the overall normal operation of the business, and the failure of a single registration center will not have any impact on other registration centers.

[0104] In the embodiment of the present invention, the step of searching the registry alliance for a registry that meets the query requirement includes:

[0105] Extracting the connection registration center corresponding to the target data center according to the registration center alliance;

[0106] Selecting a target connection registration center according to the priority of the connection registration center;

[0107] Determine whether the data center corresponding to the target connection registration center meets the query requirement;

[0108] When the data center corresponding to the target connection registration center does not meet the query requirement, the process returns to the step of selecting the target connection registration center according to the priority of the connection registration center until a registration center meeting the query requirement is found.

[0109] Specifically, when the target registration center is insufficient to support the business capability, the registration center is selected in order of priority, and it is determined whether the selected registration center can support the business capability. If it is still insufficient to support the business capability, the next registration center is selected until the selected registration center can support the business capability. Figure 3 As shown, it is a schematic diagram of selecting a data center. When registration center 1 is sufficient to support business capabilities, registration center 1 is directly used as the processing data center. When registration center 1 is insufficient to support business capabilities, registration center 2 is selected, and it is determined whether the registration center can support the business capabilities. If not, registration center 3 is selected. If registration center 3 can support the business capabilities, registration center 3 is used as the registration center that can meet the query requirements.

[0110] Specifically, when a data center has a serious failure, making it difficult to complete most business processing, such as Figure 3 If part of the capabilities of Data Center 1 is damaged, then Registry Center 1 will initiate queries to other Registry Centers in turn according to the priorities and addresses of other Registry Centers in the alliance. For example, Registry Center 2 will be queried first. If Data Center 2 has the ability to complete the corresponding business functions, Registry Center 2 will return the corresponding data, and the business functions required by Data Center 1 will be completed. Otherwise, Registry Center 1 will continue to initiate queries to Registry Center 3, relying on the capabilities of Data Center 3 to complete the required business functions.

[0111] Furthermore, when the service capability of the queried registration center meets the query requirement, the registration center queried at this time can be used to query the data corresponding to the data request.

[0112] S5. When the service capability of the queried registration center meets the query requirement, query the target data corresponding to the data query request through the queried registration center.

[0113] In an embodiment of the present invention, when the business capabilities of the queried registration center meet the query requirements, detailed information of the target data source, such as location, access interface, connection parameters, etc., is obtained from the registration center to query the target data corresponding to the data query request, wherein the target data refers to the data that actually needs to be retrieved from the data source, and the data query request usually includes the demand for certain specific information, such as customer records, sales data, log files, sensor data, etc. The target data may be stored in different databases, data warehouses, file systems or other storage media.

[0114] In the embodiment of the present invention, querying the target data corresponding to the data query request through the queried registration center includes:

[0115] Extracting request parameters corresponding to the data query request;

[0116] Connecting the data query request to the business service node corresponding to the queried registration center according to the request parameters;

[0117] The target data corresponding to the data query request is queried through the business service node.

[0118] In detail, the request parameters include detailed information of the target data source, such as location, access interface, and connection parameters. The interceptor can be used to extract the relevant parameters corresponding to the data query request, and then the query request is completed by sending a query request to the registration center. The query request contains the identification information of the service to be accessed (for example, service name, version, etc.). The registration center will return the business service node information related to the service. The business service node information may include the network address of the service node (such as IP and port) and other connection parameters. The service node information obtained from the registration center is used to establish a connection with the business service node, and the constructed data query request is sent to the business service node. The business service node processes the query request and returns the result, thereby obtaining the target data corresponding to the data query request.

[0119] The embodiment of the present invention avoids the single point problem of the registration center by deploying multiple registration centers, and avoids the synchronization of a large amount of data in normal times by performing data query within the alliance when necessary, thereby reducing the load of the registration center; at the same time, when necessary, the data of other data centers can be queried through the alliance, so that the business can be transferred between different data centers, improving the reliability of the business, ensuring that the business can be completed in cooperation between various data centers, and maximizing the support capabilities of multiple data centers for the business. Therefore, the data query method, device, equipment and medium of the registration center alliance proposed by the present invention can solve the problem of low data query efficiency.

[0120] like Figure 4 , which is a functional module diagram of a data query device of a registration center alliance provided by an embodiment of the present invention.

[0121] The data query device 100 of the registration center alliance of the present invention can be installed in an electronic device. According to the functions to be implemented, the data query device 100 of the registration center alliance can include an alliance information generation module 101, a registration center alliance creation module 102, a query request detection module 103, a registration center query module 104 and a target data query module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0122] In this embodiment, the functions of each module / unit are as follows:

[0123] The alliance information generation module 101 is used to create a registration center corresponding to each data center according to the pre-acquired business service node corresponding to the data center, and generate alliance information according to the registration address and priority corresponding to each registration center;

[0124] The registration center alliance creation module 102 is used to connect all the registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center;

[0125] The query request detection module 103 is used to detect whether the business capability of the preset target data center meets the query requirements corresponding to the data query request when the preset target data center receives the data query request;

[0126] The registration center query module 104 is used to query a registration center that meets the query requirement in the registration center alliance when the service capability of the target data center does not meet the query requirement corresponding to the query request;

[0127] The target data query module 105 is used to query the target data corresponding to the data query request through the queried registration center when the business capability of the queried registration center meets the query requirement.

[0128] In detail, each module in the data query device 100 of the registration center alliance in the embodiment of the present invention adopts the same Figures 1 to 3 The data query method of the registration center alliance described in the text is the same technical means and can produce the same technical effects, so it will not be repeated here.

[0129] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a data query method of a registration center alliance provided by an embodiment of the present invention.

[0130] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data query program of a registration center alliance.

[0131] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing a data query program of a registration center alliance, etc.), and calling data stored in the memory 11.

[0132] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the data query program of the registration center alliance, but also be used to temporarily store data that has been output or is to be output.

[0133] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0134] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.

[0135] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0136] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0137] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0138] The data query program of the registration center alliance stored in the memory 11 of the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0139] Create a registration center corresponding to each data center according to the business service nodes corresponding to each data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center;

[0140] Connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center;

[0141] When a preset target data center receives a data query request, detecting whether the service capability of the target data center meets the query requirements corresponding to the data query request;

[0142] When the service capability of the target data center does not meet the query requirement corresponding to the query request, querying a registry that meets the query requirement in the registry alliance;

[0143] When the service capability of the queried registration center meets the query requirement, the target data corresponding to the data query request is queried through the queried registration center.

[0144] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.

[0145] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0146] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0147] Create a registration center corresponding to each data center according to the business service nodes corresponding to each data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center;

[0148] Connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center;

[0149] When a preset target data center receives a data query request, detecting whether the service capability of the target data center meets the query requirements corresponding to the data query request;

[0150] When the service capability of the target data center does not meet the query requirement corresponding to the query request, querying a registry that meets the query requirement in the registry alliance;

[0151] When the service capability of the queried registration center meets the query requirement, the target data corresponding to the data query request is queried through the queried registration center.

[0152] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0153] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0154] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0155] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0156] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.

[0157] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0158] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0159] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A data query method for a registration center alliance, It is characterized in that The method comprises: Create a registration center corresponding to each data center according to the business service nodes corresponding to each data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center; Connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center; When a preset target data center receives a data query request, detecting whether the service capability of the target data center meets the query requirements corresponding to the data query request; When the service capability of the target data center does not meet the query requirement corresponding to the query request, querying a registry that meets the query requirement in the registry alliance; When the service capability of the queried registration center meets the query requirement, the target data corresponding to the data query request is queried through the queried registration center.

2. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The step of creating a registration center corresponding to each data center according to the pre-acquired business service node corresponding to the data center includes: Configure a registry instance for each pre-obtained data center; Configure the registration information of the registry center according to the registry center instance; Mapping the registration information with the business service node to obtain a registration mapping relationship; A registration center corresponding to the data center is created through the registration mapping relationship.

3. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The generating of alliance information according to the registration address and priority corresponding to each registration center includes: Arrange all registration centers in descending order according to the priority corresponding to each registration center to obtain the first registration center sequence; Arrange the registration addresses corresponding to each registration center from top to bottom according to the sequence order of the first registration center sequence to obtain a second registration center sequence; Generate alliance information according to the second registration center sequence.

4. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The step of connecting all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center includes: Selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, and gathering the registration centers that are not selected as a registration center set; Selecting a next registration center in the registration center set according to the order of the registration centers in the alliance information, and extracting the registration address of the next registration center; receiving a connection request from the target registration center through the next registration center; When the connection request is successfully received, the registration address of the target registration center is sent to the next registration center, and the process returns to the step of selecting the next registration center in the registration center set according to the order of the registration centers in the alliance information, until all the registration centers in the registration center set are selected; When all the registration centers in the registration center set are selected, the method returns to the step of selecting a registration center as a target registration center according to the order of the registration centers in the alliance information, until all the registration centers are selected as target registration centers; When all the registration centers are used as target registration centers, a registration center alliance corresponding to the data center is generated.

5. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The detecting whether the service capability of the target data center meets the query requirement corresponding to the data query request includes: Determining a query requirement according to the data query request; Simulating the target business capability of the target data center through the query demand; Comparing the target service capability with the service capability of the target data center; It is determined whether the target data center meets the query requirements corresponding to the data query request based on the compared business capabilities.

6. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The step of searching the registry alliance for a registry that meets the query requirement includes: Extracting the connection registration center corresponding to the target data center according to the registration center alliance; Selecting a target connection registration center according to the priority of the connection registration center; Determine whether the data center corresponding to the target connection registration center meets the query requirement; When the data center corresponding to the target connection registration center does not meet the query requirement, the process returns to the step of selecting the target connection registration center according to the priority of the connection registration center until a registration center meeting the query requirement is found.

7. The data query method of the registration center alliance as claimed in claim 1, It is characterized in that The querying of the target data corresponding to the data query request through the queried registration center includes: Extracting request parameters corresponding to the data query request; Connecting the data query request to the business service node corresponding to the queried registration center according to the request parameters; The target data corresponding to the data query request is queried through the business service node.

8. A data query device for a registration center alliance, It is characterized in that The device comprises: An alliance information generation module is used to create a registration center corresponding to each data center according to the business service nodes corresponding to the data center obtained in advance, and generate alliance information according to the registration address and priority corresponding to each registration center; A registration center alliance creation module, used to connect all registration centers to each other according to the alliance information to obtain the registration center alliance corresponding to the data center; A query request detection module is used to detect whether the business capability of a preset target data center meets the query requirements corresponding to the data query request when the preset target data center receives the data query request; A registration center query module, used for querying a registration center that meets the query requirement in the registration center alliance when the business capability of the target data center does not meet the query requirement corresponding to the query request; The target data query module is used to query the target data corresponding to the data query request through the queried registration center when the business capability of the queried registration center meets the query requirement.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data query method of the registration center alliance as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the data query method of the registration center alliance as described in any one of claims 1 to 7 is implemented.