Registration center switching method based on cloud platform

By establishing multiple transmission channels between the initial registration center and the latest registration center and performing inspection and repair, the problem of unstable registration center switching is solved, ensuring the integrity and continuity of data transmission, reducing service interruptions and information loss, and improving System availability and response speed.

CN119211205AInactive Publication Date: 2024-12-27HUNAN SANXIANG BANK CO LTD

Patent Information

Application Number
CN202411189229.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, a large amount of data processing is required during the switching of the registration center, which can easily cause unstable switching of the registration center, resulting in service interruption and loss of initial registration information.

Method used

Establish multiple transmission channels between the initial registration center and the latest registration center, check and repair a single channel, ensure the normal operation of data transmission, and dynamically adjust the system by setting initial configuration parameters. If you need to convert, you do not need to re-deploy or restart the service. Find efficiency and data integrity.

Benefits of technology

Through the use of multiple transmission channels, we ensure the integrity and continuity of data transmission, reduce service interruptions and information loss, reduce operation and maintenance pressure, improve service response speed and availability, and ensure the accuracy of registration information and timely update of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211205A_ABST
    Figure CN119211205A_ABST
Patent Text Reader

Abstract

The invention relates to the field of micro-services, in particular to a cloud platform-based registration center switching method, which comprises the following steps of: establishing a plurality of transmission channels, and transmitting initial registration information through the plurality of transmission channels; receiving a plurality of addressing information and extracting feature addressing information; initial configuration parameters are set, and the feature addressing information is sent to the latest registration center to search target registration information; if the target registration information does not exist in the latest registration center, checking and repairing the transmission channel, transmitting the initial registration information again, and searching again after a first time period; if the re-searching result is that the target registration information does not exist in the latest registration center, the configuration parameters are replaced to send the feature addressing information to the initial registration center; and searching the target addressing information in the initial registration center, and transmitting a searching result to the newest registration center through the transmission channel to complete updating of the newest registration center. According to the invention, the stability of registration center switching is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of microservices, and in particular to a registration center switching method based on a cloud platform. Background Art

[0002] The microservice registry is a key component in modern, distributed systems. As a core part of the microservice architecture, it is mainly responsible for automatically managing and maintaining the registration, discovery, and routing of each microservice in the system.

[0003] A patent document with Chinese patent publication number CN114640657A discloses a method and device for fusing multiple registration centers, the method comprising: determining a set of registration centers to be merged; calling a registration center synchronization service to traverse a first registration center, wherein the first registration center is any registration center in the registration center set; determining a microservice instance in the first registration center, and obtaining instance information corresponding to the microservice instance; registering the instance information to a second registration center, wherein the second registration center is a registration center in the registration center set that is not the first registration center.

[0004] In the prior art, a large amount of data processing is required during the registration center switching process, which easily causes the problem of instability in the registration center switching process. Summary of the invention

[0005] To this end, the present invention provides a registration center switching method based on a cloud platform, which sends characteristic addressing information to the initial registration center by changing the configuration parameters, and transmits the search results of the target addressing information to the latest registration center through the transmission channel. Completing the update of the latest registration center can solve the problem of unstable registration center switching.

[0006] To achieve the above object, the present invention provides a registration center switching method based on a cloud platform, the method comprising:

[0007] Establishing a plurality of transmission channels between the initial registration center and the latest registration center, and transmitting the initial registration information in the initial registration center to the latest registration center through the plurality of transmission channels;

[0008] Receiving some addressing information from the client, and extracting some characteristic addressing information from the addressing information;

[0009] Setting initial configuration parameters, sending the characteristic addressing information to the latest registration center to search for target registration information;

[0010] If the target registration information is not in the latest registration center, the transmission channel is checked and repaired, the initial registration information is retransmitted, and after the first time period, the target registration information is searched again in the latest registration center;

[0011] If the result of the second search is that the target registration information does not exist in the latest registration center, then the configuration parameters are changed to send the feature addressing information to the initial registration center;

[0012] The target addressing information is searched in the initial registration center, and the search result is transmitted to the latest registration center through a transmission channel to complete the update of the latest registration center.

[0013] Furthermore, several transmission channels are established between the initial registration center and the latest registration center, including:

[0014] Obtaining the amount of initial registration information and the preset transmission efficiency in the initial registration center;

[0015] Calculating a preset number of transmission channels according to the initial registration information quantity and the preset transmission efficiency;

[0016] The initial registration center initiates a connection request and transmits it to the latest registration center through a preset number of transmission channels;

[0017] The latest registration center monitors the connection request through an interface monitor;

[0018] When the connection request is monitored, the latest registration center sends a response request to the initial registration center, and the initial registration center transmits the initial registration information after receiving the response request;

[0019] The actual transmission efficiency of the initial registration information is monitored in real time, the actual transmission efficiency is compared with the preset transmission efficiency, and the preset number of the transmission channels is adjusted according to the comparison result.

[0020] Further, adjusting the preset number of transmission channels according to the comparison result includes:

[0021] When the actual transmission efficiency is less than the preset transmission efficiency, calculating an increase coefficient according to the actual transmission efficiency and the preset transmission efficiency, and adjusting the preset number of transmission channels according to the increase coefficient;

[0022] When the actual transmission efficiency is greater than the preset transmission efficiency, calculating an actual difference between the actual transmission efficiency and the preset transmission efficiency, and when the actual difference is greater than the preset difference, calculating a reduction coefficient according to the actual difference and the preset difference, and adjusting the preset number of transmission channels according to the reduction coefficient;

[0023] When the actual transmission efficiency is equal to the preset transmission efficiency, no adjustment is made.

[0024] Further, extracting characteristic addressing information from the addressing information includes:

[0025] dividing the addressing information according to the structure of the addressing information;

[0026] Locating a position structure in the addressing information structure;

[0027] Extract the coordinate information in the position structure, and use the coordinate information as the feature addressing information.

[0028] Further, sending the characteristic addressing information to the latest registration center to search for target registration information includes:

[0029] Performing similarity matching between the characteristic addressing information and the latest registration information in the latest registration center;

[0030] If the similarity calculation result is less than 100%, then the target registration information does not exist in the latest registration center;

[0031] If the similarity calculation result is equal to 100%, the latest registration information corresponding to the similarity calculation result is extracted as the target registration information.

[0032] Further, checking and repairing the transmission channel includes:

[0033] If the similarity result is greater than the first preset similarity and less than the second preset similarity, the network connectivity of the transmission channel is detected by a detection tool, and if the transmission channel is disconnected, the transmission channel is reconnected to complete the repair;

[0034] If the similarity result is less than the first preset similarity, changing the transmission channel;

[0035] The first preset similarity is smaller than the second preset similarity.

[0036] Further, changing the configuration parameters to send the feature addressing information to the initial registration center includes:

[0037] Obtaining the initial address information of the initial registration center;

[0038] Locate the latest address information of the latest registration center in the initial configuration parameters;

[0039] The initial address information replaces the latest address information to complete the replacement of the initial configuration parameters.

[0040] Further, the increasing coefficient to adjust the preset number of the transmission channels includes:

[0041] Dividing the preset transmission efficiency by the actual transmission efficiency to obtain the increase coefficient;

[0042] The preset number is multiplied by the increase coefficient to obtain a final number, and the preset number is adjusted to the final number.

[0043] Further, completing the search for the target addressing information in the initial registration center includes:

[0044] Obtaining the length of the character string of the characteristic addressing information and the first data and the last data in the character string of the characteristic addressing information;

[0045] Traversing the initial registration information according to the string length, the first data and the last data, and marking the same initial registration information;

[0046] The marked initial registration information is matched with other data in the character string of the characteristic addressing information, and the initial registration information with the same matching result is obtained as the search result.

[0047] Further, transmitting the search result to the latest registration center through the transmission channel to complete the update of the latest registration center includes:

[0048] Transmitting the search result to the latest registration center through any of the transmission channels;

[0049] Testing the search results transmitted to the latest registration center, and determining whether the data is lost according to the test results;

[0050] If the data is not lost, the latest registration center sends a confirmation message to the initial registration center to complete the update of the latest registration center;

[0051] If the data is lost, the transmission channel is changed to transmit again.

[0052] Compared with the prior art, the beneficial effect of the present invention lies in that, by establishing multiple transmission channels between the initial registration center and the latest registration center, when a problem occurs in a channel, a single channel is checked and repaired, and the remaining channels can still transmit data, thereby ensuring the normal operation of the data transmission process, and by transmitting the initial registration information to the latest registration center, the integrity and continuity of the data during the registration center switching process are ensured, which helps to reduce service interruptions and initial registration information loss caused by registration center switching. By setting the initial configuration parameters, the system can be dynamically adjusted according to actual needs. If it is necessary to switch from the latest registration center to the initial registration center, the conversion is performed by modifying the configuration parameters, without the need to redeploy or even restart the service, which greatly reduces the pressure of operation and maintenance and reduces the risk. By searching in the latest registration information, the efficiency of finding the target registration information is improved, and by checking the transmission channel And repair, which helps to ensure the integrity of the initial registration information, avoid information loss or damage due to channel problems, thereby improving the accuracy of searching for the target registration information in the latest registration center, and by transmitting the initial registration information again after the first time period, it reduces the data transmission delay caused by network fluctuations, congestion and other problems, which helps to ensure that the initial registration information can reach the latest registration center in time, thereby improving the response speed of the service. When there is no target registration information in the latest registration center, by changing the configuration parameters and sending the feature addressing information to the initial registration center, the accuracy of key registration information and the continuous availability of the search service are ensured, and the search for the target addressing information is completed in the initial registration center, ensuring the integrity and accuracy of the target addressing information, reducing the error risk of the target addressing information, and updating the latest registration information. The information integrity and accuracy of the latest registration center is ensured, and the availability of the service is improved.

[0053] In particular, by obtaining the initial number of registration information and the preset transmission efficiency, the required preset number of transmission channels is calculated, thereby ensuring the transmission efficiency of the registration information between the initial registration center and the latest registration center, avoiding transmission delays or congestion caused by insufficient channels, and initiating a connection request through the initial registration center and monitoring the interface listener of the latest registration center, and quickly providing feedback to establish a transmission channel to start the transmission of registration information, which helps to reduce the waiting time for feedback and improve the efficiency of the registration information transmission process. By real-time monitoring of the actual transmission efficiency, the current registration information transmission situation can be accurately understood, so that the transmission channel can be adjusted according to the detection results, which helps to improve resource utilization. By comparing with the preset transmission efficiency and adjusting the preset number of transmission channels according to the comparison results, it helps to improve the reliability of the entire registration center switching method, so that the transmission efficiency can be kept at the optimal state, while preventing excessive allocation of resources, thereby helping to reduce waste of resources.

[0054] In particular, when the actual transmission efficiency is lower than the preset value, increasing the number of channels and maintaining the transmission rate of the registration information will help ensure the normal operation of the registration center conversion process and avoid performance losses due to network bottlenecks. When the actual transmission efficiency is higher than the preset value, reducing the number of channels will avoid unnecessary resource occupation, thereby saving resources. Adjusting the number of channels by calculating the increase or decrease coefficient and adapting to network changes in a smooth manner will help maintain the stability and reliability of the system. Fine-tuning the calculated reduction coefficient will make the adjustment of the number of transmission channels more precise, which will help improve the efficiency and reliability of the entire registration information transmission process.

[0055] In particular, by considering the similarity result, the problem type of the transmission channel and the severity of the registration information transmission can be judged more accurately, so that more appropriate repair measures can be taken, which helps to improve the success rate and efficiency of the repair. When the similarity result is between the first and second preset similarities, the network connectivity of the transmission channel is detected by the detection tool, and real-time detection is performed on whether the channel is working normally. If a disconnection is detected, the channel is reconnected to resume data transmission. When the similarity result is lower than the first preset similarity, the transmission channel is replaced to ensure that when a problem occurs in the channel, it can be switched to other available channels in time to ensure the reliability of registration information transmission.

[0056] In particular, by testing the search results transmitted to the latest registration center, data loss or damage can be discovered in a timely manner to ensure the integrity and accuracy of the registration information. A mechanism for testing the results and sending confirmation information can be used to confirm that the registration information has been successfully transmitted and received by the latest registration center to ensure the reliability of data transmission. When the loss of registration information is detected, the transmission channel is replaced for retransmission to ensure that the registration information reaches the latest registration center through other available channels. By testing and confirming the transmission results, errors caused by channel problems or other reasons during the transmission process can be reduced, thereby improving the stability and accuracy of registration information transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 A first flow chart of a registration center switching method based on a cloud platform provided in an embodiment of the present invention;

[0058] Figure 2 A second flow chart of the registration center switching method based on a cloud platform provided in an embodiment of the present invention;

[0059] Figure 3 A third flow chart of the registration center switching method based on a cloud platform provided in an embodiment of the present invention;

[0060] Figure 4 A fourth flow chart of the registration center switching method based on a cloud platform provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; 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.

[0062] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0063] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0064] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0065] See also Figure 1 As shown, a registration center switching method based on a cloud platform includes:

[0066] Step S100, establishing a plurality of transmission channels between the initial registration center and the latest registration center, and transmitting the initial registration information in the initial registration center to the latest registration center through the plurality of transmission channels;

[0067] Step S200, receiving some addressing information from the client, and extracting some characteristic addressing information from the addressing information;

[0068] Step S300, setting initial configuration parameters, sending the characteristic addressing information to the latest registration information to search for target registration information;

[0069] Step S400, if the target registration information is not in the latest registration center, the transmission channel is checked and repaired, the initial registration information is retransmitted, and after the first time period, the target registration information is searched again in the latest registration center;

[0070] Step S500, if the result of the second search is that the target registration information does not exist in the latest registration center, then the configuration parameters are changed to send the characteristic addressing information to the initial registration center;

[0071] Step S600, completing the search for the target addressing information in the initial registration center, and transmitting the search result to the latest registration center through a transmission channel to complete the update of the latest registration center.

[0072] Specifically, the first time period is a result of dividing the number of initial registration information by the transmission efficiency plus 5.

[0073] Specifically, the embodiment of the present invention establishes multiple transmission channels between the initial registration center and the latest registration center. When a problem occurs in a channel, a single channel is checked and repaired, and the remaining channels can still perform data transmission, thereby ensuring the normal operation of the data transmission process. By transmitting the initial registration information to the latest registration center, the integrity and continuity of the data during the registration center switching process are ensured, which helps to reduce service interruptions and initial registration information loss caused by registration center switching. By setting the initial configuration parameters, the system can be dynamically adjusted according to actual needs. If it is necessary to switch from the latest registration center to the initial registration center, the conversion is performed by modifying the configuration parameters without redeploying or even restarting the service, which greatly reduces the pressure of operation and maintenance and reduces risks. By searching in the latest registration information, the efficiency of searching for target registration information is improved. By checking and repairing the transmission channel, It helps to ensure the integrity of the initial registration information and avoid information loss or damage due to channel problems, thereby improving the accuracy of searching for the target registration information in the latest registration center. By transmitting the initial registration information again after the first time period, it reduces data transmission delays caused by network fluctuations, congestion and other problems, and helps ensure that the initial registration information can reach the latest registration center in a timely manner, thereby improving the response speed of the service. When there is no target registration information in the latest registration center, the accuracy of key registration information and the continuous availability of the search service are ensured by changing the configuration parameters and sending the feature addressing information to the initial registration center. The search for the target addressing information is completed in the initial registration center, ensuring the integrity and accuracy of the target addressing information, reducing the error risk of the target addressing information, and updating the latest registration information. This ensures the information integrity and accuracy of the latest registration center and improves the availability of the service.

[0074] See also Figure 2 As shown, several transmission channels are established between the initial registration center and the latest registration center, including:

[0075] Step S110, obtaining the amount of initial registration information and the preset transmission efficiency in the initial registration center;

[0076] Step S120, calculating a preset number of transmission channels according to the initial registration information quantity and the preset transmission efficiency;

[0077] Step S130, the initial registration center initiates a connection request and transmits it to the latest registration center through a preset number of transmission channels;

[0078] Step S140, the latest registration center monitors the connection request through an interface monitor;

[0079] Step S150, when the connection request is monitored, the latest registration center sends a response request to the initial registration center, and the initial registration center transmits the initial registration information after receiving the response request;

[0080] Step S160, monitoring the actual transmission efficiency of the initial registration information in real time, comparing the actual transmission efficiency with the preset transmission efficiency, and adjusting the preset number of transmission channels according to the comparison result.

[0081] Specifically, the preset transmission efficiency is 100 initial registration information transmitted per second;

[0082] The preset number of transmission channels is calculated by dividing the number of initial registration information by the preset transmission efficiency;

[0083] The listener may be a listener based on network socket technology;

[0084] The actual transmission efficiency of the initial registration information can be monitored in real time by configuring a data packet capture tool on the network device to monitor the transmission efficiency of the data packet in real time.

[0085] Specifically, the embodiment of the present invention obtains the initial registration information quantity and the preset transmission efficiency, calculates the required preset number of transmission channels, ensures the transmission efficiency of the registration information between the initial registration center and the latest registration center, avoids transmission delays or congestion caused by insufficient channels, initiates a connection request through the initial registration center and monitors the interface listener of the latest registration center, and quickly provides feedback to establish a transmission channel to start the transmission of registration information, which helps to reduce the waiting time for feedback and improve the efficiency of the registration information transmission process. By real-time monitoring of the actual transmission efficiency, the current registration information transmission status can be accurately understood, so that the transmission channel can be adjusted according to the detection results, which helps to improve resource utilization. By comparing with the preset transmission efficiency and adjusting the preset number of transmission channels according to the comparison results, it helps to improve the reliability of the entire registration center switching method, so that the transmission efficiency is kept at the optimal state, while preventing excessive allocation of resources, thereby helping to reduce waste of resources.

[0086] Specifically, adjusting the preset number of transmission channels according to the comparison result includes:

[0087] When the actual transmission efficiency is less than the preset transmission efficiency, calculating an increase coefficient according to the actual transmission efficiency and the preset transmission efficiency, and adjusting the preset number of transmission channels according to the increase coefficient;

[0088] When the actual transmission efficiency is greater than the preset transmission efficiency, calculating an actual difference between the actual transmission efficiency and the preset transmission efficiency, and when the actual difference is greater than the preset difference, calculating a reduction coefficient according to the actual difference and the preset difference, and adjusting the preset number of transmission channels according to the reduction coefficient;

[0089] When the actual transmission efficiency is equal to the preset transmission efficiency, no adjustment is made.

[0090] Specifically, the reduction coefficient is calculated by dividing the actual difference by the preset difference.

[0091] Specifically, when the actual transmission efficiency is lower than a preset value, the embodiment of the present invention increases the number of channels to maintain the transmission rate of the registration information, thereby helping to ensure the normal operation of the registration center conversion process and avoid performance losses due to network bottlenecks. When the actual transmission efficiency is higher than the preset value, the number of channels is reduced to avoid unnecessary resource occupation, thereby saving resources. The number of channels is adjusted by calculating the increase or decrease coefficient to smoothly adapt to network changes, thereby helping to maintain the stability and reliability of the system. Fine-tuning the calculated reduction coefficient makes the adjustment of the number of transmission channels more precise, thereby helping to improve the efficiency and reliability of the entire registration information transmission process.

[0092] Specifically, extracting characteristic addressing information from the addressing information includes:

[0093] dividing the addressing information according to the structure of the addressing information;

[0094] Locating a position structure in the addressing information structure;

[0095] Extract the coordinate information in the position structure, and use the coordinate information as the feature addressing information.

[0096] Specifically, the addressing information may be divided according to the structure of the addressing information by field type.

[0097] Specifically, the embodiments of the present invention simplify the processing process by dividing the addressing information according to its structure, improve the efficiency of the processing process, reduce unnecessary calculation and analysis operations, accurately extract the coordinate information in the position information by locating the position structure, ensure that the extracted feature addressing information is accurate, and use the coordinate information as the feature addressing information to provide an accurate basis for the subsequent matching process.

[0098] See also Figure 3 As shown, sending the characteristic addressing information to the latest registration center to search for target registration information includes:

[0099] Step S310, performing similarity matching between the characteristic addressing information and the latest registration information in the latest registration center;

[0100] Step S320: If the similarity calculation result is less than 100%, the target registration information does not exist in the latest registration center;

[0101] Step S330: If the similarity calculation result is equal to 100%, extracting the latest registration information corresponding to the similarity calculation result as the target registration information.

[0102] Specifically, the embodiments of the present invention improve query efficiency and response speed through similarity calculation, accurately identify the latest registration information that fully matches the feature addressing information, ensure the accuracy and uniqueness of the target registration information, set the similarity threshold to 100% and use the fully matched information as the target registration information, thereby avoiding possible misjudgment and confusion, and helping to maintain data accuracy and consistency.

[0103] Specifically, checking and repairing the transmission channel includes:

[0104] If the similarity result is greater than the first preset similarity and less than the second preset similarity, the network connectivity of the transmission channel is detected by a detection tool, and if the transmission channel is disconnected, the transmission channel is reconnected to complete the repair;

[0105] If the similarity result is less than the first preset similarity, changing the transmission channel;

[0106] The first preset similarity is smaller than the second preset similarity.

[0107] Specifically, the first preset similarity is 60%, and the second preset similarity is 90%.

[0108] Specifically, the network connectivity of the transmission channel is detected by a detection tool such as a ping tool. The ping command is used to send an ICMP echo request message to the latest registration center and wait for an echo reply. If the latest registration center responds, the network connectivity is good. If the latest registration center does not respond, the network is disconnected.

[0109] Specifically, changing the configuration parameters to send the feature addressing information to the initial registration center includes:

[0110] Obtaining the initial address information of the initial registration center;

[0111] Locate the latest address information of the latest registration center in the initial configuration parameters;

[0112] The initial address information replaces the latest address information to complete the replacement of the initial configuration parameters.

[0113] Specifically, the embodiments of the present invention more accurately judge the problem type of the transmission channel and the severity of the registration information transmission by considering the similarity result, so as to take more appropriate repair measures, which is helpful to improve the success rate and efficiency of the repair. When the similarity result is between the first and second preset similarities, the network connectivity of the transmission channel is detected by a detection tool, and real-time detection is performed on whether the channel is working normally. If a disconnection is detected, the channel is reconnected to restore data transmission. When the similarity result is lower than the first preset similarity, the transmission channel is replaced to ensure that when a problem occurs in the channel, it can be switched to other available channels in time to ensure the reliability of registration information transmission.

[0114] Specifically, the increasing coefficient to adjust the preset number of transmission channels includes:

[0115] Dividing the preset transmission efficiency by the actual transmission efficiency to obtain the increase coefficient;

[0116] The preset number is multiplied by the increase coefficient to obtain a final number, and the preset number is adjusted to the final number.

[0117] Specifically, completing the search for the target addressing information in the initial registration center includes:

[0118] Obtaining the length of the character string of the characteristic addressing information and the first data and the last data in the character string of the characteristic addressing information;

[0119] Traversing the initial registration information according to the string length, the first data and the last data, and marking the same initial registration information;

[0120] The marked initial registration information is matched with other data in the character string of the characteristic addressing information, and the initial registration information with the same matching result is obtained as the search result.

[0121] Specifically, the embodiment of the present invention gradually and rapidly narrows the search scope by first considering the string length, the first data and the last data, thereby improving the search efficiency and the accuracy of the search results, reducing the complexity of data processing, and improving the efficiency of registration information search. By combining the constraints of the string length and the first and last data, the initial registration information related to the feature addressing information can be more accurately located, reducing the possibility of misjudgment and improving the accuracy of the search results.

[0122] Specifically, transmitting the search result to the latest registration center through the transmission channel to complete the update of the latest registration center includes:

[0123] Step S610, transmitting the search result to the latest registration center through any of the transmission channels;

[0124] Step S620, testing the search result transmitted to the latest registration center, and determining whether the data is lost according to the test result;

[0125] Step S630, if the data is not lost, the latest registration center sends a confirmation message to the initial registration center to complete the update of the latest registration center;

[0126] Step S640: If the data is lost, the transmission channel is changed to transmit again.

[0127] Specifically, the embodiment of the present invention detects the search results transmitted to the latest registration center, promptly discovers data loss or damage, ensures the integrity and accuracy of the registration information, adopts the mechanism of detecting the results and sending confirmation information, confirms that the registration information has been successfully transmitted and received by the latest registration center, and ensures the reliability of data transmission. When it is detected that the registration information is lost, the transmission channel is replaced for retransmission to ensure that the registration information reaches the latest registration center through other available channels. By detecting and confirming the transmission results, errors caused by channel problems or other reasons during the transmission process are reduced, thereby improving the stability and accuracy of the registration information transmission.

[0128] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A registration center switching method based on a cloud platform, characterized in that: include: Establishing a plurality of transmission channels between the initial registration center and the latest registration center, and transmitting the initial registration information in the initial registration center to the latest registration center through the plurality of transmission channels; Receiving some addressing information from the client, and extracting some characteristic addressing information from the addressing information; Setting initial configuration parameters, sending the characteristic addressing information to the latest registration center to search for target registration information; If the target registration information is not in the latest registration center, the transmission channel is checked and repaired, the initial registration information is retransmitted, and after the first time period, the target registration information is searched again in the latest registration center; If the result of the second search is that the target registration information does not exist in the latest registration center, then the configuration parameters are changed to send the feature addressing information to the initial registration center; The target addressing information is searched in the initial registration center, and the search result is transmitted to the latest registration center through a transmission channel to complete the update of the latest registration center.

2. The registration center switching method based on the cloud platform according to claim 1 is characterized in that: Establishing several transmission channels between the initial registration center and the latest registration center includes: Obtaining the amount of initial registration information and the preset transmission efficiency in the initial registration center; Calculating a preset number of transmission channels according to the initial registration information quantity and the preset transmission efficiency; The initial registration center initiates a connection request and transmits it to the latest registration center through a preset number of transmission channels; The latest registration center monitors the connection request through an interface monitor; When the connection request is monitored, the latest registration center sends a response request to the initial registration center, and the initial registration center transmits the initial registration information after receiving the response request; The actual transmission efficiency of the initial registration information is monitored in real time, the actual transmission efficiency is compared with the preset transmission efficiency, and the preset number of the transmission channels is adjusted according to the comparison result.

3. The registration center switching method based on the cloud platform according to claim 2 is characterized in that: Adjusting the preset number of transmission channels according to the comparison result includes: When the actual transmission efficiency is less than the preset transmission efficiency, calculating an increase coefficient according to the actual transmission efficiency and the preset transmission efficiency, and adjusting the preset number of transmission channels according to the increase coefficient; When the actual transmission efficiency is greater than the preset transmission efficiency, calculating an actual difference between the actual transmission efficiency and the preset transmission efficiency, and when the actual difference is greater than the preset difference, calculating a reduction coefficient according to the actual difference and the preset difference, and adjusting the preset number of transmission channels according to the reduction coefficient; When the actual transmission efficiency is equal to the preset transmission efficiency, no adjustment is made.

4. The registration center switching method based on the cloud platform according to claim 3 is characterized in that: Extracting characteristic addressing information from the addressing information includes: dividing the addressing information according to the structure of the addressing information; Locating a position structure in the addressing information structure; Extract the coordinate information in the position structure, and use the coordinate information as the feature addressing information.

5. The registration center switching method based on the cloud platform according to claim 4 is characterized in that: Sending the characteristic addressing information to the latest registration center to search for target registration information includes: Performing similarity matching between the characteristic addressing information and the latest registration information in the latest registration center; If the similarity calculation result is less than 100%, then the target registration information does not exist in the latest registration center; If the similarity calculation result is equal to 100%, the latest registration information corresponding to the similarity calculation result is extracted as the target registration information.

6. The registration center switching method based on the cloud platform according to claim 5 is characterized in that: Checking and repairing the transmission channel includes: If the similarity result is greater than the first preset similarity and less than the second preset similarity, the network connectivity of the transmission channel is detected by a detection tool, and if the transmission channel is disconnected, the transmission channel is reconnected to complete the repair; If the similarity result is less than the first preset similarity, changing the transmission channel; The first preset similarity is smaller than the second preset similarity.

7. The registration center switching method based on the cloud platform according to claim 6 is characterized in that: Changing the configuration parameters to send the feature addressing information to the initial registration center includes: Obtaining the initial address information of the initial registration center; Locate the latest address information of the latest registration center in the initial configuration parameters; The initial address information replaces the latest address information to complete the replacement of the initial configuration parameters.

8. The registration center switching method based on the cloud platform according to claim 7 is characterized in that: The increasing coefficient to adjust the preset number of the transmission channels includes: Dividing the preset transmission efficiency by the actual transmission efficiency to obtain the increase coefficient; The preset number is multiplied by the increase coefficient to obtain a final number, and the preset number is adjusted to the final number.

9. The registration center switching method based on the cloud platform according to claim 8, characterized in that: Completing the search for the target addressing information in the initial registration center includes: Obtaining the length of the character string of the characteristic addressing information and the first data and the last data in the character string of the characteristic addressing information; Traversing the initial registration information according to the string length, the first data and the last data, and marking the same initial registration information; The marked initial registration information is matched with other data in the character string of the characteristic addressing information, and the initial registration information with the same matching result is obtained as the search result.

10. The registration center switching method based on the cloud platform according to claim 9, characterized in that: Transmitting the search result to the latest registration center through the transmission channel to complete the update of the latest registration center includes: Transmitting the search result to the latest registration center through any of the transmission channels; Testing the search results transmitted to the latest registration center, and determining whether the data is lost according to the test results; If the data is not lost, the latest registration center sends a confirmation message to the initial registration center to complete the update of the latest registration center; If the data is lost, the transmission channel is changed to transmit again.

Citation Information

Patent Citations

  • Fusion method and device of multiple registration centers

    CN114640657A

  • Service registration system and method

    CN110365750A

  • Multi-mode registration center architecture switching method in mobile environment

    CN112291099A

  • Distributed double addressing method supporting smooth transition

    CN115460207A

  • Unified management method and system for multiple types of registration centers of cloud native platform

    CN116016667A

Cited By

  • Plug-and-play intelligent reactive power compensation device structure

    CN119921350A