System positioning method and device, computer equipment, readable storage medium and program product

By obtaining the location information and system type information of the service system in the distributed system, and intelligently selecting candidate service systems for access, the problem of low access performance in traditional technologies is solved and more efficient access performance is achieved.

CN119557051AActive Publication Date: 2025-03-04BEIJING PACTERA JINXIN TECH LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411707855.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-26
Publication Date
2025-03-04
Estimated Expiration
2044-11-26

AI Technical Summary

Technical Problem

In traditional technology, the service system access performance in distributed systems is low, mainly due to the dependence on fixed domain names for access.

Method used

By responding to the access request initiated by the first service system, it obtains its corresponding location information and system type information, determines the candidate second service system, and determines the matching result of the location information based on the preset path matching strategy to select the most suitable second service system for access.

Benefits of technology

Improve the performance of accessing business systems in distributed systems, and reduce access latency by intelligently selecting the closest business system for access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557051A_ABST
    Figure CN119557051A_ABST
Patent Text Reader

Abstract

The invention relates to a system positioning method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: in response to an access request initiated by a first service system, obtaining first position information corresponding to the first service system and system type information carried in the access request; determining candidate second service systems based on the system type information, and determining second position information corresponding to each candidate second service system; determining a matching result of the first position information and each piece of second position information according to a preset path matching strategy, determining a second service system in each candidate second service system according to the matching result, and sending address information of the second service system to the first service system; the address information is used for guiding the first service system to access the second service system. By adopting the method, the performance of accessing the service system in the distributed system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of distributed computing and cloud computing technologies, enterprise internal systems increasingly use distributed systems with diversified distributed systems that are multi-site, multi-center, multi-region, and multi-unit. Distributed systems include multiple business systems, and each business system is deployed in different areas of computer rooms in different regions.

[0003] In traditional technology, technicians manually configure the correspondence between domain names and instances to access business systems in distributed systems. Specifically, for a certain business system, a fixed domain name corresponds to the instance of the business system in each deployment area in the computer room of each region. When other business systems need to access the business system, they use the fixed domain name to connect to the instance of the business system to access the business system.

[0004] However, in the conventional technology, since the domain name based on which the business system is accessed is fixed, the performance of accessing the business system in the distributed system is low. Summary of the invention

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

[0006] In a first aspect, the present application provides a system positioning method, comprising:

[0007] In response 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;

[0008] Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0009] The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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, in response to an access request initiated by the first business system, first location information corresponding to the first business system and system type information carried in the access request, the method further includes:

[0011] Obtain the deployment information corresponding to each business system;

[0012] Constructing a system deployment structure according to the deployment information, and determining location information corresponding to each of the business systems according to the system deployment structure;

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

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

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

[0016] Based on the candidate system instance and the registration discovery mechanism, the second location information corresponding to each of the candidate second business systems 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 from each of the candidate second business systems according to the matching result, includes:

[0018] According to the target identifier in the first location information, split the location identifiers of different levels in the first location information to obtain multiple levels of location identifiers and the number of first identifiers;

[0019] Reorganize the position identifiers of multiple levels based on the first identifier quantity to obtain multiple reorganized position information;

[0020] For each piece of the reorganization position information, the reorganization position information is matched with each piece of the second position information, and a second service system is determined from each of the candidate second service systems according to the matching result.

[0021] In one embodiment, the reorganizing the location identifiers of multiple levels based on the number of the first identifiers to obtain a plurality of reorganized location information includes:

[0022] Re-dividing the first number of identifiers according to a decreasing strategy to obtain multiple second numbers of identifiers;

[0023] For each second identification quantity, based on the position identification of each level, the reorganization position information corresponding to the second identification quantity is constructed according to the preset level priority to obtain the reorganization position information of each second identification quantity.

[0024] In one embodiment, for each of the reorganized position information, matching the reorganized position information with each of the second position information, and determining the second service system from each of the candidate second service systems according to the matching result, includes:

[0025] Matching each of the recombination position information with each of the second position information in sequence according to the matching order of the path length of the recombination position information from large to small, until the matching result is that the recombination position information matches the second position information successfully;

[0026] The candidate second business system corresponding to the second location information successfully matched with the reorganized location information is determined as the second business system.

[0027] In a second aspect, the present application also provides a system positioning device, including:

[0028] A first acquisition module, configured to respond to an access request initiated by a first business system and acquire first location information corresponding to the first business system and system type information carried in the access request;

[0029] A first determination module, configured to determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0030] An access module is used to determine the matching results of 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 from each of the candidate second business systems through the matching results, 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 comprises:

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

[0033] A second determination module is used to construct a system deployment structure according to the deployment information, and determine the location information corresponding to each of the business systems according to the system deployment structure;

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

[0035] In one of the embodiments, the first determination 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 instance and the registration discovery mechanism, the second location information corresponding to each of the candidate second business systems is determined.

[0037] In one embodiment, the access module 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 to obtain multiple levels of location identifiers and the number of first identifiers;

[0038] Reorganize the position identifiers of multiple levels based on the first identifier quantity to obtain multiple reorganized position information;

[0039] For each piece of the reorganization position information, the reorganization position information is matched with each piece of the second position information, and a second service system is determined from each of the candidate second service systems according to the matching result.

[0040] In one of the embodiments, the access module is specifically used to re-divide the first identification quantity according to a decreasing strategy to obtain multiple second identification quantities;

[0041] For each second identification quantity, based on the position identification of each level, the reorganization position information corresponding to the second identification quantity is constructed according to the preset level priority to obtain the reorganization position information of each second identification quantity.

[0042] In one embodiment, the access module is specifically used to match each of the reorganization position information with each of the second position information in sequence according to the matching order of the path length of the reorganization position information from large to small, until the matching result is that the reorganization position information matches the second position information successfully;

[0043] The candidate second business system corresponding to the second location information successfully matched with the reorganized location information is determined as the second business system.

[0044] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0045] In response 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;

[0046] Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0047] The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0049] In response 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;

[0050] Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0051] The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0053] In response 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;

[0054] Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0055] The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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 above-mentioned system positioning method, device, computer equipment, computer-readable storage medium and computer program product, 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; determine the candidate second business system based on the system type information, and determine the 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 the preset path matching strategy, and determine the second business system in each candidate second business system through the matching degree; the matching degree is used to reflect the distance between the first business system and the second business system. With this method, the locations of the first business system and each candidate second business system are identified through the first location information and the second location information, and the access location of the second business system is selected according to the location relationship of the first location information and the second location information, and then the candidate second business system closest to the first business system is determined as the target system corresponding to the access request, and the second business system closest to the first business system is used for access, which can improve the performance of accessing the business system in the distributed system. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 A diagram of an application environment of a system positioning method in an embodiment;

[0059] Figure 2 A schematic diagram of a flow chart of a system positioning method in an embodiment;

[0060] Figure 3 A schematic diagram of a process for constructing a system deployment structure and generating location information in an embodiment;

[0061] Figure 4 A schematic diagram of a system deployment structure in an embodiment;

[0062] Figure 5 A schematic diagram of unified entrance and exit locations of domain nodes in one embodiment;

[0063] Figure 6 A schematic diagram of area division, business system deployment and path description in one embodiment;

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

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

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

[0067] Fig.10 A schematic diagram of a process for constructing reorganization position information in one embodiment;

[0068] Fig.11 A schematic diagram of a process for determining a second business system according to matching of the reorganized location information with the second location information in one embodiment;

[0069] Fig.12 A schematic diagram of an example flow of a system positioning method in an embodiment;

[0070] Fig.13 is a structural block diagram of a system positioning device in one embodiment;

[0071] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0072] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0073] The system positioning method provided in the embodiment of the present application is as follows: Figure 1As shown, it can be applied in the application environment of a distributed system. Among them, 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 in the first business system 104 or the second business system 106, and the system management terminal 102 can also be deployed on an independent server to manage the business system in the distributed system. The first business system 104 and the second business system 106 respectively include a data storage system for storing data that needs to be processed by the first business system 104 or the second business system 106. The data storage system can be integrated in the first business system 104 and the second business system 106, or it can be placed on the cloud or other network servers. The system management end 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 from each candidate second business system through the matching result, and accesses the second business system 106.

[0074] In an exemplary embodiment, Figure 2 As shown, a system positioning method is provided, which is described by taking the method applied to the system management end as an example, and includes the following steps 202 to 206. Among them:

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

[0076] In an embodiment of the present application, the first business system is a business system that initiates an access request in a distributed system. The access request includes at least system type information, and the system type information 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 product. The access request can be a request for checking the inventory of the product, and the system type information is the product system.

[0077] The system management terminal includes a system positioning component, and the system positioning component pre-stores information such as the system type, location information, and system address of each business system. The system positioning component monitors each business system in the distributed system in real time through a service discovery mechanism, and after the first business system initiates an access request, the system management terminal receives the access request and parses the access request to determine the system type information carried in the access request to determine the type of business system that the first business system wants to access. At the same time, the system management terminal can determine the first segment of location information of the first business system that initiates the access request from the stored location information of the business system. Optionally, the access request initiated by the first business system can also carry the first location information of the first business system, and then the system management terminal can 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 the system type information, and determine second location information corresponding to each candidate second business system.

[0079] In the embodiment of the present application, since the distributed system includes multiple business systems for processing different businesses, the system management end uses the system positioning component to match all the stored business systems using the system type information carried in the access request, and screens out all the candidate second business systems corresponding to the system type information in the full amount of business systems. Each candidate second business system can be deployed in a server in a different computer room, or in a server in a different business area in the same computer room. Furthermore, the system management end can use the candidate second business system as a matching object in the location information corresponding to each business system to determine the second location information corresponding to each second business system. For example, the second business system can be a commodity system. In the scenario of multiple locations and multiple centers, the commodity system can be deployed in computer rooms in regions A, B, and C, respectively, and different business areas in the computer room of each region can be non-commodity systems at the same time. Then, the second location information corresponding to the commodity system can 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, determining the matching result of the first location information and each second location information according to the preset path matching strategy, determining the second business system from each candidate second business system through the matching result, and sending 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 the embodiment of the present application, after obtaining the first location information of the first business system and the second location information of all the second business systems, the system management end can identify the distance between the first business system and each second business system according to the matching result of the first location information and the second location information. The distance between the first business system and each second business system can reflect the performance of the first business system when accessing different candidate second business systems, and then, the system management end can screen the candidate second business systems through the matching results of the first location information and each second location information. The matching result can be the order of successful matching of the first location information and each second location information. Optionally, the matching result can also be the similarity between the first location information and each second location information determined according to a similarity matching algorithm (for example, cosine similarity, Euclidean distance, etc.), or it can be the matching result obtained by matching the intermediate information after the first location information and the second location information are graded and extracted according to a preset classification strategy. The matching result can be a matching degree, and the greater the matching degree, the smaller the distance between the first business system and the candidate second business system.

[0083] When accessing the first business system, the access performance of the candidate second business system with a smaller distance (i.e., the candidate second business system with a larger matching degree or the first successful matching) will be stronger than that of the candidate second business system with a larger distance. Therefore, the system management end determines the candidate second business system with the highest matching degree or the first successful matching as the second business system among the candidate second business systems through the matching degree, and determines the address information corresponding to the second business system according to the second location information of the second business system. Among them, the address information corresponding to the second business system can be any one of an IP (Internet Protocol, Internet Interconnection Protocol) address, domain name, port number, and URL (Uniform Resource Location, Uniform Resource Locator), and the embodiment of the present application does not limit the type of address information.

[0084] After the system management terminal determines the address information of the second business system, the address information of the second business system can be fed back to the first business system, so that the first business system can send an access request to the second business system according to the address information of the second business system. Optionally, the system management terminal can also feed back the address information of the second business system to the communication layer of the gateway of the first business system.

[0085] In the above-mentioned 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, so that the access location of the second business system can be selected according to the location relationship based on the first location information and the second location information, and then the candidate second business system closest to the first business system is determined as the target system corresponding to the access request. The second business system closest to the first business system is used for access, which can improve the performance of accessing the business systems in the distributed system.

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

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

[0088] In the embodiment of the present application, the system management end needs to obtain the deployment information of all business systems in the distributed system. The deployment information of the business system may include the location of the computer room, the available area, the business area, and the server information of the server where the business system is located. The location of the computer room may be the physical location of the computer room where the business system is located, for example, region A, region B, region C; the available area refers to multiple available areas in the same region, each of which is a mutually isolated data center, usually used to improve the disaster recovery capability of the system; the business area may be different business areas in the same available area, each of which is used to deploy different business systems or services, and the server information may be the IP address, domain name or port number of the server, etc.

[0089] Step 304: construct a system deployment structure according to the deployment information, and determine the location information corresponding to each business system according to the system deployment structure.

[0090] In the embodiment of the present application, the system deployment structure includes building a storage structure for regional data and the entry and exit information for each region. For the storage structure for regional data, the system management end can use an easily expandable hierarchical structure as the storage structure for regional data, and build a system deployment structure according to the deployment information, such as Figure 4As shown, the system management end can use a tree structure to divide the layers according to the business characteristics of the enterprise itself, and construct the deployment information of each business system into a system deployment structure with an attribute storage structure according to the location of the computer room, available area, and business area. Among them, in order to meet security requirements, a unified entrance and exit is set in different areas of each computer room of the distributed system as a network security policy constraint, that is, the business system can only be accessed through this unified entrance and exit between domains.

[0091] For the entrance and exit information of each area, the system management terminal pre-defines the location of the unified entrance and exit of the domain in each domain node, such as Figure 5 As shown, the system management end pre-sets the entry address and exit address, and 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 end 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. The location information can be in the format of a "path" and assembled in the form of separators to indicate the location of the deployment area of ​​each business system, such as Figure 6 As shown in the figure, it includes a regional division diagram and a business system deployment diagram. The system management end 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 may be in a "path" format, for example, "Shunyi Data Center / Availability Zone 1 / Business Zone 1". The separators used in the location information are not limited in the embodiments of the present application.

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

[0094] In an embodiment of the present application, after the system management end completes the definition of each business system, the location information generated for each business system is written to the local business system. Specifically, after the system management end sends the location information to each business system, the business system can write the generated location information to the local business system in the form of a configuration file. For example, taking a text file as an example, the configuration file of the location information can be "app_path = Shunyi Computer Room / Availability Zone 1 / Business Zone 1", where 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 the local business system in the form of an environment variable. For example, under a Linux system, the environment variable can be "export app_path = Shunyi Computer Room / 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 Computer Room / Availability Zone 1 / Business Zone 1".

[0095] In this embodiment, the system deployment structure is constructed through the detailed deployment information of each business system in the distributed system. The system management end can accurately determine the location information of each business system. The location information is stored in the form of a hierarchical path and implemented locally in each business system in the form of a configuration file or environment variable, so that the system management end can intelligently schedule access to the business system and improve the overall performance and response speed of mutual access between business systems.

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

[0097] in:

[0098] Step 702: Determine a candidate second business system corresponding to the system type information in the system deployment structure.

[0099] The candidate second business system includes a corresponding candidate system instance.

[0100] In an embodiment of the present application, the system management end screens each business system in the system deployment structure according to the system type information, and determines the business system whose system type information matches the system type information carried in the access request as a candidate second business system, 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 set consisting of multiple candidate system instances. Each candidate second business system contains multiple candidate system instances, and different candidate system instances are distributed in different computer rooms, availability zones, and business areas. The candidate system instance is a physical or virtual server that actually runs and processes requests.

[0102] Step 704: Determine the second location information corresponding to each candidate second business system based on the candidate system instance and the registration discovery mechanism.

[0103] In the embodiment of the present application, the system management end can use the registration discovery mechanism to obtain a list of all candidate system instances including the candidate second business system based on the instance ID, IP address or port number of the candidate system instance, wherein the list includes 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 of the registration discovery mechanism includes but is not limited to the registration center.

[0104] like Figure 8 As shown, with system A as an independent system management terminal or a system management terminal integrated in the first business system, system A can use the registration discovery mechanism to determine the second candidate business system with system type information as system B in the registered systems in the registration center, and obtain the candidate system instances corresponding to 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 registering the second location information of each candidate system instance of the candidate second business system of the center, the location information of each candidate system instance is used as the second location information of the candidate second business system, so that the distance between the first business system and the candidate second systems at different deployment locations can be quantified 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 to the second business system.

[0106] In an exemplary embodiment, Fig. 9 As shown, step 206 includes steps 902 to 906 .

[0107] in:

[0108] Step 902: split the location identifiers of different levels in the first location information according to the target identifier in the first location information to obtain multiple levels of location identifiers and the number of first identifiers.

[0109] In an embodiment of the present application, the target identifier is a separator used to generate the first location information, such as " / ", and the target identifier is used to isolate location information of different levels to distinguish the subordinate relationship between location information of different levels. After the system management end obtains the first location information, the position relationship corresponding to each target identifier in the first location information is split according to the target identifier to obtain multi-level location identifiers, and 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, the first location information is "bj1 / idc1 / az1". At this time, the number of first identifiers is 3, then an array with a length of 3 is created according to the number of first identifiers, and the location identifiers "bj1", "idc1", and "az1" of different levels are split and stored in the array according to the target identifier, that is, ["bj1", "idc1", "az1"].

[0110] Step 904: reorganize the multi-level location identifiers based on the first identifier quantity to obtain a plurality of reorganized location information.

[0111] In the embodiment of the present application, the system management end reorganizes the multi-level location identifiers in a hierarchical combination manner through the first identifier number (i.e., the number of location identifiers) to generate multiple reorganized location information. For example, the multi-level location identifiers are ["bj1", "idc1", "az1"], the first identifier number is 3, and the reorganized reorganized location information includes "bj1", "bj1 / idc1", "bj1 / idc1 / az1".

[0112] Step 906: For each piece of reorganized position information, match the reorganized position information with each piece of second position information, and determine the second service system according to the matching result.

[0113] In the embodiment of the present application, the system management end matches each reassembled reorganized path with each second location information to obtain a matching result between the first location information and each second location information, and then can screen out the second business system from the candidate second business systems according to the distance reflected by the matching result. The matching result can be a matching degree, for example, the similarity and overlap of the paths, or the matching result can also be the second candidate business system that is the first to be successfully matched.

[0114] In this embodiment, the reorganized location information is obtained by reorganizing the multi-level location identifiers, and the matching result between the reorganized location information and the second location information is obtained, which provides a data basis for the selection of the second business system, so that the system management end can flexibly select the second business system according to the matching result, and can determine the second business system that is most compatible with the first business system based on the matching result, thereby improving the performance of accessing the second business system. At the same time, when the service of the second business system is unavailable, the first business system can flexibly select other candidate second business systems when initiating an access request, thereby also improving the stability and disaster recovery capability of access between business systems.

[0115] In an exemplary embodiment, Fig.10 As shown, step 904 includes steps 1002 to 1004. Among them:

[0116] Step 1002: Re-divide the first identification quantity according to a decreasing strategy to obtain multiple second identification quantities.

[0117] In an embodiment of the present application, the system management end can perform a loop processing on the first identifier quantity according to a decreasing strategy, and decrement the first identifier quantity by one in each loop to obtain a new first identifier quantity, that is, 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 represents that the first identifier quantity is reduced by one in each loop.

[0118] Step 1004 , for each second identification quantity, based on the position identification of each level, construct the reorganization position information corresponding to the second identification quantity according to the preset level priority, and obtain the reorganization position information corresponding to each second identification quantity.

[0119] In an embodiment of the present application, the system management terminal may use the index value of the location identifier in each array as a preset hierarchical priority. For example, in the multi-level location identifiers ["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 larger the level of the location identifier. For the number of second identifiers in each cycle, the system management terminal may construct the reorganized location information under each number of second identifiers in the order of the preset hierarchical priority from large to small. For example, when the first number of identifiers (the first number of identifiers is 3) of multi-level location identifiers ["bj1", "idc1", "az1"] are cyclically divided according to a decreasing strategy, it is divided into 3 in the first loop of the for loop, that is, the second number of identifiers in the current loop is 3, and the reorganized position information corresponding to the second number of identifiers of 3 is constructed in the order of preset hierarchical priorities from large to small, which is "bj1 / idc1 / az1"; in the second loop of the for loop, the first number of identifiers is divided into 2, that is, the second number of identifiers in the current loop is 2, and the reorganized position information corresponding to the second number of identifiers of 2 is constructed in the order of preset hierarchical priorities from large to small, which is "bj1 / idc1"; in the third loop of the for loop, the first number of identifiers is divided into 1, that is, the second number of identifiers in the current loop is 1, and the reorganized position information corresponding to the second number of identifiers of 1 is constructed in the order of preset hierarchical priorities from large to small.

[0120] In this embodiment, the number of first identifiers is redivided through a decreasing strategy, and the reorganized location information is constructed according to preset hierarchical priorities. The system management end can systematically generate multi-level reorganized location information, which not only improves the efficiency of parsing and reorganization of location information, but also enhances the flexibility and efficiency of selecting the second business system under multi-level location identifiers.

[0121] In an exemplary embodiment, Fig.11 As shown, step 906 includes steps 1102 to 1104. Among them:

[0122] Step 1102, in accordance with the matching order of the path length of the reorganization position information from large to small, each reorganization position information is matched with each second position information in sequence, until the matching result is that the reorganization position information matches the second position information successfully.

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

[0124] In an embodiment of the present application, in each loop of constructing the recombinant position information corresponding to the second identification quantity, each recombinant position information is matched with each second position information by a string matching method. Taking the fuzzy matching method as an example for explanation, the system management end determines the generated recombinant position information in each loop. In the string contained in each second position information, the index value of the successfully matched position is greater than or equal to 0, which means it is a match.

[0125] In an exemplary embodiment, the first location information of the first business system is "bj1 / idc1 / az1", then the location identifiers split into multiple levels are ["bj1", "idc1", "az1"], and the second location information includes "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2". In the first cycle, according to the order of matching the path length of the reorganized location information from large to small, the first reorganized location information constructed is "bj1 / idc1 / az1". At this time, when the reorganized location information "bj1 / idc1 / az1" is fuzzy matched with each second location information, only the second location information "bj1 / idc1 / az1" has the same matching result as the reorganized location information.

[0126] If the first location information of the first business system is "bj1 / idc2 / az1", the location identifiers split into multiple levels are ["bj1", "idc2", "az1"], and the second location information includes "bj1 / idc1 / az1", "bj1 / idc1 / az2", and "bj1 / idc2 / az2". In the first cycle, according to the matching order of the path length of the reorganized location information from large to small, the first constructed reorganized location information is "bj1 / idc2 / az1". At this time, after fuzzy matching the reorganized location information "bj1 / idc1 / az1" with each second location information, the matching result of each second location information with the reorganized location information is a match failure. Then the system management end performs the next round of cycles, reduces the path length by one, and obtains the new reorganized location information "bj1 / idc2". Then, fuzzy matching is performed with each second location information according to the new reorganized location information, and finally determines that the matching result of the second location information "bj1 / idc2 / az2" with the new reorganized location information is a match success.

[0127] Step 1104: determine the candidate second business system corresponding to the second location information that successfully matches the reorganized location information as the second business system.

[0128] In the embodiment of the present application, since each cycle is a division of the number of first identifiers according to a decreasing strategy, each cycle is a processing of the reorganized position information in the order of the path length of the reorganized position information from large to small. Therefore, after determining the reorganized position information, the system management end can also match the reorganized position information in the current cycle with each second position information in the current cycle body to obtain the matching result between the reorganized position information in the current cycle and each second position information. At the same time, if the matching result is that the reorganized position information is equal to the second position information, since the matching order is the path length of the reorganized position information from large to small, it means that the first matched second position information equal to the reorganized position information is used as the second position information closest to the first position information of the first business system.

[0129] In this embodiment, each reorganized location information is matched with each second location information in turn by matching the path length of the reorganized location information in descending order, and 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. The second business system can be determined by a fixed preset path matching strategy, which can adapt to the screening of candidate second business systems in various scenarios, improve the efficiency of determining the second business system, and thereby improve the efficiency of accessing the second business system in the distributed system.

[0130] In a specific embodiment, Fig.12 As shown, an example of a system positioning method is provided, wherein:

[0131] Step 1201, obtaining first location information corresponding to a first business system;

[0132] Step 1202, obtaining second location information corresponding to multiple candidate second business systems;

[0133] Step 1203, split the first position information according to the separator and store it as a position identifier in an array form;

[0134] Step 1204, according to the decreasing strategy of decreasing the number of first identifiers of the position identifiers in the array, the position identifiers in the array are decremented to obtain a new number of first identifiers;

[0135] Step 1205, in each loop round, the position identifiers in the array are reassembled and assembled according to the first identifier quantity and the loop body to obtain reassembled position information in the form of a string;

[0136] Step 1206, matching the reorganized position information with the second position information to obtain a matching result;

[0137] Step 1207, determining whether there is second position information matching the recombinant position information; if there is second position information matching the recombinant position information, executing step 1208; if there is no second position information matching the recombinant position information, executing step 1204;

[0138] Step 1208: determine the candidate second business system corresponding to the second location information matching the reorganized location information as the second business system.

[0139] In a specific embodiment, taking the example of service A (request source) of the first business system accessing service B (destination service) of the second business system, the following is described:

[0140] Scenario 1: The number of identifiers corresponding to the location identifiers contained in the first location information of the first business system is the same as the number of identifiers corresponding to the location identifiers contained 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 end splits according to the separator " / " to obtain an array, namely ["bj1", "idc1", "az1"]. Then, the system management end assembles the elements (location identifiers) in order according to the array length to obtain the reorganized location information "bj1 / idc1 / az1". Finally, the system management end 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, and obtains the candidate second location information "bj1 / idc1 / az1" with the matching result as the successful match, that is, the candidate second business system corresponding to "bj1 / idc1 / az1" is used as the second business system, and the address of the second business system is used as the address for the next step of transmitting the access request.

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

[0142] Scenario 2: The number of identifiers corresponding to the location identifier contained in the first location information of the first business system is greater than the number of identifiers corresponding to the location identifier contained 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 end splits according to the separator " / " to obtain an array, namely ["bj1", "idc1", "az1"]. Then, the system management end subtracts 1 from the array length and assembles the elements (location identifiers) in order to obtain "bj1 / idc1". Finally, the system management end performs fuzzy matching on each candidate second location information "bj1 / idc1" and "bj1 / idc2 / az1" according to the reorganized location information, and obtains the candidate second location information "bj1 / idc1" with the matching result as the successful match, that is, the candidate second business system corresponding to "bj1 / idc1" is used as the second business system. Since the number of location identifiers contained in the first location information and the second location information are inconsistent, the address of service B is the exit address of this domain, that is, the exit address of bj1 / idc1 / az1, which is obtained from the exit address set when building the system deployment structure; if the exit address is not 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, is used as the address for the next step of transmitting the access request.

[0143] Scenario 3: The number of identifiers corresponding to the location identifier contained in the first location information of the first business system is less than the number of identifiers corresponding to the location identifier contained 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 end splits according to the separator " / " to obtain an array, namely ["bj1", "idc1", "az1"]. Then, the system management end assembles the elements (location identifiers) in order according to the array length to obtain the reorganized location information "bj1 / idc1 / az1". Finally, the system management end performs fuzzy matching on each candidate second location information "bj1 / idc1 / az1 / zon1", "bj1 / idc1 / az2" and "bj1 / idc2 / az1" according to the reorganized location information, and obtains the candidate second location information "bj1 / idc1 / az1 / zone1" with the matching result as the successful match, that is, the candidate second business system corresponding to "bj1 / idc1 / az1 / zone1" is used as the second business system. Since the number of location identifiers respectively included in the first location information and the second location information is inconsistent, the address of service B is the exit address of this domain, that is, the exit address of (bj1 / idc1 / az1 / zone1), which is obtained from the exit address set when building the system deployment structure; if the exit address is not 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 transmitting the access request.

[0144] Among them, for the matching results of each candidate second position information and different reorganized position information, the reorganized position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the obtained fuzzy matching result (integer) is 0; the reorganized position information "bj1 / idc1 / az1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az2", and the obtained fuzzy matching result (integer) is -1; the reorganized position information "bj1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the obtained fuzzy matching result (integer) is 0; the reorganized position information "idc1" is fuzzy matched with the candidate second position information "bj1 / idc1 / az1", and the obtained 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 end splits according to the separator " / " to obtain an array, that is, ["bj1", "idc1", "az1"]. Then, the system management end assembles the elements (position identifiers) in order according to the length of the array to obtain the reorganized location information "bj1 / idc1 / az1", but the matching results of the reorganized location information "bj1 / idc1 / az1" and each candidate second location information are all matching failures. Then, the reorganized location information "bj1 / idc1" of the next cycle is obtained according to the decreasing strategy, and matched according to "bj1 / idc1". Finally, the system management end 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 the positional relationship with the first location information. The system management end can then determine the second business system from the candidate second business systems 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 are inconsistent, the address of service B is the exit address of this domain, that is, the exit address (bj1 / idc1 / az1), which is obtained from the exit address set when building the system deployment structure; if the exit address is not 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 (bj1 / idc1 / az1 / zone1) is used as the address for the next step of transmitting the access request.

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

[0147] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0148] Based on the same inventive concept, the embodiment of the present application also provides a system positioning device for implementing the system positioning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more system positioning device embodiments provided below can refer to the limitations on the system positioning method above, and will not be repeated here.

[0149] In an exemplary embodiment, Fig.13 As shown, a system positioning device 1300 is provided, comprising: 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] A first determining module 1302 is used to determine candidate second business systems based on the system type information, and determine second location information corresponding to each candidate second business system;

[0152] Access module 1303 is used to determine the matching results of the first location information and each second location information according to a preset path matching strategy, and determine the second business system from each candidate second business system through the matching results, and 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 apparatus 1300 further includes:

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

[0155] A second determination module is used to construct a system deployment structure according to the deployment information, and determine the location information corresponding to each business system according to the system deployment structure;

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

[0157] In one embodiment, the first determination 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 the candidate system instance 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 to obtain the location identifiers of multiple levels and the number of first identifiers;

[0160] Reorganize the multi-level position identifiers based on the first identifier quantity to obtain multiple reorganized position information;

[0161] For each piece of reorganized position information, the reorganized position information is matched with each piece of second position information, and the second service system is determined from each candidate second service system according to the matching result.

[0162] In one embodiment, the access module 1303 is specifically used to re-divide the first identification quantity according to the decreasing strategy to obtain multiple second identification quantities;

[0163] For each second identification quantity, according to the position identification of each level, the reorganization position information corresponding to the second identification quantity is constructed according to the preset level priority to obtain the reorganization position information of each second identification quantity.

[0164] In one embodiment, the access module 1303 is specifically used to match each reorganization position information with each second position information in sequence according to the matching order of the path length of the reorganization position information from large to small, until the matching result is that the reorganization position information matches the second position information successfully;

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

[0166] Each module in the above system positioning device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0167] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.14 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store location information data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a system positioning method is implemented.

[0168] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0169] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0170] In response 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;

[0171] Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems;

[0172] The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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, when the processor executes the computer program, the processor further implements the following steps:

[0174] Obtain the deployment information corresponding to each business system;

[0175] Constructing a system deployment structure according to the deployment information, and determining location information corresponding to each of the business systems according to the system deployment structure;

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

[0177] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

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

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

[0180] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0181] According to the target identifier in the first location information, split the location identifiers of different levels in the first location information to obtain multiple levels of location identifiers and the number of first identifiers;

[0182] Reorganize the position identifiers of multiple levels based on the first identifier quantity to obtain multiple reorganized position information;

[0183] For each piece of the reorganization position information, the reorganization position information is matched with each piece of the second position information, and a second service system is determined from each of the candidate second service systems according to the matching result.

[0184] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0185] Re-dividing the first number of identifiers according to a decreasing strategy to obtain multiple second numbers of identifiers;

[0186] For each second identification quantity, based on the position identification of each level, the reorganization position information corresponding to the second identification quantity is constructed according to the preset level priority to obtain the reorganization position information of each second identification quantity.

[0187] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0188] Matching each of the recombination position information with each of the second position information in sequence according to the matching order of the path length of the recombination position information from large to small, until the matching result is that the recombination position information matches the second position information successfully;

[0189] The candidate second business system corresponding to the second location information successfully matched with the reorganized location information is determined as the second business system.

[0190] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

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

[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, stored data, displayed data, 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 relevant data must comply with relevant regulations.

[0193] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0194] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A system positioning method, characterized in that: The method comprises: In response 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; Determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems; The matching results of the first location information and each of the second location information are determined according to a preset path matching strategy, and the second business system is determined from each of the candidate second business systems through the matching results, and 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.

2. The method according to claim 1, characterized in that Before obtaining, in response to the access request initiated by the first business system, 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 the deployment information corresponding to each business system; Constructing a system deployment structure according to the deployment information, and determining location information corresponding to each of the business systems according to the system deployment structure; For each of the business systems, the location information is stored in each of the business systems.

3. The method according to claim 1, characterized in that The determining of the candidate second business systems based on the system type information, and determining the second location information corresponding to each of the candidate second business systems, includes: In the system deployment structure, determining 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 instance and the registration discovery mechanism, the second location information corresponding to each of the candidate second business systems is determined.

4. The method according to claim 1, characterized in that The determining the matching result between the first location information and each of the second location information according to the preset path matching strategy, and determining the second service system from each of the candidate second service systems according to the matching result, includes: According to the target identifier in the first location information, split the location identifiers of different levels in the first location information to obtain multiple levels of location identifiers and the number of first identifiers; Reorganize the position identifiers of multiple levels based on the first identifier quantity to obtain multiple reorganized position information; For each piece of the reorganization position information, the reorganization position information is matched with each piece of the second position information, and a second service system is determined from each of the candidate second service systems according to the matching result.

5. The method according to claim 4, characterized in that The step of reorganizing the location identifiers of multiple levels based on the number of the first identifiers to obtain a plurality of reorganized location information includes: Re-dividing the first number of identifiers according to a decreasing strategy to obtain multiple second numbers of identifiers; For each second identification quantity, based on the position identification of each level, the reorganization position information corresponding to the second identification quantity is constructed according to the preset level priority to obtain the reorganization position information of each second identification quantity.

6. The method according to claim 4, characterized in that For each of the reorganized position information, matching the reorganized position information with each of the second position information, and determining the second business system from each of the candidate second business systems according to the matching result, includes: Matching each of the recombination position information with each of the second position information in sequence according to the matching order of the path length of the recombination position information from large to small, until the matching result is that the recombination position information matches the second position information successfully; The candidate second business system corresponding to the second location information successfully matched with the reorganized location information is determined as the second business system.

7. A system positioning device, characterized in that: The device comprises: A first acquisition module, configured to respond to an access request initiated by a first business system and acquire first location information corresponding to the first business system and system type information carried in the access request; A first determination module, configured to determine candidate second business systems based on the system type information, and determine second location information corresponding to each of the candidate second business systems; An access module is used to determine the matching results of 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 from each of the candidate second business systems through the matching results, 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.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

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

Citation Information

Patent Citations

  • Address data matching method and apparatus

    CN108733810A

  • Service request processing method and device, storage medium and electronic equipment

    CN111800501A

  • Data processing method and device, computer, readable storage medium and program product

    CN116112189A

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

    CN118316993A

  • A Decentralized Load-Balancing Method for Resource / Traffic Distribution

    US20210185119A1