System positioning methods, apparatus, computer equipment, readable storage media, and program products

CN119557051BActive Publication Date: 2026-09-18BEIJING PACTERA JINXIN TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411707855.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2026-09-18
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

[0004]然而,传统技术中,由于对业务系统进行访问所依据的域名是固定的,导致对分布式系统中的业务系统进行访问的性能较低

Benefits of technology

[0056]The aforementioned system positioning method, apparatus, computer equipment, computer-readable storage medium, and computer program product, in response to an access request initiated by a first business system, acquire first location information corresponding to the first business system and system type information carried in the access request; determine candidate second business systems based on the system type information, and determine second location information corresponding to each candidate second business system; determine the matching degree of the first location information and the second location information according to a preset path matching strategy, and determine the second business system among the candidate second business systems based on the matching degree; the matching degree is used to reflect the distance between the first business system and the second business system. Using this method, the locations of the first business system and each candidate second business system are identified through the first and second location information, enabling the selection of the access location of the second business system based on the positional relationship between the first and second location information. This allows the candidate second business system closest to the first business system to be determined as the target system corresponding to the access request, and access is performed using the second business system closest to the first business system, which can improve the performance of accessing business systems in a distributed system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557051B_ABST
    Figure CN119557051B_ABST
Patent Text Reader

Abstract

This application relates to a system location method, apparatus, computer device, computer-readable storage medium, and computer program product. The method includes: responding to an access request initiated by a first business system, obtaining first location information corresponding to the first business system and system type information carried in the access request; determining candidate second business systems based on the system type information, and determining second location information corresponding to each candidate second business system; determining the matching result between the first location information and each second location information according to a preset path matching strategy, and determining the second business system among the candidate second business systems based on the matching result; and sending the address information of the second business system to the first business system; the address information is used to guide the first business system to access the second business system. This method can improve the performance of accessing business systems in a distributed system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of distributed systems technology, and in particular to a system positioning method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] With the development of distributed computing and cloud computing technologies, enterprise internal systems are increasingly using diversified distributed systems with multiple locations, centers, regions, and units. These distributed systems include multiple business systems, each deployed in different areas of data centers in different regions.

[0003] In traditional technology, technicians manually configure the mapping between domain names and instances to access business systems in a distributed system. Specifically, for a given business system, each instance of that business system deployed in a data center in each region corresponds to a fixed domain name. When other business systems need to access that business system, they use this fixed domain name to connect to the instance of that business system and thus gain access.

[0004] However, in traditional technologies, the domain names used to access business systems are fixed, resulting in low performance when accessing business systems in distributed systems. Summary of the Invention

[0005] Therefore, it is necessary to provide a system positioning method, apparatus, computer equipment, computer-readable storage medium, and computer program product to address the aforementioned technical problems.

[0006] Firstly, this application provides a system positioning method, including:

[0007] In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request;

[0008] Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined.

[0009] The matching results of the first location information and each of the second location information are determined according to the preset path matching strategy, and the second business system is determined in each of the candidate second business systems through the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system.

[0010] In one embodiment, before obtaining the first location information corresponding to the first business system and the system type information carried in the access request in response to the access request initiated by the first business system, the method further includes:

[0011] Obtain deployment information for each business system;

[0012] The system deployment structure is constructed based on the deployment information, and the location information corresponding to each of the business systems is determined based on the system deployment structure.

[0013] For each of the aforementioned business systems, the location information is stored in that business system.

[0014] In one embodiment, determining candidate second service systems based on the system type information and determining the second location information corresponding to each candidate second service system includes:

[0015] In the system deployment structure, a candidate second business system corresponding to the system type information is determined; the candidate second business system includes a corresponding candidate system instance.

[0016] Based on the candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

[0017] In one embodiment, determining the matching result between the first location information and each of the second location information according to a preset path matching strategy, and determining the second business system in each of the candidate second business systems based on the matching result, includes:

[0018] Based on the target identifier in the first location information, the location identifiers at different levels in the first location information are split to obtain the number of multi-level location identifiers and the number of first identifiers;

[0019] Based on the first number of identifiers, the location identifiers at multiple levels are recombined to obtain multiple recombined location information;

[0020] For each of the reconstructed location information, the reconstructed location information is matched with each of the second location information, and a second business system is determined in each of the candidate second business systems based on the matching result.

[0021] In one embodiment, the recombining of the multi-level location identifiers based on the first identifier quantity to obtain multiple recombined location information includes:

[0022] The first identifier quantity is re-divided according to a decreasing strategy to obtain multiple second identifier quantities;

[0023] For each number of the second identifiers, based on the location identifiers at each level, reconstructed location information corresponding to the number of the second identifiers is constructed according to a preset hierarchical priority, thereby obtaining reconstructed location information for each number of the second identifiers.

[0024] In one embodiment, the step of matching each piece of reconstructed location information with each piece of second location information, and determining a second service system in each of the candidate second service systems based on the matching results, includes:

[0025] According to the matching order of the path length of the recombined location information from largest to smallest, each recombined location information is matched with each second location information in turn until the matching result is that the recombined location information and the second location information are successfully matched;

[0026] The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system.

[0027] Secondly, this application also provides a system positioning device, comprising:

[0028] The first acquisition module is used to respond to an access request initiated by the first business system and acquire the first location information corresponding to the first business system and the system type information carried in the access request.

[0029] The first determining module is used to determine candidate second business systems based on the system type information, and to determine the second location information corresponding to each candidate second business system;

[0030] The access module is used to determine the matching result between the first location information and each of the second location information according to a preset path matching strategy, and to determine the second business system in each of the candidate second business systems through the matching result, and to send the address information of the second business system to the first business system; the address information is used to guide the first business system to access the second business system.

[0031] In one embodiment, the device further includes:

[0032] The second acquisition module is used to acquire deployment information corresponding to each business system;

[0033] The second determining module is used to construct a system deployment structure based on the deployment information, and to determine the location information corresponding to each of the business systems based on the system deployment structure.

[0034] A storage module is used to store the location information in each of the aforementioned business systems.

[0035] In one embodiment, the first determining module is specifically used to determine, in the system deployment structure, a candidate second business system corresponding to the system type information; the candidate second business system includes a corresponding candidate system instance;

[0036] Based on the candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

[0037] In one embodiment, the access module is specifically used to split the location identifiers at different levels in the first location information according to the target identifier in the first location information, so as to obtain the number of multi-level location identifiers and the number of first identifiers;

[0038] Based on the first number of identifiers, the location identifiers at multiple levels are recombined to obtain multiple recombined location information;

[0039] For each of the reconstructed location information, the reconstructed location information is matched with each of the second location information, and a second business system is determined in each of the candidate second business systems based on the matching result.

[0040] In one embodiment, the access module is specifically used to redivide the first number of identifiers according to a decreasing strategy to obtain a plurality of second number of identifiers;

[0041] For each number of the second identifiers, based on the location identifiers at each level, reconstructed location information corresponding to the number of the second identifiers is constructed according to a preset hierarchical priority, thereby obtaining reconstructed location information for each number of the second identifiers.

[0042] In one embodiment, the access module is specifically used to match each piece of reconstructed location information with each piece of second location information in descending order of path length of the reconstructed location information, until the matching result is that the reconstructed location information and the second location information are successfully matched;

[0043] The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system.

[0044] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0045] In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request;

[0046] Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined.

[0047] The matching results of the first location information and each of the second location information are determined according to the preset path matching strategy, and the second business system is determined in each of the candidate second business systems through the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system.

[0048] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0049] In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request;

[0050] Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined.

[0051] The matching results of the first location information and each of the second location information are determined according to the preset path matching strategy, and the second business system is determined in each of the candidate second business systems through the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system.

[0052] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0053] In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request;

[0054] Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined.

[0055] The matching results of the first location information and each of the second location information are determined according to the preset path matching strategy, and the second business system is determined in each of the candidate second business systems through the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system.

[0056] The aforementioned system positioning method, apparatus, computer equipment, computer-readable storage medium, and computer program product, in response to an access request initiated by a first business system, acquire first location information corresponding to the first business system and system type information carried in the access request; determine candidate second business systems based on the system type information, and determine second location information corresponding to each candidate second business system; determine the matching degree of the first location information and the second location information according to a preset path matching strategy, and determine the second business system among the candidate second business systems based on the matching degree; the matching degree is used to reflect the distance between the first business system and the second business system. Using this method, the locations of the first business system and each candidate second business system are identified through the first and second location information, enabling the selection of the access location of the second business system based on the positional relationship between the first and second location information. This allows the candidate second business system closest to the first business system to be determined as the target system corresponding to the access request, and access is performed using the second business system closest to the first business system, which can improve the performance of accessing business systems in a distributed system. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 This is an application environment diagram of the system positioning method in one embodiment;

[0059] Figure 2 This is a flowchart illustrating a system positioning method in one embodiment;

[0060] Figure 3 This is a flowchart illustrating the process of constructing a system deployment structure and generating location information in one embodiment.

[0061] Figure 4 This is a schematic diagram of the system deployment structure in one embodiment;

[0062] Figure 5 This is a schematic diagram illustrating the unified entry and exit points of domain nodes in one embodiment;

[0063] Figure 6 This is a schematic diagram illustrating the region division, business system deployment, and path description in one embodiment.

[0064] Figure 7This is a schematic diagram of a process for determining the second location information of a candidate second business system using a registration mechanism in one embodiment;

[0065] Figure 8 This is a schematic diagram of the registration mechanism in one embodiment;

[0066] Figure 9 A schematic diagram of the process for determining a second business system based on the matching result of first location information and second location information in one embodiment;

[0067] Figure 10 This is a schematic diagram of the process for constructing reconstructed location information in one embodiment;

[0068] Figure 11 This is a schematic diagram of the process for determining the second business system based on the matching of reconstructed location information and second location information in one embodiment.

[0069] Figure 12 This is a flowchart illustrating an example of a system positioning method in one embodiment;

[0070] Figure 13 This is a structural block diagram of the system positioning device in one embodiment;

[0071] Figure 14 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0072] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0073] The system positioning method provided in the embodiments of this application, such as Figure 1As shown, this can be applied to a distributed system environment. The distributed system includes a system management terminal 102, a first business system 104, and a second business system 106. The system management terminal 102 can be integrated into either the first business system 104 or the second business system 106, or it can be deployed on a separate server to manage the business systems within the distributed system. The first business system 104 and the second business system 106 each include a data storage system for storing the data that the first business system 104 or the second business system 106 needs to process. The data storage system can be integrated into the first business system 104 or the second business system 106, or it can be located in the cloud or on other network servers. The system management terminal 102 responds to the access request initiated by the first business system 104, obtains the first location information corresponding to the first business system 104 and the system type information carried in the access request; determines the candidate second business system based on the system type information, and determines the second location information corresponding to each candidate second business system; determines the matching result of the first location information and each second location information according to the preset path matching strategy, and determines the second business system 106 among the candidate second business systems through the matching result, and accesses the second business system 106.

[0074] In one exemplary embodiment, such as Figure 2 As shown, a system location method is provided. Taking the application of this method to a system management terminal as an example, the method includes the following steps 202 to 206. Wherein:

[0075] Step 202: In response to the access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request.

[0076] In this embodiment of the application, the first business system is the business system that initiates the access request in the distributed system. The access request contains at least system type information, which is used to identify the system type of the target system to be accessed by the access request. For example, taking the first business system as an order system as an example, after the user submits an order in the order system, the order system first needs to determine the inventory of the goods. Therefore, the access request can be a request to check the inventory of the goods, and the system type information is the product system.

[0077] The system management terminal includes a system location component, which pre-stores information such as the system type, location, and system address of each business system. The system location component monitors each business system in the distributed system in real time through a service discovery mechanism. After the first business system initiates an access request, the system management terminal receives and parses the request to determine the system type information carried in the request, thus identifying the type of business system the first business system is trying to access. Simultaneously, the system management terminal can determine the first segment of location information of the first business system initiating the access request from the stored location information of the business systems. Optionally, the access request initiated by the first business system can also carry its first location information, allowing the system management terminal to directly determine the first location information of the first business system after parsing the access request.

[0078] Step 204: Determine candidate second business systems based on system type information, and determine the second location information corresponding to each candidate second business system.

[0079] In this embodiment, since the distributed system contains multiple business systems for processing different services, the system management terminal uses a system location component to match the system type information carried in the access request among all stored business systems. This allows for the filtering of all candidate second business systems corresponding to the system type information from the full set of business systems. Each candidate second business system can be deployed on servers in different data centers or on servers in different business areas within the same data center. Furthermore, the system management terminal can determine the second location information corresponding to each second business system by matching the candidate second business system with the location information corresponding to each business system. For example, a second business system can be a product system. In a multi-location, multi-center scenario, the product system can be deployed in data centers in regions A, B, and C, and different business areas within each data center in each region may not simultaneously contain product systems. Therefore, the second location information corresponding to the product system could be "Region A / Availability Zone 1 / Business Area 1", "Region B / Availability Zone 1 / Business Area 1", "Region A / Availability Zone 1 / Business Area 2", "Region A / Availability Zone 1 / Business Area 3", etc.

[0080] Step 206: Determine the matching results of the first location information and each second location information according to the preset path matching strategy, and determine the second business system in each candidate second business system through the matching results, and send the address information of the second business system to the first business system.

[0081] The address information is used to guide the first business system to access the second business system.

[0082] In this embodiment, after obtaining the first location information of the first business system and the second location information of all second business systems, the system management terminal can identify the distance between the first business system and each of the second business systems according to the matching results of the first and second location information. The distance between the first business system and each of the second business systems reflects the performance of the first business system when accessing different candidate second business systems. Therefore, the system management terminal can filter candidate second business systems based on the matching results of the first and second location information. This matching result can be the order in which the first and second location information are successfully matched. Optionally, the matching result can also be the similarity between the first and second location information determined by a similarity matching algorithm (e.g., cosine similarity, Euclidean distance, etc.), or it can be the matching result obtained by matching intermediate information extracted from the first and second location information according to a preset hierarchical strategy. This matching result can be a matching degree; a higher matching degree indicates a smaller distance between the first business system and the candidate second business systems.

[0083] When accessing the first business system, accessing a candidate second business system that is closer in distance (i.e., the candidate second business system with a higher matching degree or the first successful match) will have better access performance than accessing a candidate second business system that is farther away. Therefore, the system management terminal determines the candidate second business system with the highest matching degree or the first successful match based on the matching degree, and determines the address information corresponding to the second business system based on the second location information of the second business system. The address information corresponding to the second business system can be any one of IP (Internet Protocol) address, domain name, port number, or URL (Uniform Resource Locator). This application embodiment does not limit the type of address information.

[0084] After the system management terminal determines the address information of the second business system, it can feed back this address information to the first business system, allowing the first business system to send access requests to the second business system based on its address information. Optionally, the system management terminal can also feed back the address information of the second business system to the communication layer of the first business system's gateway.

[0085] In the above system positioning method, the locations of the first business system and each candidate second business system are identified by the first location information and the second location information. Based on the first location information and the second location information, the access location of the second business system can be selected according to the location relationship. Then, the candidate second business system that is closest to the first business system is determined as the target system corresponding to the access request. Using the second business system that is closest to the first business system for access can improve the performance of accessing business systems in the distributed system.

[0086] In an exemplary embodiment, before determining the location relationship between the first business system and the second business system that initiated the access request using location information, it is necessary to pre-build the location information of each business system and store the association between the location information and the deployment information of each business system. For example... Figure 3 As shown, before step 202, the method further includes steps 302 to 306. Wherein:

[0087] Step 302: Obtain the deployment information corresponding to each business system.

[0088] In this embodiment, the system management terminal needs to obtain the deployment information of all business systems in the distributed system. The deployment information of the business systems may include the data center location, availability zone, business zone, and server information of the server where the business system is located. The data center location may be the physical data center location where the business system is located, such as region A, region B, and region C; the availability zone refers to multiple availability zones within the same region, each of which is an isolated data center, usually used to improve the system's disaster recovery capability; the business zone may be different business zones within the same availability zone, each used to deploy different business systems or services; and the server information may be the server's IP address, domain name, or port number, etc.

[0089] Step 304: Construct the system deployment structure based on the deployment information, and determine the location information corresponding to each business system based on the system deployment structure.

[0090] In this embodiment, the system deployment structure includes a storage structure for regional data and entry / exit information for each region. For the storage structure of regional data, the system management terminal can use an easily expandable hierarchical structure as the storage structure for regional data, and construct the system deployment structure according to the deployment information, such as... Figure 4As shown, the system management terminal can use a tree structure to hierarchically divide the system according to the enterprise's own business characteristics. Based on the data center location, availability zone, and business zone, the deployment information of each business system is constructed into a system deployment structure with attribute storage. To meet security requirements, each data center in the distributed system has a unified entry and exit point in different zones, serving as a network security policy constraint; that is, inter-domain access to business systems can only be conducted through this unified entry and exit point.

[0091] For the entrance and exit information of each region, the system management terminal predefines the location of the unified entrance and exit for that region on each domain node, such as... Figure 5 As shown, the system management terminal pre-sets the entry address and exit address. The format of the address content of the entry address and exit address includes IP address, domain name, load address, etc. This application does not limit the format of the address content of the entry address and exit address.

[0092] After the system management terminal completes the construction of the system deployment structure, it can determine the location information corresponding to each business system according to the actual deployment location of each business system. This location information can be in the format of a "path," using separators to assemble the location of the deployment area of ​​each business system, such as... Figure 6 As shown, this includes a regional division diagram and a business system deployment diagram. The system management terminal can use the pre-built regional division and business system deployment information, such as... Figure 6 As shown, the location information of the business system can be in "path" format, such as "Shunyi Data Center / Availability Zone 1 / Business Zone 1". The separators used in the location information are not limited in this embodiment.

[0093] Step 306: For each business system, store the location information in each business system.

[0094] In this embodiment, after the system management terminal completes the definition of each business system, it writes the location information generated for each business system to the local machine of that business system. Specifically, after the system management terminal distributes the location information to each business system, the business system can write the generated location information to its local machine in the form of a configuration file. For example, taking a text file as an example, the configuration file for the location information can be "app_path=Shunyi Data Center / Availability Zone 1 / Business Zone 1". The file format of the configuration file is not limited in this embodiment. Optionally, the business system can also write the generated location information to its local machine in the form of an environment variable. For example, under a Linux system, the environment variable can be "export app_path=Shunyi Data Center / Availability Zone 1 / Business Zone 1"; under a Windows system, a key-value pair can be created on the environment variable page, where the key is "app_path" and the value is "Shunyi Data Center / Availability Zone 1 / Business Zone 1".

[0095] In this embodiment, the system deployment structure is constructed by using the detailed deployment information of each business system in the distributed system. The system management terminal can accurately determine the location information of each business system. This location information is stored in the form of hierarchical paths and is implemented locally in each business system in the form of configuration files or environment variables. This enables the system management terminal to intelligently schedule access to business systems and improve the overall performance and response speed of mutual access between business systems.

[0096] In one exemplary embodiment, such as Figure 7 As shown, step 204 includes steps 702 to 704.

[0097] in:

[0098] Step 702: In the system deployment structure, determine the candidate second business system corresponding to the system type information.

[0099] Among them, the candidate second business system includes the corresponding candidate system instance.

[0100] In this embodiment, the system management terminal filters the business systems in the system deployment structure based on the system type information, and determines the business systems whose system type information matches the system type information carried in the access request as candidate second business systems. That is, the candidate second business system is a potential target business system that matches the system type information and meets the requirements of the access request.

[0101] In the candidate second business system, the specific deployment instance is the candidate business system instance, and each candidate second business system is a collection of multiple candidate system instances. Each candidate second business system contains multiple candidate system instances, which are distributed in different data centers, availability zones, and business regions. The candidate system instance is the physical or virtual server that actually runs and processes requests.

[0102] Step 704: Based on the candidate system instances and the registration discovery mechanism, determine the second location information corresponding to each candidate second business system.

[0103] In this embodiment, the system management terminal can obtain a list of all candidate system instances containing the candidate second business system based on the instance ID, IP address, or port number of the candidate system instance using a registration discovery mechanism. This list contains the location information corresponding to each candidate system instance, and the location information of the candidate system instance is the second location information of the candidate second business system. The medium for the registration discovery mechanism includes, but is not limited to, a registration center.

[0104] like Figure 8 As shown, with System A as an independent system management terminal or an integrated system management terminal within the first business system, System A can utilize the registration discovery mechanism to identify the second candidate business system with system type information of System B among the registered systems in the registration center, and obtain the corresponding candidate system instances of System B, namely System B(IP1), System B(IP2), and System B(IP3). Furthermore, System A can determine the second location information corresponding to each candidate system instance in the registration center.

[0105] In this embodiment, by using the second location information of each candidate system instance of the candidate second business system in the registration center as the second location information of the candidate second business system, the distance between the first business system and the candidate second system in different deployment locations can be quantified, which can be used as the basis for selecting the second business system, thereby improving the rationality and accuracy of the selection of the second business system and improving the access performance of the second business system.

[0106] In one exemplary embodiment, such as Figure 9 As shown, step 206 includes steps 902 to 906.

[0107] in:

[0108] Step 902: Based on the target identifier in the first location information, split the location identifiers of different levels in the first location information to obtain the number of multi-level location identifiers and the number of first identifiers.

[0109] In this embodiment, the target identifier is a separator used to generate the first location information, such as " / ". This target identifier is used to isolate location information at different levels to distinguish the subordinate relationship between different levels of location information. After the system management terminal obtains the first location information, it splits the positional relationship corresponding to each target identifier in the first location information according to the target identifier to obtain multi-level location identifiers. The number of location identifiers is used as the number of first identifiers, and the number of first identifiers is used as the array length. An array is created according to the array length, and each location identifier is stored in the array. For example, if the first location information is "bj1 / idc1 / az1", then the number of first identifiers is 3. An array of length 3 is created according to the number of first identifiers, and the location identifiers "bj1", "idc1", and "az1" at different levels are split and stored in the array according to the target identifier, which is ["bj1", "idc1", "az1"].

[0110] Step 904: Based on the first number of identifiers, the multi-level location identifiers are recombined to obtain multiple recombined location information.

[0111] In this embodiment of the application, the system management terminal recombines the multi-level location identifiers according to a hierarchical combination method using a first identifier quantity (i.e., the number of location identifiers) to generate multiple recombined location information. For example, the multi-level location identifiers are ["bj1", "idc1", "az1"], the first identifier quantity is 3, and the recombined location information includes "bj1", "bj1 / idc1", and "bj1 / idc1 / az1".

[0112] Step 906: For each recombined location information, match the recombined location information with each second location information, and determine the second business system based on the matching results.

[0113] In this embodiment, the system management terminal matches each reassembled path with each second location information to obtain the matching result between the first location information and each second location information. Then, based on the distance reflected in the matching result, a second business system can be selected from the candidate second business systems. The matching result can be a matching degree, such as the similarity or overlap of paths, or it can be the first successfully matched second candidate business system.

[0114] In this embodiment, recombined location information is obtained by reassembling multi-level location identifiers, and the matching result between the recombined location information and the second location information is obtained. This provides a data foundation for selecting the second business system, enabling the system management terminal to flexibly select the second business system according to the matching result. Based on the matching result, the most suitable second business system with the first business system can be determined, improving the performance of accessing the second business system. Furthermore, when the service of the second business system is unavailable, the first business system can flexibly select other candidate second business systems while initiating an access request. Therefore, it can also improve the stability and disaster recovery capability of inter-business system access.

[0115] In one exemplary embodiment, such as Figure 10 As shown, step 904 includes steps 1002 to 1004. Wherein:

[0116] Step 1002: The number of first identifiers is re-divided according to the decreasing strategy to obtain multiple numbers of second identifiers.

[0117] In this embodiment of the application, the system management terminal can perform loop processing on the first identifier quantity according to the decrementing strategy, and decrement the first identifier quantity by one in each loop to obtain a new first identifier quantity, i.e., the second identifier quantity. For example, array.length represents the first identifier quantity, and the loop processing can be a for loop, for example, "for int i = array.length; i > -1; i--", which means that the first identifier quantity is decremented by one in each loop.

[0118] Step 1004: For each number of second identifiers, construct the recombined location information corresponding to the number of second identifiers according to the location identifiers of each level and according to the preset level priority, so as to obtain the recombined location information corresponding to each number of second identifiers.

[0119] In this embodiment, the system management terminal can use the index value of the location identifier in each array as a preset hierarchical priority. For example, in a multi-level location identifier ["bj1", "idc1", "az1"], the index value of "bj1" is 0, the index value of "idc1" is 1, and the index value of "az1" is 2. The smaller the index value of the location identifier, the higher the hierarchical level of the location identifier. For the number of second identifiers in each loop, the system management terminal can construct the recombined location information for each number of second identifiers according to the preset hierarchical priority from largest to smallest. For example, when iteratively dividing the first identifier count (which is 3) of the multi-level location identifiers ["bj1", "idc1", "az1"] according to a decreasing strategy, the first iteration of the for loop divides it into 3, meaning the current iteration has 3 second identifiers. Following the preset hierarchical priority from largest to smallest, the recombined location information corresponding to the 3 second identifiers is constructed as "bj1 / idc1 / az1". In the second iteration of the for loop, the first identifier count is divided into 2, meaning the current iteration has 2 second identifiers. Following the preset hierarchical priority from largest to smallest, the recombined location information corresponding to the 2 second identifiers is constructed as "bj1 / idc1". In the third iteration of the for loop, the first identifier count is divided into 1, meaning the current iteration has 1 second identifier. Following the preset hierarchical priority from largest to smallest, the recombined location information corresponding to the 1 second identifier is constructed as "bj1".

[0120] In this embodiment, the number of first identifiers is re-divided by a decreasing strategy, and reconstructed location information is constructed according to a preset hierarchical priority. The system management terminal can systematically generate multi-level reconstructed location information, which not only improves the parsing and reconstructing efficiency of location information, but also enhances the flexibility and efficiency of selecting the second business system under multi-level location identifiers.

[0121] In one exemplary embodiment, such as Figure 11 As shown, step 906 includes steps 1102 to 1104. Wherein:

[0122] Step 1102: According to the matching order of the path length of the recombined location information from largest to smallest, each recombined location information is matched with each second location information in turn until the matching result is that the recombined location information and the second location information are successfully matched.

[0123] The path length is the number of second identifiers corresponding to the location identifiers contained in the reconstructed location information.

[0124] In this embodiment of the application, in each loop that constructs the recombined location information corresponding to the number of second identifiers, the recombined location information is matched with each second location information by a string matching method. Taking the fuzzy matching method as an example, in each loop, the system management terminal judges the generated recombined location information. In the strings contained in each second location information, if the index value of the successfully matched position is greater than or equal to 0, it is considered a match.

[0125] In an exemplary embodiment, the first location information of the first business system is "bj1 / idc1 / az1", which is then divided into multiple levels of location identifiers as ["bj1", "idc1", "az1"]. The second location information includes "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2". In the first loop, according to the matching order of the path length of the reconstructed location information from largest to smallest, the first constructed reconstructed location information is "bj1 / idc1 / az1". At this time, when performing fuzzy matching between the reconstructed location information "bj1 / idc1 / az1" and each of the second location information, only the matching result of the second location information "bj1 / idc1 / az1" and the reconstructed location information is equal.

[0126] If the first location information of the first business system is "bj1 / idc2 / az1", it is split into multi-level location identifiers as ["bj1", "idc2", "az1"]. The second location information includes "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2". In the first loop, according to the matching order of the path length of the recombined location information from largest to smallest, the first constructed recombined location information is "bj1 / idc2 / az1". At this time, after performing fuzzy matching between the recombined location information "bj1 / idc1 / az1" and each of the second location information, the matching result of each second location information with the recombined location information is a failure. Then, the system management terminal performs the next loop, reduces the path length by one, and obtains the new recombined location information as "bj1 / idc2". Then, based on the new recombined location information, fuzzy matching is performed with each of the second location information, and finally, the matching result of the second location information "bj1 / idc2 / az2" with the new recombined location information is determined to be a successful match.

[0127] Step 1104: The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system.

[0128] In this embodiment, since each loop divides the number of first identifiers according to a decreasing strategy, each loop processes the recombined location information in descending order of path length. Therefore, after determining the recombined location information, the system management terminal can also match the recombined location information in the current loop with each second location information to obtain the matching result. Furthermore, if the matching result shows that the recombined location information and the second location information are equal, since the matching order is from largest to smallest path length, the first matched second location information equal to the recombined location information is considered the second location information closest to the first location information of the first business system.

[0129] In this embodiment, by matching the path lengths of the recombined location information in descending order, each recombined location information is sequentially matched with each second location information. The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system. The second business system can be determined using a fixed preset path matching strategy, which is suitable for screening candidate second business systems in various scenarios, improves the efficiency of determining the second business system, and thus improves the efficiency of accessing the second business system in the distributed system.

[0130] In a specific embodiment, such as Figure 12 As shown, an example of a system localization method is provided, wherein:

[0131] Step 1201: Obtain the first location information corresponding to the first business system;

[0132] Step 1202: Obtain the second location information corresponding to multiple candidate second business systems;

[0133] Step 1203: Split the first location information according to the delimiter and store it as an array of location identifiers;

[0134] Step 1204: Decrement the number of position identifiers in the array according to the decreasing strategy of decreasing the number of the first identifiers in the array to obtain the new number of the first identifiers;

[0135] Step 1205: In each loop iteration, the position identifiers in the array are reassembled and assembled according to the number of the first identifiers and the loop body to obtain the reassembled position information in string form;

[0136] Step 1206: Match the reconstructed location information with the second location information to obtain the matching result;

[0137] Step 1207: Determine whether there is second location information that matches the recombined location information; if there is second location information that matches the recombined location information, proceed to step 1208; if there is no second location information that matches the recombined location information, proceed to step 1204.

[0138] Step 1208: The candidate second business system corresponding to the second location information that matches the recombined location information is determined as the second business system.

[0139] In a specific embodiment, the example of a first business system's service A (request source) accessing a second business system's service B (destination service) is used for illustration, including:

[0140] Scenario 1: The number of location identifiers in the first location information of the first business system is the same as the number of location identifiers in the second location information of the second business system. The first location information is "bj1 / idc1 / az1", and the candidate second location information includes "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2". First, the system management terminal divides the array using the separator " / ", resulting in an array ["bj1", "idc1", "az1"]. Then, the system management terminal assembles the elements (location identifiers) according to the array length and in order to obtain the recombined location information "bj1 / idc1 / az1". Finally, the system management terminal performs fuzzy matching on each candidate second location information "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2" according to the reorganized location information. The matching result is the candidate second location information "bj1 / idc1 / az1" that is successfully matched. That is, the candidate second business system corresponding to "bj1 / idc1 / az1" is taken as the second business system, and the address of the second business system is used as the address for the next step of the access request.

[0141] Specifically, for each candidate second position information and the matching results of different recombined position information, the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 0; the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az2", and the resulting fuzzy matching result (integer) is -1; the recombined position information "bj1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 0; the recombined position information "idc1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 4.

[0142] Scenario 2: The number of location identifiers in the first location information of the first business system is greater than the number of location identifiers in the second location information of the second business system. The first location information is "bj1 / idc1 / az1", and the candidate second location information includes "bj1 / idc1" and "bj1 / idc2 / az1". First, the system management terminal splits the array using the separator " / ", resulting in an array ["bj1", "idc1", "az1"]. Then, the system management terminal decrements the array length by 1 and assembles the elements (location identifiers) in order to obtain "bj1 / idc1". Finally, the system management terminal performs fuzzy matching on each candidate second location information "bj1 / idc1" and "bj1 / idc2 / az1" according to the recombined location information. The candidate second location information "bj1 / idc1" with a successful match is selected as the second business system. Since the number of location identifiers contained in the first and second location information is different, the address of service B is the exit address of this domain, that is, the exit address of bj1 / idc1 / az1. This exit address is obtained by setting the exit address when constructing the system deployment structure. If no exit address is set, the entry address of the other party's area (the business area where the second business system is located) is used, that is, the entry address of bj1 / idc1 is used as the address for the next step of the access request.

[0143] Scenario 3: The number of location identifiers in the first location information of the first business system is less than the number of location identifiers in the second location information of the second business system. The first location information is "bj1 / idc1 / az1", and the candidate second location information includes "bj1 / idc1 / az1 / zon1", "bj1 / idc1 / az2", and "bj1 / idc2 / az1". First, the system management terminal splits the array using the separator " / ", resulting in an array ["bj1", "idc1", "az1"]. Then, the system management terminal assembles the elements (location identifiers) according to the array length and in order to obtain the recombined location information "bj1 / idc1 / az1". Finally, the system management terminal performs fuzzy matching on each candidate second location information "bj1 / idc1 / az1 / zon1", "bj1 / idc1 / az2", and "bj1 / idc2 / az1" according to the recombined location information. The matching result is the candidate second location information "bj1 / idc1 / az1 / zone1" that is successfully matched. That is, the candidate second business system corresponding to "bj1 / idc1 / az1 / zone1" is the second business system. Since the number of location identifiers contained in the first location information and the second location information is different, the address of service B is the exit address of this domain, that is, the exit address of (bj1 / idc1 / az1 / zone1). This exit address is obtained by setting the exit address when constructing the system deployment structure. If no exit address is set, the entry address of the other party's area (the business area where the second business system is located) is used, that is, the entry address of (bj1 / idc1 / az1 / zone1) as the address for the next step of the access request.

[0144] Specifically, for each candidate second position information and the matching results of different recombined position information, the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 0; the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az2", and the resulting fuzzy matching result (integer) is -1; the recombined position information "bj1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 0; the recombined position information "idc1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 4.

[0145] Scenario 4: The first location information of the first business system does not match the second location information of the second business system. The first location information is "bj1 / idc1 / az1", and the candidate second location information includes "bj1 / idc1 / az2", "bj1 / idc1 / az3", and "bj1 / idc2 / az1". First, the system management terminal splits the array using the separator " / ", resulting in ["bj1", "idc1", "az1"]. Then, the system management terminal assembles the elements (location identifiers) according to the array length and in order to obtain the recombined location information "bj1 / idc1 / az1". However, the recombined location information "bj1 / idc1 / az1" fails to match any of the candidate second location information. Therefore, the next round of recombined location information "bj1 / idc1" is obtained according to the decreasing strategy, and matching is performed based on "bj1 / idc1". Finally, the system management terminal performs fuzzy matching on each candidate second location information "bj1 / idc1 / az2", "bj1 / idc1 / az3", and "bj1 / idc2 / az1" according to the reorganized location information, and obtains the successfully matched candidate second location information "bj1 / idc1 / az2" and "bj1 / idc1 / az3". At this time, the candidate second location information "bj1 / idc1 / az2" and "bj1 / idc1 / az3" have no difference in positional relationship with the first location information. Therefore, the system management terminal can determine the second business system in the candidate second business system corresponding to the candidate second location information "bj1 / idc1 / az2" and "bj1 / idc1 / az3" according to the load balancing algorithm. Since the number of location identifiers contained in the first location information and the second location information is different, the address of service B is the exit address of this domain, that is, the exit address of (bj1 / idc1 / az1), which is obtained by setting the exit address when constructing the system deployment structure; if no exit address is set, the entry address of the other party's area (the business area where the second business system is located), that is, the entry address of (bj1 / idc1 / az1 / zone1), is used as the address for the next step of the access request.

[0146] Specifically, for each candidate second position information and the matching results of different recombined position information, the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az2", and the resulting fuzzy matching result (integer) is -1; the recombined position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az2", and the resulting fuzzy matching result (integer) is -1; the recombined position information "bj1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 0; the recombined position information "idc1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the resulting fuzzy matching result (integer) is 4.

[0147] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0148] Based on the same inventive concept, this application also provides a system positioning device for implementing the system positioning method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more system positioning device embodiments provided below can be found in the limitations of the system positioning method described above, and will not be repeated here.

[0149] In one exemplary embodiment, such as Figure 13 As shown, a system positioning device 1300 is provided, including: a first acquisition module 1301, a first determination module 1302, and an access module 1303, wherein:

[0150] The first acquisition module 1301 is used to respond to the access request initiated by the first business system and acquire the first location information corresponding to the first business system and the system type information carried in the access request.

[0151] The first determining module 1302 is used to determine candidate second business systems based on system type information, and to determine the second location information corresponding to each candidate second business system;

[0152] Access module 1303 is used to determine the matching result of the first location information and each second location information according to the preset path matching strategy, and to determine the second business system among each candidate second business system through the matching result, and to send the address information of the second business system to the first business system; the address information is used to guide the first business system to access the second business system.

[0153] In one embodiment, the device 1300 further includes:

[0154] The second acquisition module is used to acquire deployment information corresponding to each business system;

[0155] The second determining module is used to construct the system deployment structure based on the deployment information, and to determine the location information corresponding to each business system based on the system deployment structure.

[0156] The storage module is used to store location information for each business system.

[0157] In one embodiment, the first determining module 1302 is specifically used to determine, in the system deployment structure, a candidate second business system corresponding to the system type information; the candidate second business system includes a corresponding candidate system instance;

[0158] Based on candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

[0159] In one embodiment, the access module 1303 is specifically used to split the location identifiers of different levels in the first location information according to the target identifier in the first location information, so as to obtain the number of multi-level location identifiers and the number of first identifiers;

[0160] Based on the first number of identifiers, the location identifiers of multiple levels are recombined to obtain multiple recombined location information;

[0161] For each recombined location information, the recombined location information is matched with each second location information, and the second business system is determined from each candidate second business system based on the matching results.

[0162] In one embodiment, the access module 1303 is specifically used to redivide the first identifier quantity according to a decreasing strategy to obtain a plurality of second identifier quantities;

[0163] For each number of second identifiers, based on the location identifiers of each level, the recombined location information corresponding to the number of second identifiers is constructed according to the preset hierarchical priority, thus obtaining the recombined location information for each number of second identifiers.

[0164] In one embodiment, the access module 1303 is specifically used to match each reconstructed location information with each second location information in descending order of path length of the reconstructed location information, until the matching result is that the reconstructed location information and the second location information are successfully matched.

[0165] The candidate second business system corresponding to the second location information that successfully matches the reorganized location information is determined as the second business system.

[0166] Each module in the aforementioned system positioning device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0167] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 14 As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores location information data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements a system positioning method.

[0168] Those skilled in the art will understand that Figure 14 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0169] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0170] In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request;

[0171] Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined.

[0172] The matching results of the first location information and each of the second location information are determined according to the preset path matching strategy, and the second business system is determined in each of the candidate second business systems through the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system.

[0173] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0174] Obtain deployment information for each business system;

[0175] The system deployment structure is constructed based on the deployment information, and the location information corresponding to each of the business systems is determined based on the system deployment structure.

[0176] For each of the aforementioned business systems, the location information is stored in that business system.

[0177] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0178] In the system deployment structure, a candidate second business system corresponding to the system type information is determined; the candidate second business system includes a corresponding candidate system instance.

[0179] Based on the candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

[0180] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0181] Based on the target identifier in the first location information, the location identifiers at different levels in the first location information are split to obtain the number of multi-level location identifiers and the number of first identifiers;

[0182] Based on the first number of identifiers, the location identifiers at multiple levels are recombined to obtain multiple recombined location information;

[0183] For each of the reconstructed location information, the reconstructed location information is matched with each of the second location information, and a second business system is determined in each of the candidate second business systems based on the matching result.

[0184] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0185] The first identifier quantity is re-divided according to a decreasing strategy to obtain multiple second identifier quantities;

[0186] For each number of the second identifiers, based on the location identifiers at each level, reconstructed location information corresponding to the number of the second identifiers is constructed according to a preset hierarchical priority, thereby obtaining reconstructed location information for each number of the second identifiers.

[0187] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0188] According to the matching order of the path length of the recombined location information from largest to smallest, each recombined location information is matched with each second location information in turn until the matching result is that the recombined location information and the second location information are successfully matched;

[0189] The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system.

[0190] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0191] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0192] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0193] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0194] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0195] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A system positioning method, characterized in that, The method includes: In response to an access request initiated by the first business system, obtain the first location information corresponding to the first business system and the system type information carried in the access request; Based on the system type information, candidate second business systems are determined, and second location information corresponding to each candidate second business system is determined. The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy. The second business system is determined in each of the candidate second business systems based on the matching results. The address information of the second business system is sent to the first business system. The address information is used to guide the first business system to access the second business system. When the number of location identifiers contained in the first location information and the second location information is inconsistent, the exit address of the domain node where the first business system is located or the entry address of the domain node where the second business system is located is obtained, and the exit address or the entry address is used as the address information. Before responding to an access request initiated by the first business system and obtaining the first location information corresponding to the first business system and the system type information carried in the access request, the method further includes: Obtain deployment information for each business system; The system deployment structure is constructed based on the deployment information, and the location information corresponding to each business system is determined based on the system deployment structure; the system deployment structure includes unified entry and exit information defined for each domain node, and the entry and exit information includes entry address and exit address; For each of the aforementioned business systems, the location information is stored in each of the aforementioned business systems; The step of determining the matching result between the first location information and each of the second location information according to a preset path matching strategy, and determining the second business system in each of the candidate second business systems based on the matching result, includes: Based on the target identifier in the first location information, the location identifiers at different levels in the first location information are split to obtain the number of multi-level location identifiers and the number of first identifiers; Based on the first number of identifiers, the location identifiers at multiple levels are recombined to obtain multiple recombined location information; For each of the reconstructed location information, the reconstructed location information is matched with each of the second location information, and a second business system is determined in each of the candidate second business systems based on the matching result.

2. The method according to claim 1, characterized in that, The step of determining candidate second service systems based on the system type information and determining the second location information corresponding to each candidate second service system includes: In the system deployment structure, a candidate second business system corresponding to the system type information is determined; the candidate second business system includes a corresponding candidate system instance. Based on the candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

3. The method according to claim 1, characterized in that, The recombination of the multi-level location identifiers based on the first identifier quantity yields multiple recombined location information, including: The first identifier quantity is re-divided according to a decreasing strategy to obtain multiple second identifier quantities; For each number of the second identifiers, based on the location identifiers at each level, reconstructed location information corresponding to the number of the second identifiers is constructed according to a preset hierarchical priority, thereby obtaining reconstructed location information for each number of the second identifiers.

4. The method according to claim 1, characterized in that, The step of matching each reconstructed location information with each of the second location information, and determining the second service system in each of the candidate second service systems based on the matching results, includes: According to the matching order of the path length of the recombined location information from largest to smallest, each recombined location information is matched with each second location information in turn until the matching result is that the recombined location information and the second location information are successfully matched; The candidate second business system corresponding to the second location information that successfully matches the recombined location information is determined as the second business system.

5. A system positioning device, characterized in that, The device includes: The first acquisition module is used to respond to an access request initiated by the first business system and acquire the first location information corresponding to the first business system and the system type information carried in the access request. The first determining module is used to determine candidate second business systems based on the system type information, and to determine the second location information corresponding to each candidate second business system; The access module is used to determine the matching result between the first location information and each of the second location information according to a preset path matching strategy, and to determine the second business system in each of the candidate second business systems through the matching result, and to send the address information of the second business system to the first business system; the address information is used to guide the first business system to access the second business system; when the number of location identifiers contained in the first location information and the second location information is inconsistent, the module obtains the exit address of the domain node where the first business system is located or the entry address of the domain node where the second business system is located, and uses the exit address or the entry address as the address information; The device further includes: The second acquisition module is used to acquire deployment information corresponding to each business system; The second determining module is used to construct a system deployment structure based on the deployment information, and to determine the location information corresponding to each of the business systems based on the system deployment structure; the system deployment structure includes unified entry and exit information defined for each domain node, and the entry and exit information includes an entry address and an exit address; A storage module is used to store the location information in each of the aforementioned business systems. The access module is specifically used to split the location identifiers at different levels in the first location information according to the target identifier in the first location information, so as to obtain the number of multi-level location identifiers and the number of first identifiers. Based on the first number of identifiers, the location identifiers at multiple levels are recombined to obtain multiple recombined location information; For each of the reconstructed location information, the reconstructed location information is matched with each of the second location information, and a second business system is determined in each of the candidate second business systems based on the matching result.

6. The apparatus according to claim 5, characterized in that, The first determining module is specifically used to determine, within the system deployment structure, a candidate second business system corresponding to the system type information; the candidate second business system includes a corresponding candidate system instance; Based on the candidate system instances and the registration discovery mechanism, the second location information corresponding to each candidate second business system is determined.

7. The apparatus according to claim 5, characterized in that, The access module is specifically used to redivide the first identifier quantity according to a decreasing strategy to obtain multiple second identifier quantities; For each number of the second identifiers, based on the location identifiers at each level, reconstructed location information corresponding to the number of the second identifiers is constructed according to a preset hierarchical priority, thereby obtaining reconstructed location information for each number of the second identifiers.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Service calling method and device, electronic equipment and storage medium

    CN118316993A