Data processing methods, apparatus, equipment and storage media for multiple registry centers
By creating data synchronization tasks in a multi-registry-center mode, information synchronization between heterogeneous registry centers is achieved, solving the problems of cumbersome and costly cross-registry-center call operations, improving data processing efficiency and reducing costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2026-04-03
AI Technical Summary
In a multi-registry-center model, cross-registry-center service calls are cumbersome and costly, and existing technologies struggle to efficiently achieve information synchronization and invocation.
By creating multiple data synchronization tasks, each task corresponding to at least two different registry centers, information changes are detected, converted into different types of change information, and sent to the corresponding registry center to achieve information synchronization.
It significantly improves the data processing efficiency of multiple registry centers, reduces overall costs, and simplifies the information retrieval process.
Smart Images

Figure CN114138504B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, device, and storage medium for multiple registry centers. Background Technology
[0002] In the service architecture, service providers register with a registry center, and service callers retrieve an instance list from the registry center to make service calls. However, with the global deployment of services and the limitations of cross-regional network reliability, deploying a single registry center to provide services is no longer sufficient to meet current business needs.
[0003] In current technologies, using multiple registry centers to achieve global and cross-regional deployment to meet current business needs has become the mainstream model. However, in the process of using the multiple registry center model, some registry centers are deployed globally, while others are deployed in specific regions, which brings about the problem of service usage across registry centers. For example, service providers need to register in multiple registry centers, and service callers need to subscribe in multiple registry centers, which is cumbersome and costly. Summary of the Invention
[0004] This invention provides a data processing method, apparatus, device, and storage medium for multiple registry centers, which solves the problems of cumbersome operation and high cost when making service calls or using other related services across centers in the prior art, significantly improving the data processing efficiency of multiple registry centers and reducing costs.
[0005] In a first aspect, embodiments of the present invention provide a data processing method for multiple registration centers, the method comprising:
[0006] Multiple data synchronization tasks are created based on the registry center information, where each data synchronization task corresponds to at least two different registry centers;
[0007] When a change in information is detected in a registry, the changed information is converted into change information for different types of registry by creating a data synchronization task.
[0008] The change information is sent to the corresponding registry center to synchronize information between other registry centers and the first registry center, so as to provide information access.
[0009] Secondly, embodiments of the present invention also provide a data processing apparatus for multiple registration centers, comprising:
[0010] The task creation module is used to create multiple data synchronization tasks based on the registry center information, wherein each data synchronization task corresponds to at least two different registry centers;
[0011] The information change processing module is used to convert the information change content into change information for different types of registry centers when an information change is detected in a registry center by creating a data synchronization task.
[0012] The information sending module is used to send the change information to the corresponding registration center, so as to realize the information synchronization between other registration centers and the first registration center to provide information access.
[0013] Thirdly, embodiments of the present invention also provide a data processing device with multiple registration centers, the device comprising:
[0014] One or more processors;
[0015] Storage device for storing one or more programs.
[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method for multiple registration centers as described in the embodiments of the present invention.
[0017] Fourthly, embodiments of the present invention also provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to execute the data processing method for multiple registry centers described in the embodiments of the present invention.
[0018] In this embodiment of the invention, multiple data synchronization tasks are created based on the registry center information. Each data synchronization task corresponds to at least two different registry centers. When a change in the information of a registry center is detected, the created data synchronization task converts the changed information into change information for different types of registry centers and sends the change information to the corresponding registry center. This is used to synchronize the information between other registry centers and the first registry center to provide information access, significantly improving the data processing efficiency of multiple registry centers and reducing the overall cost. Attached Figure Description
[0019] Figure 1 A flowchart illustrating a data processing method with multiple registration centers provided in an embodiment of the present invention;
[0020] Figure 2 A flowchart illustrating another data processing method with multiple registration centers provided in an embodiment of the present invention;
[0021] Figure 3 A flowchart illustrating another data processing method with multiple registration centers provided in an embodiment of the present invention;
[0022] Figure 4 A flowchart illustrating another data processing method with multiple registration centers provided in an embodiment of the present invention;
[0023] Figure 5 A structural block diagram of a data processing device with multiple registration centers provided in an embodiment of the present invention;
[0024] Figure 6 This is a schematic diagram of the structure of a data processing device with multiple registration centers provided in an embodiment of the present invention. Detailed Implementation
[0025] The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present invention and not intended to limit the scope of the invention. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the embodiments of the present invention, and not all structures.
[0026] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0027] Figure 1 The flowchart illustrates a data processing method for multiple registry centers provided in this embodiment of the invention. This method can be applied to data processing across multiple registry centers and can be executed by computing devices such as desktop computers, laptops, backend servers, registry center server room equipment, or custom-designed equipment. Specifically, it includes the following steps:
[0028] Step S101: Create multiple data synchronization tasks based on the registry center information, wherein each data synchronization task corresponds to at least two different registry centers.
[0029] The service registry is a crucial component of the service architecture. Taking a microservice architecture as an example, the registry acts as a central coordinator of information resources. Common functions of a registry include service discovery, service configuration, and service health checks.
[0030] In one embodiment, the service discovery functions provided by the registry center include service registration, service deregistration, service subscription, and service unsubscription. Specifically, the registry center can save relevant information about the service provider and the service caller during service registration; during service subscription, the service caller can subscribe to the service provider's information, and when the service provider's information changes, such as adding or removing instances, the subscribed service callers will receive corresponding notifications.
[0031] In one embodiment, to meet the business needs of global deployment, multiple registry centers are built, deployed in certain regions or globally depending on different business requirements. These multiple registry centers exhibit heterogeneity, such as open-source microservice registry centers like Eureka, Nacos, and Consul. This means that the registry centers are built using different programming languages and technology stacks, and each registry center has its own supporting client SDK to enable service provider registration and service call consumption. As the business continues to grow, these originally independent and heterogeneous registry centers require cross-registration service calls. Current technologies typically require service providers to register with multiple registry centers or service callers to consume instances from multiple registry centers. Due to the heterogeneous nature of the registry centers, this necessitates significant code modifications, and even changes to the technology stack, for both service providers and registrants, resulting in substantial costs. Specifically, the aforementioned cross-registry center refers to cross independently deployed registry centers, such as team A and team B deploying the same registry center cluster (which can both be of type Eureka) but the two clusters are completely independent; or two heterogeneous registry centers of different types, such as one is a Eureka type registry center and the other is a Nacos type registry center.
[0032] In one embodiment, to achieve cross-registry data processing, multiple data synchronization tasks are first created based on registry information. This registry information can include the number of registries and information related to each registry, such as its type and region. Optionally, multiple data synchronization tasks can be created by using a designed synchronization component, i.e., by running the synchronization component. For example, the content of the data synchronization can be service instance information. Optionally, one data synchronization task can be configured for every two registries, i.e., one data synchronization task is used to achieve data synchronization between two registries. This data synchronization task can achieve bidirectional data synchronization between two registries. Taking one data synchronization task configured for registries 1 and 2 as an example, when registries 1 changes its information, registries 2 will synchronize its information accordingly, and when registries 2 changes its information, registries 1 will synchronize its information accordingly. Optionally, the data synchronization task can also simultaneously achieve data synchronization between three registries. The specific number of registries to be synchronized is not limited; a relatively preferred solution is to configure one data synchronization task for every two registries. For example, if we configure a data synchronization task for every two registry centers, when there are N registry centers, the number of data synchronization tasks created is N(N-1) / 2. The data synchronization task can run in the computing device as a background task. Each data synchronization task can asynchronously realize the data synchronization of the corresponding registry center.
[0033] In one embodiment, the registration center information also includes the region where the registration center is located. For example, the registration region can be divided into four regions, denoted as Region 1, Region 2, Region 3, and Region 4, each corresponding to a preset geographical location, such as China, Asia, Europe, and the Americas. Multiple data synchronization tasks are created based on the registration center information, including: creating a data synchronization task for every two registration centers within a preset region; and creating a data synchronization task for two registration centers between preset regions. For example, assuming there are four preset regions, each containing four registration centers, then for each pair of registration centers within a preset region, a total of six data synchronization tasks are created. For the pairs of registration centers between preset regions, such as selecting one registration center each from Region 1 and Region 2, data synchronization tasks are created for those two registration centers. This reduces the number of data synchronization tasks created while ensuring bidirectional data synchronization between the final pairs of registration centers.
[0034] Step S102: When a change in information of a certain registry center is detected, the changed information is converted into change information of different types of registry centers through a data synchronization task.
[0035] In one embodiment, information changes in a registry center are exemplified by instance changes in that registry center. After the synchronization component is started, a corresponding data synchronization task is initiated. For example, assuming one data synchronization task corresponds to every two registry centers, the data synchronization task is denoted as job[i][j], representing the synchronization task between registry center i and registry center j. This data synchronization task subscribes to the instance information of registry center i and registry center j. When it receives instance change information from registry center i, it synchronizes the changed instance to registry center j. Conversely, when it receives instance change information from registry center j, it synchronizes the changed instance to registry center i. For example, instance information may include the IP address, port number, service name, region, country, city, and data center information of the service provider when registering with a registry center. The service caller can retrieve this instance information from the registry center to implement the service call.
[0036] To achieve data synchronization across different registry centers, when an information change is detected in a registry center, a data synchronization task is created to convert the changed information into change information for different types of registry centers. In one embodiment, the multiple registry centers include those generated using different programming languages and technology stacks. Taking open-source Eureka, Nacos, and Consul registry centers as examples, for Eureka registry center i and Nacos registry center j, the data synchronization task job[i][j] performs corresponding conversions in programming language and data representation format during the process of synchronizing the instance change information of Eureka registry center i to Nacos registry center j. This ensures that Nacos registry center j uses its own construction configuration to synchronize the instance change information of registry center i. Ultimately, this allows service callers to make service calls from any registry center.
[0037] Step S103: Send the change information to the corresponding registration center to realize information synchronization between other registration centers and the first registration center to provide information access.
[0038] When a data synchronization task receives information changes from a registry center, it converts the information changes into different types of registry center change information and then further synchronizes the change information to other registry centers, such as sending the change information to other registry centers for information updates, so as to ultimately achieve data synchronization across multiple registry centers.
[0039] As can be seen from the above solution, by creating a data synchronization task and using this task to connect data synchronization between heterogeneous registry centers, the problem of business calls across registry centers is solved, the data processing efficiency of multiple registry centers is significantly improved, the overall cost is reduced, and no changes are required to the original registry centers, making it convenient.
[0040] Figure 2 This flowchart illustrates another data processing method for multiple registry centers provided in an embodiment of the present invention. It presents a specific way to achieve synchronized data changes among other registry centers in a multi-registration-center system, such as... Figure 2 As shown, it includes:
[0041] Step S201: Create multiple data synchronization tasks based on the registry center information, wherein each data synchronization task corresponds to at least two different registry centers.
[0042] Step S202: When the information change of the first registration center is detected through the first data synchronization task, the information change content is converted into change information of the type belonging to the second registration center.
[0043] In one embodiment, a data synchronization task is created between every two registry centers. For a preset region containing four registry centers (exemplarily referred to as registry center a, registry center b, registry center c, and registry center d), data synchronization tasks job[a][b] are created for registry center a and registry center b, data synchronization tasks job[a][c] are created for registry center a and registry center c, data synchronization tasks job[a][d] are created for registry center a and registry center d, data synchronization tasks job[b][c] are created for registry center b and registry center c, data synchronization tasks job[b][d] are created for registry center b and registry center d, and data synchronization tasks job[c][d] are created for registry center c and registry center d.
[0044] When a change in information of the first registry center is detected by the first data synchronization task, for example, the first data synchronization task is represented by job[a][b], the first registry center is represented by registry center a, and the second registry center is represented by registry center b. That is, when a change in information of registry center a is detected, the change in information is converted into change information of the type belonging to registry center b by the data synchronization task job[a][b].
[0045] Step S203: Send the change information to the second registration center to synchronize the information between the first registration center and the second registration center.
[0046] Accordingly, taking the aforementioned representation content description as an example, the data synchronization task job[a][b] sends the change information to the registration center b to achieve information synchronization between the registration center a and the registration center b.
[0047] Step S204: When the information change of the second registration center is detected by the second data synchronization task, the information change content is converted into change information of the type of the third registration center, and the change information is sent to the third registration center so that the information of the first registration center and the third registration center are synchronized.
[0048] The second data synchronization task is represented by job[b][c], and the third registry center is represented by registry center c. When the information in registry center b changes, the data synchronization task job[b][c] is used to further change the information in registry center c, ultimately achieving information synchronization between registry center b and registry center c. This achieves information synchronization between registry center a, registry center b, and registry center c. Similarly, the data synchronization task job[c][d] is used to further synchronize the information between registry center c and registry center d. Correspondingly, if there are n registry centers, data synchronization between them is achieved in this manner. To avoid circular synchronization, if registry center a changes its information and then registry center b is synchronized, and then registry center b changes its information, registry center a will also be synchronized. During the information synchronization process, the source of the information change request is recorded. That is, when registry center b synchronizes, the source of the information change request is recorded as a. Therefore, when a data synchronization event caused by a change in registry center b is triggered, the data synchronization task job[a][b] is filtered out.
[0049] As can be seen from the above scheme, the data processing method of the multi-registration center allows any business service to be registered in any registration center and then subscribed to and invoked by the service caller of any other registration center, which greatly simplifies the information retrieval process and optimizes the service invocation mechanism of the multi-registration center.
[0050] Building upon the aforementioned technical solutions, data synchronization between globally deployed registry centers can also be achieved by creating a data synchronization task between each pair of registry centers across different preset regions. Optionally, for each preset region, a registry center can be selected, and a data synchronization task can be created between each pair of selected registry centers to establish information synchronization channels between different preset regions. Within each preset region, information synchronization among all registry centers is achieved based on the data synchronization tasks created between each pair. This reduces the number of data synchronization tasks created, making the synchronization component more lightweight and reducing system resource consumption.
[0051] In another embodiment, the same approach of creating a data synchronization task between every two registry centers is adopted. For a preset region containing four registry centers (exemplarily referred to as registry center a, registry center b, registry center c, and registry center d), data synchronization tasks job[a][b] are created for registry center a and registry center b, data synchronization tasks job[a][c] are created for registry center a and registry center c, data synchronization tasks job[a][d] are created for registry center a and registry center d, data synchronization tasks job[b][c] are created for registry center b and registry center c, data synchronization tasks job[b][d] are created for registry center b and registry center d, and data synchronization tasks job[c][d] are created for registry center c and registry center d. Specifically, when a change in the information of registry center a is detected by the data synchronization task job[a][b], after the information synchronization of registry center b is completed, the data synchronization task job[a][c] is further used to realize the information synchronization between registry center a and registry center c. It is not limited to using the data synchronization task job[b][c] to indirectly realize the data synchronization between registry center a and registry center c. Any method of realizing the information synchronization of multiple registry centers through the creation of data synchronization tasks is within the protection scope of this solution.
[0052] Figure 3 This is a flowchart illustrating another data processing method using multiple registry centers provided in an embodiment of the present invention. It presents a specific method for service registration and invocation under a multi-registration center deployment, such as... Figure 3 As shown, it includes:
[0053] Step S301: Create multiple data synchronization tasks based on the registry center information, wherein each data synchronization task corresponds to at least two different registry centers.
[0054] Step S302: Register by receiving registration information from the service provider through the third registration center.
[0055] This third registration center is one of multiple registration centers. The service provider registered its registration information through this third registration center.
[0056] Step S303: When a change in information of a third registry center is detected, the changed information is converted into change information of different types of registry centers through a data synchronization task.
[0057] When a third registration center registers information, or when that registration information is changed, the data synchronization task detects the change and converts the changed information into change information for different types of registration centers.
[0058] Step S304: Send the change information to the corresponding registration center to synchronize information between other registration centers and the first registration center to provide information retrieval.
[0059] Specifically, the registration or change information of the third registration center is sent to other registration centers in the multi-registration system, so that the registration or change information of the third registration center is synchronized among the various registration centers.
[0060] Step S305: Receive information call request from the service caller through the fourth registration center, which is used to call the registration information or the changed information after information modification based on the registration information.
[0061] The fourth registry center is another registry center among multiple registry centers. The service caller uses the fourth registry center to retrieve the information that was originally registered or changed in the third registry center in order to make the service call.
[0062] As can be seen from the above scheme, the data processing method of the above multi-registration center realizes the process of information registration and retrieval between different registration centers, realizes cross-registration center information retrieval. When the registration centers are in different preset regions, the cross-region information retrieval is completed, breaking down the connection between the originally closed and isolated registration centers, and significantly optimizing the data retrieval of multiple registration centers in a global deployment environment.
[0063] Optionally, in the above embodiments, the fourth registration center and the service caller contain the same preset region identifier. That is, the service caller preferentially calls the registration center under the same region identifier, which is used to represent the preset region. Taking the call information as an example, if the fourth registration center does not contain the call instance in the information call request, then the information call request is responded to through any other registration center that contains the call instance. That is, when a registration center in a preset region is down, being updated, or unusable, cross-regional information call can be achieved, thus realizing cross-regional disaster recovery function.
[0064] Figure 4 The flowchart illustrates another data processing method using multiple registration centers provided in this embodiment of the invention, illustrating an optimized information retrieval selection strategy. For example... Figure 4 As shown, it includes:
[0065] Step S401: After the service caller starts, it subscribes to the first instance from any of the multiple registration centers.
[0066] Step S402: The service caller obtains the first instance from the registry center in the local data center.
[0067] Step S403: Determine whether the acquisition was successful. If yes, proceed to step S411; otherwise, proceed to step S404.
[0068] Step S404: The service caller obtains the first instance from the registry center in the same city.
[0069] Step S405: Determine whether the acquisition was successful. If yes, proceed to step S411; otherwise, proceed to step S406.
[0070] Step S406: The service caller obtains the first instance from the registry center in the same country.
[0071] Step S407: Determine whether the acquisition was successful. If yes, proceed to step S411; otherwise, proceed to step S408.
[0072] Step S408: The service caller obtains the first instance from the registry center in the same region.
[0073] Step S409: Determine whether the acquisition was successful. If yes, proceed to step S411; otherwise, proceed to step S410.
[0074] Step S410: The service caller obtains the first instance from all registry centers to initiate an information call.
[0075] Step S411: Initiate information retrieval.
[0076] As can be seen from the above, when the service caller initiates an information call, since the information has been synchronized by each registry center, although there may be network failures or other issues that prevent timely synchronization, the instance acquisition is carried out by prioritizing the nearest instance until the call is initiated. This achieves optimization of near-distance priority calls and cross-regional disaster recovery calls when processing data from multiple registry centers.
[0077] Figure 5 This is a structural block diagram of a data processing apparatus for multiple registration centers provided in an embodiment of the present invention. This apparatus is used to execute the data processing method for multiple registration centers provided in the above embodiment, and has corresponding functional modules and beneficial effects for executing the method. For example... Figure 5 As shown, the system specifically includes: a task creation module 101, an information change processing module 102, and an information sending module 103, wherein...
[0078] The task creation module is used to create multiple data synchronization tasks based on the registry center information, wherein each data synchronization task corresponds to at least two different registry centers;
[0079] The information change processing module is used to convert the information change content into change information for different types of registry centers when an information change is detected in a registry center by creating a data synchronization task.
[0080] The information sending module is used to send the change information to the corresponding registration center, so as to realize the information synchronization between other registration centers and the first registration center to provide information access.
[0081] As can be seen from the above scheme, multiple data synchronization tasks are created based on the registry center information. Each data synchronization task corresponds to at least two different registry centers. When a change in the information of a registry center is detected, the created data synchronization task converts the changed information into change information of different types of registry centers and sends the change information to the corresponding registry center. This is used to realize the information synchronization between other registry centers and the first registry center to provide information access, which significantly improves the data processing efficiency of multiple registry centers and reduces the overall cost.
[0082] In one possible embodiment, the task creation module 101 is specifically used for:
[0083] Create a data synchronization task for every two registry centers within the preset region;
[0084] Create a data synchronization task between two registry centers in the preset regions.
[0085] In one possible embodiment, the information change processing module 102 is specifically used for:
[0086] When a change in information in the first registry center is detected through the first data synchronization task, the changed information is converted into change information of the type belonging to the second registry center.
[0087] The information sending module 103 is specifically used for:
[0088] The change information is sent to the second registration center to synchronize the information between the first registration center and the second registration center.
[0089] In one possible embodiment, the information change processing module 102 is further configured to:
[0090] After the change information is sent to the second registration center, when the information change of the second registration center is detected by the second data synchronization task, the information change content is converted into change information of the type belonging to the third registration center;
[0091] The information sending module 103 is specifically used to send the change information to the third registration center so that the information of the first registration center and the third registration center is synchronized.
[0092] In one possible embodiment, the apparatus further includes a service registration module and a service invocation module, the service registration module being used for:
[0093] After creating multiple data synchronization tasks based on the registration center information, the service provider registers by receiving its registration information through a third registration center.
[0094] The service invocation module is used for:
[0095] After the change information is sent to the corresponding registration center, the fourth registration center receives the information call request from the service caller, which is used to call the registration information or the change information after the information has been changed based on the registration information.
[0096] In one possible embodiment, the fourth registry center and the service call terminal contain the same preset region identifier.
[0097] In one possible embodiment, the service invocation module is specifically used for:
[0098] If the fourth registry center does not contain the call instance in the information call request, then the information call request will be responded to through any other registry center that contains the call instance.
[0099] Figure 6 This is a schematic diagram of the structure of a data processing device with multiple registration centers provided in an embodiment of the present invention, as shown below. Figure 6 As shown, the device includes a processor 201, a memory 202, an input device 203, and an output device 204; the number of processors 201 in the device can be one or more. Figure 6 Taking a processor 201 as an example; the processor 201, memory 202, input device 203, and output device 204 in the device can be connected via a bus or other means. Figure 6 Taking a bus connection as an example, the memory 202, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the data processing method of the multiple registry centers in this embodiment of the invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory 202, thereby implementing the aforementioned data processing method of the multiple registry centers. The input device 203 can be used to receive input digital or character information and generate key signal inputs related to user settings and function control of the device. The output device 204 may include a display screen or other display device.
[0100] This invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a data processing method for multiple registry centers described in the above embodiments, specifically including:
[0101] Multiple data synchronization tasks are created based on the registry center information, where each data synchronization task corresponds to at least two different registry centers;
[0102] When a change in information is detected in a registry, the changed information is converted into change information for different types of registry by creating a data synchronization task.
[0103] The change information is sent to the corresponding registry center to synchronize information between other registry centers and the first registry center, so as to provide information access.
[0104] It is worth noting that in the above embodiments of the data processing device with multiple registration centers, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of the present invention.
[0105] Note that the above are merely preferred embodiments and the technical principles applied in this invention. Those skilled in the art will understand that the embodiments of this invention are not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the protection scope of this invention. Therefore, although the embodiments of this invention have been described in detail above, the embodiments of this invention are not limited to the above embodiments. More other equivalent embodiments may be included without departing from the concept of the embodiments of this invention, and the scope of the embodiments of this invention is determined by the scope of the appended claims.
Claims
1. A data processing method for multiple registration centers, characterized in that, include: Multiple data synchronization tasks are created based on the registry center information. Each data synchronization task corresponds to at least two different registry centers. Each data synchronization task asynchronously implements data synchronization for the corresponding registry center. The creation of multiple data synchronization tasks based on the registry center information includes: creating a data synchronization task for every two registry centers within a preset region, and creating a data synchronization task for two registry centers between preset regions. When a change in information in the first registry center is detected through the first data synchronization task, the changed information is converted into change information of the type belonging to the second registry center. The change information is sent to the second registration center to synchronize the information between the first registration center and the second registration center, thereby enabling information retrieval between the second registration center and the first registration center. When a change in information in the second registry center is detected through the second data synchronization task, the changed information is converted into change information of the type belonging to the third registry center, and the changed information is sent to the third registry center to synchronize the information of the first registry center and the third registry center; wherein, during the information synchronization process, the source of the information change request is recorded, and the corresponding synchronization task is filtered according to the source of the information change request when the subsequent data synchronization task is triggered.
2. The data processing method for multiple registration centers according to claim 1, characterized in that, After creating multiple data synchronization tasks based on the registry center information, the process also includes: Register by receiving registration information from the service provider through a third-party registration center; After sending the change information to the corresponding registry center, the process also includes: The fourth registration center receives information request requests from service callers, which are used to call the registration information or the modified information after changes based on the registration information.
3. The data processing method for multiple registration centers according to claim 2, characterized in that, The fourth registration center and the service call terminal share the same preset region identifier.
4. The data processing method for multiple registration centers according to claim 3, characterized in that, If the fourth registry center does not contain the call instance in the information call request, then the information call request will be responded to through any other registry center that contains the call instance.
5. A data processing device with multiple registration centers, characterized in that, include: The task creation module is used to create multiple data synchronization tasks based on the registration center information. Each data synchronization task corresponds to at least two different registration centers. Each data synchronization task asynchronously realizes data synchronization of the corresponding registration center. Specifically, the task creation module is used to create a data synchronization task for every two registration centers within a preset region and to create a data synchronization task for two registration centers between preset regions. The information change processing module is used to convert the information change content into change information of the type belonging to the second registration center when the information change of the first registration center is detected through the first data synchronization task. The information sending module is used to send the change information to the second registration center so as to synchronize the information of the first registration center and the second registration center, and to realize the information synchronization between the second registration center and the first registration center to provide information access; The information change processing module is also used when an information change in the second registration center is detected through the second data synchronization task; The information sending module is further configured to convert the information change content into change information of the type belonging to the third registration center, and send the change information to the third registration center so as to synchronize the information of the first registration center and the third registration center; wherein, during the information synchronization process, the source of the information change request is recorded, and the corresponding synchronization task is filtered according to the source of the information change request when the subsequent data synchronization task is triggered.
6. A data processing device with multiple registration centers, the device comprising: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the data processing method for multiple registries as described in any one of claims 1-4.
7. A storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the data processing method for multiple registries as described in any one of claims 1-4.
Citation Information
Patent Citations
Micro service registration method and micro service registration system
CN105515759A
Microservice invocation method, apparatus, system and device and readable storage medium
CN109246251A
Synchronous data channel construction method and device, computer equipment and storage medium
CN111274315A