Identification resolution method, device and server
By iteratively searching between local nodes and target nodes, the problem of low query efficiency in large-scale, high-concurrency and high-security applications is solved, and fast and accurate identification resolution and improved query efficiency is achieved.
Patent Information
- Application Number
- CN202411852955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-08
AI Technical Summary
The existing identification resolution system has problems such as low query efficiency, poor scalability and insufficient security in large-scale, high-concurrency and high-security applications, and it is difficult to meet the needs of complex information interactions.
The target identification information is searched through the server of the local node. If it is not found, a identification resolution request is sent to the target node, so that the server of the target node can search until the target identification information is found and the corresponding analysis information is returned.
It realizes the rapid and accurate search of the analytical information corresponding to the target identification information, reduces the number of direct accesses to the storage nodes, and improves query efficiency.
Smart Images

Figure CN119782376A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to an identification resolution method, device and server. Background Art
[0002] With the rapid development of industrial Internet and Internet of Things technologies, information interaction between various devices and systems has become increasingly frequent and complex. As a bridge connecting the physical world and the digital world, identity resolution is becoming increasingly important. However, existing identity resolution systems generally have problems such as low query efficiency, poor scalability, and insufficient security, making it difficult to meet the needs of large-scale, high-concurrency, and high-security applications. Summary of the invention
[0003] The purpose of the present invention is to provide an identification resolution method, device and server to address the deficiencies in the above-mentioned prior art, so that the target identification information can be searched through the server of the local node. If not found, an identification resolution request is sent to the target node, so that the server of the target node searches for the target identification information until the target identification information is found, and returns the resolution information corresponding to the target identification information to the server of the local node. Through multiple iterative searches, the resolution information corresponding to the target identification information can be found quickly and accurately, and the number of direct accesses to the storage node can be effectively reduced, thereby improving the query efficiency.
[0004] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0005] In a first aspect, an embodiment of the present application provides an identity resolution method, which is applied to a server in a local node, and the method includes:
[0006] Receive the identity resolution request sent by the client;
[0007] According to the identification resolution request, searching for the target identification information from the local cache database;
[0008] If the target identification information is not found in the local cache database, the identification resolution request is sent to the target node, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in the distributed storage architecture except the local node;
[0009] If the search result indicates that the search is successful, the parsing information corresponding to the target identification information is obtained and sent to the client, so that the client displays the parsing information.
[0010] In an optional implementation manner, if the target identification information is not found in the local cache database, sending the identification resolution request to the target node includes:
[0011] Obtaining the identification code to be queried according to the identification resolution request;
[0012] According to the identification code to be queried, the target identification information is searched from the local cache database. If the target identification information matching the identification code to be queried is not found, the identification resolution request is sent to the target node.
[0013] In an optional implementation, the identity resolution request includes: an identity code to be queried.
[0014] In an optional implementation manner, searching for the target identification information from a local cache database according to the identification resolution request includes:
[0015] Obtaining registration time according to the identity resolution request;
[0016] According to the registration time, the target identification information is searched from the local cache database, and the identification information that meets the registration time is determined to be the target identification information.
[0017] In an optional implementation manner, if the identifier resolution request includes: a registration time, obtaining the identifier code to be queried according to the identifier resolution request includes:
[0018] According to the registration time, the identification code to be queried corresponding to the registration time is obtained.
[0019] In an optional implementation manner, if the target identification information is not found in the local cache database, sending the identification resolution request to the target node includes:
[0020] Determine a node distance value according to the area information of the identification code to be queried and the area information of the local node;
[0021] The target node is determined according to the node distance value and the area information of the local node, and the identity resolution request is sent to the target node.
[0022] In an optional implementation manner, before searching the local cache database for the target identification information according to the identification resolution request, the method further includes:
[0023] Constructing a distributed storage architecture, the distributed storage architecture comprising multiple levels of nodes, wherein the multiple levels of nodes include local nodes;
[0024] Storing multiple identification information in cache databases of multiple nodes in the distributed storage architecture;
[0025] The multiple nodes are clustered according to the content attributes in the identification information.
[0026] In an optional implementation, if the target node fails to find the target identification information from the target node cache database, the target node sends the identification resolution request to the superior node, so that the superior node searches for the target identification information from the superior node cache database according to the identification resolution request, and returns the search result to the server of the target node.
[0027] In a second aspect, an embodiment of the present application further provides an identity resolution device, which is applied to a server in a local node, and the device includes:
[0028] A receiving module, used to receive an identity resolution request sent by a client;
[0029] A search module, used to search for target identification information from a local cache database according to the identification resolution request;
[0030] A sending module, configured to send the identification resolution request to a target node if the target identification information is not found in the local cache database, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in the distributed storage architecture except the local node;
[0031] The sending module is further configured to obtain the parsing information corresponding to the target identification information and send the parsing information to the client if the search result indicates that the search is successful, so that the client displays the parsing information.
[0032] In the third aspect, an embodiment of the present application also provides a server, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the server is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the identity resolution method as described in any one of the first aspects.
[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the identification resolution method as described in any one of the first aspects are executed.
[0034] The beneficial effects of this application are:
[0035] An embodiment of the present application provides an identification resolution method, device and server, the method comprising: receiving an identification resolution request sent by a client, searching for target identification information from a local cache database according to the identification resolution request, and if the target identification information is not found in the local cache database, sending an identification resolution request to a target node, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in a distributed storage architecture except the local node; if the search result indicates that the search is successful, obtaining resolution information corresponding to the target identification information and sending it to the client, so that the client displays the resolution information. In the method of the present application, the target identification information is first searched for by the server of the local node. If not found, an identification resolution request is sent to the target node, so that the server of the target node searches for the target identification information until the target identification information is found, and the resolution information corresponding to the target identification information is returned to the server of the local node. By means of multiple iterative searches, the resolution information corresponding to the target identification information can be found quickly and accurately. In addition, if the local cache database is not found, the target node cache database is searched, which can effectively reduce the number of direct visits to the storage node and improve query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 One of the flowcharts of an identification resolution method provided in an embodiment of the present application;
[0038] Figure 2 A second flowchart of an identification resolution method provided in an embodiment of the present application;
[0039] Figure 3 A third flowchart of an identification resolution method provided in an embodiment of the present application;
[0040] Figure 4 A fourth flowchart of an identification resolution method provided in an embodiment of the present application;
[0041] Figure 5 A fifth flowchart of an identification resolution method provided in an embodiment of the present application;
[0042] Figure 6 A schematic diagram of the functional modules of an identification resolution device provided in an embodiment of the present application;
[0043] Figure 7 A schematic diagram of a server provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments.
[0045] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0046] In addition, the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0047] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0048] In order to quickly and accurately find the target identification information, an embodiment of the present application provides an identification resolution method, in which the server in the local node searches for the target identification information from the local cache database based on the received identification resolution request. If the target identification information is not found, an identification resolution request is sent to the target node in the distributed storage architecture, so that the target node searches for the target identification information. If the target node finds the target identification information, the result of the successful search and the resolution information corresponding to the target identification information are returned to the server of the local node, and the resolution information is displayed through the client, thereby realizing fast and accurate search for the resolution information corresponding to the target identification information.
[0049] The following is a detailed explanation of an identification resolution method provided in an embodiment of the present application through specific examples in conjunction with the accompanying drawings. Figure 1 One of the flowcharts of an identification resolution method provided in an embodiment of the present application; Figure 1 As shown, the method includes:
[0050] S101: Receive an identity resolution request sent by a client.
[0051] S102: According to the identity resolution request, search for target identity information from a local cache database.
[0052] In this embodiment, the user enters the identification information to be queried in the input box of the preset identification input interface on the client, and clicks the query control to send an identification resolution request to the server, so that the server can receive the identification resolution request sent by the client, and the identification resolution request includes the identification information to be queried.
[0053] A large amount of identification information and resolution information corresponding to the identification information are pre-stored in the local cache database. For example, if the identification information is A, the resolution information corresponding to the identification information A includes identity information, registration information, address information, and the like.
[0054] The server searches for the target identification information from the local cache database based on the identification resolution request. If identification information is found in the local cache database that is consistent with the identification information to be queried, the server determines that the identification information is the target identification information, and determines the resolution information corresponding to the target identification information. The server returns the resolution information corresponding to the target identification information to the client, so that the client displays the resolution information corresponding to the target identification information on the preset identification input interface.
[0055] It should be noted that when the server receives the identity resolution request sent by the client, it is also necessary to verify the user identity of the client based on the role-based access control (RBAC) mechanism to determine whether the user identity is authorized. If the verification is successful, the target identity information is searched from the local cache database according to the identity resolution request. If the verification fails, the target identity information cannot be found, so that the user can only access the identity information within his authority to prevent unauthorized access and data leakage.
[0056] S103: If the target identification information is not found in the local cache database, send an identification resolution request to the target node, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node.
[0057] The target node is a node at another level in the distributed storage architecture except the local node.
[0058] Specifically, if the server of the local node does not find identification information consistent with the identification information to be queried in the local cache database, the target node is determined in the distributed storage architecture, and an identification resolution request is sent to the target node, so that the target node searches for the target identification information from the target node cache database based on the identification information to be queried in the identification resolution request.
[0059] If the server of the target node finds that the identification information is consistent with the identification information to be queried in the target node cache database, the identification information is determined to be the target identification information, and the resolution information corresponding to the target identification information is determined, and the search result is returned to the server of the local node. If the search result is successful, the search result also includes the resolution information corresponding to the target identification information.
[0060] The local node and the target node are nodes in the pre-built distributed storage architecture. The target node is the parent node of the local node, which can be the parent node, or the parent node of the next level, without limitation. For example, if the local node is an enterprise-level node, the target node can be a municipal-level node, a provincial-level node, etc.
[0061] Optionally, if the target node fails to find the target identification information from the target node cache database, the target node sends an identification resolution request to the superior node, so that the superior node searches for the target identification information from the superior node cache database according to the identification resolution request, and returns the search result to the target node's server.
[0062] Specifically, if the target node fails to find the target identification information in the target node cache database, the target node's parent node is determined in the distributed storage architecture, and the target node sends an identification resolution request to the parent node, so that the parent node searches for the target identification information from the parent node cache database based on the identification information to be queried in the identification resolution request.
[0063] If the server of the upper-level node finds that the identification information is consistent with the identification information to be queried in the cache database of the upper-level node, the identification information is determined to be the target identification information, and the resolution information corresponding to the target identification information is determined, and the search result is returned to the server of the target node. If the search result is successful, the search result also includes the resolution information corresponding to the target identification information. At this time, the target node returns the resolution information corresponding to the target identification information to the server of the local node.
[0064] It should be noted that if the superior node also fails to find the target identification information, it will continue to send identification resolution requests to the superior node until the target identification information is found by the target superior node, and return the resolution information of the target identification information in turn. If no node in the distributed storage architecture can find the target identification information, the search result returned to the server of the local node is a search failure.
[0065] S104: If the search result indicates that the search is successful, obtain the resolution information corresponding to the target identification information and send it to the client, so that the client displays the resolution information.
[0066] Specifically, the server of the local node sends the parsing information corresponding to the target identification information to the client, so that the client displays the parsing information corresponding to the target identification information on the preset identification input interface.
[0067] It should be noted that, when the local node sends an identification resolution request to the target node, and when the target node returns the search result to the local node, the queried identification information and the resolution information are encrypted through an encryption protocol to ensure the security and integrity of the information during transmission. The encryption protocol can be Secure Socket Layer (SSL), Transport Layer Security (TLS), etc.
[0068] In addition, the server of the local node also records all access and modification operations of identification information for security auditing, and monitors in real time whether there are security threats in the process of identification information query, and regularly backs up identification information to ensure rapid recovery when data is lost or damaged.
[0069] In summary, an embodiment of the present application provides an identification resolution method, which includes: receiving an identification resolution request sent by a client, searching for target identification information from a local cache database according to the identification resolution request, and if the target identification information is not found in the local cache database, sending an identification resolution request to a target node, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in a distributed storage architecture except the local node; if the search result indicates that the search is successful, obtaining resolution information corresponding to the target identification information and sending it to the client, so that the client displays the resolution information. In the method of the present application, the target identification information is first searched for by the server of the local node. If not found, an identification resolution request is sent to the target node, so that the server of the target node searches for the target identification information until the target identification information is found, and the resolution information corresponding to the target identification information is returned to the server of the local node. By means of multiple iterative searches, the resolution information corresponding to the target identification information can be found quickly and accurately. In addition, if the local cache database is not found, the target node cache database is searched, which can effectively reduce the number of direct visits to the storage node and improve query efficiency.
[0070] The present application also provides another possible implementation of the identification resolution method. Figure 2 A second flow chart of an identification resolution method provided in an embodiment of the present application is as follows: Figure 2 As shown, if the target identification information is not found in the local cache database, an identification resolution request is sent to the target node, including:
[0071] S201. Obtain the identification code to be queried according to the identification resolution request.
[0072] S202: Search the target identification information from the local cache database according to the identification code to be queried. If the target identification information matching the identification code to be queried is not found, send an identification resolution request to the target node.
[0073] Optionally, the identity resolution request includes: an identity code to be queried.
[0074] In this embodiment, if the user enters the identification information to be queried as the identification code to be queried in the input box of the preset identification input interface on the client, the identification resolution request sent to the server includes the identification code to be queried, and the server reads the identification code to be queried from the identification resolution request, wherein the identification code to be queried includes fields, field values, area information, etc.
[0075] The server of the local node searches for the target identification information from the local cache database according to the identification code to be queried. If identification information is found in the local cache database that is consistent with the identification code to be queried, the identification information is determined to be the target identification information, and the resolution information corresponding to the target identification information is determined, and the resolution information corresponding to the target identification information is returned to the client.
[0076] In the method provided in the embodiment of the present application, according to the identification resolution request, the identification code to be queried is obtained, and according to the identification code to be queried, the target identification information is searched from the local cache database. If the target identification information matching the identification code to be queried is not found, an identification resolution request is sent to the target node, so that the target identification information is determined by searching for the identification information matching the identification code to be queried.
[0077] The present application also provides another possible implementation of the identification resolution method. Figure 3 A flowchart of a method for resolving an identifier provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, according to the identity resolution request, the target identity information is searched from the local cache database, including:
[0078] S301. Obtain registration time according to the identity resolution request.
[0079] S302: Search the target identification information from the local cache database according to the registration time, and determine the identification information that meets the registration time as the target identification information.
[0080] In this embodiment, if the user enters the registration time as the identification information to be queried in the input box of the preset identification input interface on the client, the registration time is included in the identification resolution request sent to the server. The server of the local node searches for the target identification information from the local cache database according to the registration time, and determines that the identification information that meets the registration time is the target identification information, and returns the target identification information to the client, and displays the target identification information through the client, wherein the number of identification information that meets the registration time as the target identification information can be multiple.
[0081] Optionally, if the identity resolution request includes: registration time, obtain the query identity code corresponding to the registration time according to the registration time.
[0082] Specifically, if the server searches for the target identification information from the local cache database according to the registration time and determines that the resolution information corresponding to the target identification information that meets the registration time does not meet the requirements, the identification code to be queried corresponding to the registration time is determined from the resolution information corresponding to the target identification information.
[0083] In the method provided in the embodiment of the present application, the registration time is obtained according to the identification resolution request, the target identification information is searched from the local cache database according to the registration time, and the identification information that meets the registration time is determined as the target identification information, thereby determining the target identification information by searching for the identification information that meets the registration time.
[0084] The present application also provides another possible implementation of the identification resolution method. Figure 4 A fourth flowchart of an identification resolution method provided in an embodiment of the present application is as follows: Figure 4 As shown, if the target identification information is not found in the local cache database, an identification resolution request is sent to the target node, including:
[0085] S401: Determine a node distance value according to the area information of the identification code to be queried and the area information of the local node.
[0086] S402: Determine a target node according to the node distance value and the area information of the local node, and send an identity resolution request to the target node.
[0087] In this embodiment, the identification code to be queried includes region information. Based on the bidirectional search algorithm of node distance, the absolute value of the difference between the region information of the identification code to be queried and the region information of the local node is calculated, and the calculated absolute value is determined to be the node distance value.
[0088] Since both the local node and the target node belong to the distributed storage architecture, each node has area information. The target area information can be determined based on the node distance value and the area information of the local node, and the target node can be determined based on the target area information, so that the server of the local node sends an identification resolution request to the target node.
[0089] In the method provided by the implementation of the present application, the node distance value is determined based on the area information of the identifier to be queried and the area information of the local node; the target node is determined based on the node distance value and the area information of the local node, and an identifier resolution request is sent to the target node, thereby accurately determining the target node based on the area information of the identifier to be queried and the area information of the local node.
[0090] The present application also provides another possible implementation of the identification resolution method. Figure 5 A fifth flow chart of an identification resolution method provided in an embodiment of the present application is as follows: Figure 5 As shown, before searching the target identification information from the local cache database according to the identification resolution request, the method also includes:
[0091] S501. Build a distributed storage architecture.
[0092] The distributed storage architecture includes multiple levels of nodes, wherein the multiple levels of nodes include local nodes.
[0093] S502: Store multiple identification information in cache databases of multiple nodes in a distributed storage architecture.
[0094] S503: Cluster multiple nodes according to content attributes in the identification information.
[0095] In this embodiment, a distributed storage architecture is constructed in advance based on the node attributes of the local node and the node attributes of the target node. The nodes of the distributed storage architecture can be divided into multiple levels, where content attributes may include: region, level, area, etc., but are not limited to this and can be determined according to the division needs.
[0096] For example, nodes with provincial attributes are at the first level, nodes with municipal attributes are at the second level, and nodes with enterprise attributes are at the third level. Multiple nodes are associated based on node attributes, and the target nodes are nodes at other levels in the distributed storage architecture except for local nodes. For example, the target nodes can be provincial nodes at the first level and municipal nodes at the second level.
[0097] According to the storage performance and capacity requirements of each node, multiple identification information is stored in the cache database of multiple nodes in the distributed storage architecture. For example, the cache database of multiple nodes may include a local cache database of a third-layer local node, which is used to store recently accessed identification information to improve query efficiency, a regional cache database of a second-layer municipal node, which is used to cache frequently accessed identification information in the region, and a global cache database of a third-layer provincial node, which is used to cache the most frequently accessed identification information in the entire system to reduce the burden on storage nodes.
[0098] According to the content attributes in the identification information, the nodes storing the identification information with the same content attributes are clustered to facilitate the search of the target identification information.
[0099] In the method provided in the embodiment of the present application, a distributed storage architecture is constructed, and the distributed storage architecture includes nodes at multiple levels, wherein the nodes at multiple levels include local nodes; multiple identification information is stored in a cache database of multiple nodes in the distributed storage architecture; multiple nodes are clustered according to content attributes in the identification information to achieve multi-level caching of multiple identification information, which helps to improve the efficiency of searching for target identification information.
[0100] The following is a corresponding explanation of the identification resolution device and server provided by any of the above embodiments of the present application. The specific implementation process and the technical effects produced are the same as those of the corresponding method embodiments mentioned above. For the sake of brief description, the parts not mentioned in this embodiment can refer to the corresponding contents in the method embodiments.
[0101] Figure 6 A functional module diagram of an identification resolution device provided in an embodiment of the present application. Applied to a server in a local node, such as Figure 6 As shown, the identification resolution device 100 includes:
[0102] The receiving module 110 is used to receive an identity resolution request sent by a client;
[0103] A search module 120, configured to search for target identification information from a local cache database according to the identification resolution request;
[0104] The sending module 130 is used to send the identification resolution request to the target node if the target identification information is not found in the local cache database, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in the distributed storage architecture except the local node;
[0105] The sending module 130 is used to obtain the parsing information corresponding to the target identification information and send it to the client if the search result indicates that the search is successful, so that the client displays the parsing information.
[0106] Optionally, the sending module 130 is also used to obtain the identification code to be queried according to the identification resolution request; according to the identification code to be queried, search the target identification information from the local cache database, and if the target identification information matching the identification code to be queried is not found, send the identification resolution request to the target node.
[0107] Optionally, the identification resolution request includes: an identification code to be queried.
[0108] Optionally, the search module 120 is further used to obtain a registration time according to the identification resolution request; according to the registration time, search the target identification information from a local cache database, and determine that the identification information that meets the registration time is the target identification information.
[0109] Optionally, if the identity resolution request includes: registration time, the device further includes:
[0110] The acquisition module is used to acquire the identification code to be queried corresponding to the registration time according to the registration time.
[0111] Optionally, the sending module 130 is also used to determine the node distance value based on the area information of the identifier to be queried and the area information of the local node; determine the target node based on the node distance value and the area information of the local node, and send the identifier resolution request to the target node.
[0112] Optionally, the device further comprises:
[0113] A construction module is used to construct a distributed storage architecture, wherein the distributed storage architecture includes nodes at multiple levels, wherein the nodes at multiple levels include local nodes; multiple identification information is stored in a cache database of multiple nodes in the distributed storage architecture; and the multiple nodes are clustered according to content attributes in the identification information.
[0114] Optionally, if the target node fails to find the target identification information from the target node cache database, the target node sends the identification resolution request to the superior node, so that the superior node searches for the target identification information from the superior node cache database according to the identification resolution request, and returns the search result to the server of the target node.
[0115] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0116] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0117] Figure 7 This is a schematic diagram of a server provided in an embodiment of the present application, which can be used for identity resolution. Figure 7 As shown, the server includes: a processor 210 , a storage medium 220 , and a bus 230 .
[0118] The storage medium 220 stores machine-readable instructions executable by the processor 210. When the server is running, the processor 210 communicates with the storage medium 220 via the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0119] Optionally, the present application further provides a storage medium 220, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0120] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0123] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0124] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for identity resolution, characterized in that: Applied to a server in a local node, the method comprises: Receive the identity resolution request sent by the client; According to the identification resolution request, searching for the target identification information from the local cache database; If the target identification information is not found in the local cache database, the identification resolution request is sent to the target node, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in the distributed storage architecture except the local node; If the search result indicates that the search is successful, the parsing information corresponding to the target identification information is obtained and sent to the client, so that the client displays the parsing information.
2. The method according to claim 1, characterized in that If the target identification information is not found in the local cache database, sending the identification resolution request to the target node includes: Obtaining the identification code to be queried according to the identification resolution request; According to the identification code to be queried, the target identification information is searched from the local cache database. If the target identification information matching the identification code to be queried is not found, the identification resolution request is sent to the target node.
3. The method according to claim 2, characterized in that The identification resolution request includes: an identification code to be queried.
4. The method according to claim 2, characterized in that The searching the target identification information from the local cache database according to the identification resolution request includes: Obtaining registration time according to the identity resolution request; According to the registration time, the target identification information is searched from the local cache database, and the identification information that meets the registration time is determined to be the target identification information.
5. The method according to claim 2, characterized in that If the identifier resolution request includes: registration time, obtaining the identifier code to be queried according to the identifier resolution request includes: According to the registration time, the identification code to be queried corresponding to the registration time is obtained.
6. The method according to any one of claims 2 to 5, characterized in that: If the target identification information is not found in the local cache database, sending the identification resolution request to the target node includes: Determine a node distance value according to the area information of the identification code to be queried and the area information of the local node; The target node is determined according to the node distance value and the area information of the local node, and the identity resolution request is sent to the target node.
7. The method according to claim 1, characterized in that Before searching the target identification information from the local cache database according to the identification resolution request, the method further includes: Constructing a distributed storage architecture, the distributed storage architecture comprising multiple levels of nodes, wherein the multiple levels of nodes include local nodes; Storing multiple identification information in cache databases of multiple nodes in the distributed storage architecture; The multiple nodes are clustered according to the content attributes in the identification information.
8. The method according to claim 1, characterized in that If the target node fails to find the target identification information from the target node cache database, the target node sends the identification resolution request to the superior node, so that the superior node searches for the target identification information from the superior node cache database according to the identification resolution request, and returns the search result to the server of the target node.
9. An identification resolution device, characterized in that: Applied to a server in a local node, the device comprises: A receiving module, used to receive an identity resolution request sent by a client; A search module, used to search for target identification information from a local cache database according to the identification resolution request; A sending module, configured to send the identification resolution request to a target node if the target identification information is not found in the local cache database, so that the target node searches for the target identification information from the target node cache database according to the identification resolution request, and returns the search result to the server of the local node; the target node is a node at another level in the distributed storage architecture except the local node; The sending module is further configured to obtain the parsing information corresponding to the target identification information and send the parsing information to the client if the search result indicates that the search is successful, so that the client displays the parsing information.
10. A server, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the server is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to perform the steps of the identification resolution method as described in any one of claims 1 to 8.