Private number binding relation processing method and related equipment

Through database sharding technology and the use of private numbers as sharding keys, the performance bottleneck of traditional databases in processing private number binding relationships under high concurrency is solved, and the stability and efficiency of the system are improved.

CN118821079APending Publication Date: 2024-10-22BEIJING YOUZHUJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410954931.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In high-concurrency scenarios, it is difficult for traditional relational databases to efficiently handle private number binding relationships, leading to problems such as soaring CPU usage, excessive number of data rows written, master-slave delays, and reduced reading and writing efficiency.

Method used

Using database sharding technology, private number binding relationships are stored in multiple database instances, and private numbers are used as sharding keys to achieve data sharding and routing, improving system performance and scalability.

Benefits of technology

It effectively solves the problems of soaring CPU usage, master-slave delay and reduced reading and writing efficiency under high concurrency, and improves the stability and reading and writing efficiency of the private number business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821079A_ABST
    Figure CN118821079A_ABST
Patent Text Reader

Abstract

The invention provides a privacy number binding relation processing method. The privacy number binding relation processing method comprises the steps of receiving a privacy number binding request comprising a user identifier; selecting a first target privacy number from a privacy number pool, and establishing a first binding relationship between the first target privacy number and the user identifier; determining a first target database instance from at least one database instance by taking the first target privacy number as a fragmentation key; and storing the first binding relationship in the first target database instance. The embodiment of the invention further provides a privacy number binding relation processing device and a related device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method for processing a privacy number binding relationship and related equipment. Background Art

[0002] Privacy numbers are used in number privacy protection services. In certain business scenarios (such as taxis, food delivery, etc.), business personnel (such as drivers, couriers, etc.) and users communicate by phone through privacy numbers. Business personnel and users can only see each other's privacy middle number, which can meet the need to hide the real number and protect the number privacy of both parties.

[0003] The core interface of the privacy number service is to create and store privacy number binding relationships, for example, to create and store the binding relationship between the user's real phone number A and privacy number X. In this way, when any user calls privacy number X, he can find the real phone number A of the user he wants to call based on the stored binding relationship. However, in high-concurrency scenarios, how to efficiently read, write and store privacy number binding relationships is a technical problem that needs to be solved. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a method for processing the binding relationship of a privacy number, which can ensure that the core business links such as binding, unbinding, updating, querying called parties and receiving call records of privacy numbers can be effectively implemented, and can also effectively solve the problems of soaring CPU utilization caused by high query rates per second (QPS), master-slave delays caused by too many rows of written data, and reduced reading and writing efficiency caused by the storage of massive binding relationship data.

[0005] The method for processing a privacy number binding relationship described in the embodiment of the present disclosure includes: receiving a privacy number binding request including a user identifier; selecting a first target privacy number from a privacy number pool, and establishing a first binding relationship between the first target privacy number and the user identifier; using the first target privacy number as a sharding key, determining a first target database instance from at least one database instance; and storing the first binding relationship in the first target database instance.

[0006] The method for processing a private number binding relationship described in the embodiment of the present disclosure may further include: generating a first binding relationship identifier of the first binding relationship based on the first target private number.

[0007] The privacy number binding relationship processing method described in the embodiment of the present disclosure may further include: receiving a binding relationship processing request including a second binding relationship identifier; wherein the binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request and a binding relationship query request; determining a second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier; using the second target privacy number as a sharding key, determining a second target database instance from the at least one database instance; and processing the second binding relationship corresponding to the second binding relationship identifier stored in the second target database instance based on the binding relationship request.

[0008] In the disclosed embodiment, generating the first binding relationship identifier of the first binding relationship based on the first target privacy number includes: processing the first target privacy number based on a preset privacy number processing method to obtain a first intermediate number corresponding one-to-one to the first target privacy number; generating a preamble code based on a preset preamble code generation method; and combining the preamble code with the first intermediate number to obtain the first binding relationship identifier.

[0009] In the embodiment of the present disclosure, determining the second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier includes: extracting a second intermediate number from the second binding relationship identifier; and parsing the second intermediate number based on a pre-set privacy number parsing method to obtain the second target privacy number; wherein the privacy number parsing method is the inverse operation of the privacy number processing method.

[0010] The privacy number binding relationship processing method described in the embodiment of the present disclosure may further include: receiving a business query request including a third target privacy number; wherein the business query request includes: a user identification query request and a call record query request; using the third target privacy number as a shard key, determining a third target database instance from at least one database instance; reading a third binding relationship corresponding to the third target privacy number from the third target database instance; and determining the information to be queried corresponding to the third target privacy number based on the business query request and the third binding relationship.

[0011] Corresponding to the above-mentioned method for processing a private number binding relationship, an embodiment of the present disclosure further provides a device for processing a private number binding relationship.

[0012] The above-mentioned privacy number binding relationship processing device may include: a binding relationship generation request receiving module, a binding relationship generation module, a sharding proxy module and at least one database instance; wherein the binding relationship generation request receiving module is used to receive a privacy number binding request including a user identifier; the binding relationship generation module is used to select a first target privacy number from a privacy number pool and establish a first binding relationship between the first target privacy number and the user identifier; the sharding proxy module is used to determine a first target database instance from the at least one database instance using the first target privacy number as a sharding key; and the first target database instance is used to store the first binding relationship.

[0013] The apparatus for processing a private number binding relationship described in the embodiment of the present disclosure may further include: a binding relationship identifier generating module, configured to generate a first binding relationship identifier for the first binding relationship based on the first target private number.

[0014] The privacy number binding relationship processing device described in the embodiment of the present disclosure may further include: a binding relationship processing request receiving module and a privacy number parsing module; wherein the binding relationship processing request receiving module is used to receive a binding relationship processing request including a second binding relationship identifier; wherein the binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request and a binding relationship query request; the privacy number parsing module is used to determine the second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier; the sharding proxy module is further used to determine the second target database instance from the at least one database instance using the second target privacy number as the sharding key; and the second target database instance is used to process the second binding relationship corresponding to the second binding relationship identifier stored in the second target database instance based on the binding relationship request.

[0015] In an embodiment of the present disclosure, the binding relationship identifier generation module includes: a preprocessing unit, used to process the first target privacy number based on a preset privacy number processing method to obtain a first intermediate number that corresponds one-to-one to the first target privacy number; a preamble code generation unit, used to generate a preamble code based on a preset preamble code generation method; and a combination unit, used to combine the preamble code with the first intermediate number to obtain the first binding relationship identifier.

[0016] In an embodiment of the present disclosure, the privacy number parsing module includes: an intermediate number extraction unit, used to extract a second intermediate number from the second target privacy number; and a parsing unit, used to parse the second intermediate number based on a pre-set privacy number parsing method to obtain the second target privacy number; wherein the privacy number parsing method is the inverse operation of the privacy number processing method.

[0017] The privacy number binding relationship processing device described in the embodiment of the present disclosure may further include: a query request acquisition module, used to receive a business query request including a third target privacy number; wherein the business query request includes: a user identification query request and a call record query request; wherein the sharding proxy module is further used to determine a third target database instance from at least one database instance using the third target privacy number as a sharding key; and the third target database instance is used to read the third binding relationship corresponding to the third target privacy number from the third target database instance; and determine the information to be queried corresponding to the third target privacy number based on the business query request and the third binding relationship.

[0018] In addition, an embodiment of the present disclosure further provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned privacy number binding relationship processing method when executing the program.

[0019] An embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the above-mentioned privacy number binding relationship processing method.

[0020] An embodiment of the present disclosure further provides a computer program product, including computer program instructions, which, when executed on a computer, enable the computer to execute the above-mentioned privacy number binding relationship processing method.

[0021] The binding relationship processing method and related devices described in the embodiments of the present disclosure can not only ensure that core business links such as binding, unbinding, updating, querying called parties and receiving call records of privacy numbers can be effectively implemented, but also can effectively solve the CPU usage surge caused by high QPS, the master-slave delay problem caused by too many rows of written data, and the reduced reading and writing efficiency caused by the storage of massive binding relationship data, thereby improving the stability and reading and writing efficiency of the privacy number service. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0023] Figure 1 The implementation process of the binding relationship processing method described in some embodiments of the present disclosure is shown.

[0024] Figure 2 The specific method flow of generating a first binding relationship identifier of a first binding relationship based on a first target privacy number as described in some embodiments of the present disclosure is shown.

[0025] Figure 3 The implementation process of the binding relationship processing method described in other embodiments of the present disclosure is shown.

[0026] Figure 4 The implementation process of the business query method described in some embodiments of the present disclosure is shown.

[0027] Figure 5 The internal structure of the device for processing the private number binding relationship described in some embodiments of the present disclosure is shown.

[0028] Figure 6 A more specific schematic diagram of the hardware structure of an electronic device described in some embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0030] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0031] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0032] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0033] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0034] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0035] As mentioned above, privacy numbers are used in number privacy protection services. The core interface of the privacy number service is to create and store privacy number binding relationships. Normally, a stand-alone relational database (such as MySQL) is used to store the above privacy number binding relationships. However, in high-concurrency scenarios, due to the non-scalability of relational database write libraries, stand-alone storage will encounter performance bottlenecks, including CPU usage surges due to high QPS, master-slave delays due to excessive number of write data rows, and reduced read and write efficiency due to the storage of massive binding relationship data.

[0036] In order to solve the performance bottleneck problem of traditional relational database stand-alone in high-concurrency scenarios, in the embodiments of the present disclosure, database sharding technology can be used to store the above-mentioned privacy number binding relationship. Database sharding refers to splitting a large database into multiple small database instances, each instance is only responsible for the storage and query of a part of the data. These small database instances are called shards, and each shard contains part of the data and the corresponding index. Data can be divided between shards according to certain rules. Among them, key-based sharding is a fairly common sharding architecture. For example, data can be divided according to sharding keys such as user ID, geographic location or time. In an architecture using database sharding, the application can route requests to the correct shard through a router or proxy layer to achieve data storage and query. Database sharding can improve the performance and scalability of the system, reduce the pressure on a single database, and improve the security and reliability of data. Specifically, in the embodiments of the present disclosure, the database used to store the above-mentioned private number binding relationship can be sharded to generate at least one database instance to store the above-mentioned private number binding relationship, thereby solving the CPU usage surge caused by high QPS, the master-slave delay problem caused by too many rows of written data, and the problem of reduced read and write efficiency caused by the storage of massive binding relationship data. It should be noted that the embodiments of the present disclosure do not limit the specific sharding method used for database sharding.

[0037] Based on the above-mentioned method of using a distributed database to store binding relationships, the embodiments of the present disclosure provide a method for processing privacy number binding relationships, which can ensure that core business links such as binding, unbinding, updating, querying called parties, and receiving call records of privacy numbers can be effectively implemented, and can also effectively solve the problems of soaring CPU usage caused by high QPS, master-slave delays caused by too many rows of written data, and reduced reading and writing efficiency caused by the storage of massive binding relationship data.

[0038] Figure 1 The implementation process of the binding relationship processing method described in some embodiments of the present disclosure is shown. Figure 1 The binding relationship processing method described in the embodiment of the present disclosure includes the following steps.

[0039] In step 110, a private number binding request including a user identification is received.

[0040] In some embodiments of the present disclosure, the user identifier may be a real phone number of the user. In other embodiments of the present disclosure, the user identifier may also be information used to identify the user, such as an identifier of an Internet application used by the user.

[0041] In step 120, a first target privacy number is selected from the privacy number pool, and a first binding relationship is established between the first target privacy number and the user identifier.

[0042] In some embodiments of the present disclosure, the above-mentioned private number pool refers to a data pool for storing unused private numbers. When a private number is bound to a user ID, the private number will be deleted from the private number pool; and when a private number is unbound from a user ID, the private number will be recycled back into the private number pool.

[0043] In addition, the embodiments of the present disclosure do not limit the specific method of selecting the first target privacy number from the privacy number pool. In practical applications, for example, the first target privacy number can be selected in a random manner, or other pre-set selection methods can be used to select the first target privacy number.

[0044] In step 130, a first target database instance is determined from at least one database instance using the first target privacy number as a sharding key.

[0045] In an embodiment of the present disclosure, in the above step 130, the privacy number can be used as the shard key of the database shard to complete the operations of adding, deleting, modifying and querying data in multiple database shards.

[0046] It can be understood that by using the above-mentioned first target privacy number as the sharding key, the database storing the privacy number binding relationship can be sharded. In addition, by using the above-mentioned first target privacy number as the sharding key, the effective and direct implementation of core business links such as privacy number binding, querying called parties, and receiving call records can be directly guaranteed, and the effective implementation of core business links such as unbinding, updating, and querying of binding relationships can be indirectly guaranteed. Furthermore, by using the above-mentioned first target privacy number as the sharding key, the balanced distribution of data in different database shards can be effectively guaranteed, thereby ensuring the overall performance of the database shards.

[0047] In step 140, the first binding relationship is stored in the first target database instance.

[0048] After determining the first target database instance for storing the above-mentioned first binding relationship, that is, after determining the database shard for storing the above-mentioned first binding relationship, the above-mentioned first binding relationship can be sent to the above-mentioned first target database instance to add corresponding records in the first target database instance, thereby completing the storage of the privacy number binding relationship.

[0049] It can be seen from the above binding relationship processing method that by adopting database sharding technology and using the privacy number as the sharding key of the database sharding, it is possible to effectively solve the CPU usage surge caused by high QPS, the master-slave delay problem caused by too many rows of written data, and the reduced reading and writing efficiency caused by the storage of massive binding relationship data, thereby improving the stability and reading and writing efficiency of the privacy number service.

[0050] However, in actual applications, for the unbinding, updating and querying operations of binding relationships, the corresponding requests usually carry information that identifies the binding relationship rather than the privacy number. Therefore, using the privacy number as the sharding key cannot directly implement the unbinding, updating and querying operations of the above binding relationships.

[0051] In order to solve the above problem, in an embodiment of the present disclosure, the above binding relationship processing method may further include: generating a first binding relationship identifier of the above first binding relationship based on the above first target privacy number. Specifically, Figure 2 The specific method flow of generating a first binding relationship identifier of a first binding relationship based on a first target privacy number as described in some embodiments of the present disclosure is shown.

[0052] like Figure 2 As shown, the method for generating the first binding relationship identifier of the first binding relationship may include the following steps.

[0053] In step 210, the first target privacy number is processed based on a preset privacy number processing method to obtain a first intermediate number that corresponds one-to-one to the first target privacy number.

[0054] In the embodiments of the present disclosure, the privacy number processing method may include a base conversion algorithm, such as converting a decimal number into a hexadecimal number, etc. It should be noted that the privacy number processing method should be reversible. That is, the first target privacy number can be converted into a first intermediate number through the privacy number processing method; and conversely, the first intermediate number can also be converted into the first target privacy number through the inverse operation of the privacy number processing method (also referred to as the privacy number parsing method hereinafter).

[0055] In step 220, a preamble is generated based on a preset preamble generation method.

[0056] In an embodiment of the present disclosure, the above-mentioned preamble generation method is a predetermined algorithm that can generate a unique sequence, thereby ensuring that the first binding relationship identifier finally generated is unique. For example, in some examples, a unique random number can be randomly generated as the above-mentioned preamble. For example, in other embodiments, the above-mentioned preamble can be generated in a combination of timestamp + random number or a combination of database instance identifier + timestamp + random number.

[0057] In step 230, the leading code is combined with the first intermediate number to obtain the first binding relationship identifier.

[0058] In an embodiment of the present disclosure, the above-mentioned preamble code and the above-mentioned first intermediate number can be combined in a pre-set combination method, for example, the above-mentioned preamble code and the above-mentioned first intermediate number are directly spliced ​​together. For example, the form of the first binding relationship identifier finally generated is: database instance identifier + timestamp + random number + first intermediate number. It should be noted that the embodiment of the present disclosure does not limit the specific combination method, but in subsequent steps, it is necessary to be able to extract the intermediate number from the binding relationship identifier again based on the above-mentioned pre-set combination method, and restore the privacy number based on the above-mentioned intermediate number.

[0059] Based on the binding relationship identifier established in the above manner, the embodiments of the present disclosure can further implement the unbinding, updating and querying operations of the above binding relationship. Specifically, the embodiments of the present disclosure further disclose a method for processing the binding relationship of a private number. Figure 3 As shown, the above-mentioned privacy number binding relationship processing method may include the following steps.

[0060] In step 310, a binding relationship processing request including a second binding relationship identifier is received.

[0061] In the embodiment of the present disclosure, the above-mentioned binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request and a binding relationship query request. In addition, the above-mentioned second binding relationship identifier is the identifier of the binding relationship to be processed, which can be specifically Figure 2 The method shown is established.

[0062] In step 320, a second target privacy number corresponding to the second binding relationship identifier is determined based on the second binding relationship identifier.

[0063] Specifically, in the above step 320, the second intermediate number can be first extracted from the above second binding relationship identifier; then, the second intermediate number can be parsed based on a pre-set privacy number parsing method to obtain the second target privacy number. As mentioned above, in the process of extracting the above second intermediate number, a reverse operation can be performed based on a predetermined combination method to extract the second intermediate number from the above second binding relationship identifier. In addition, the above privacy number parsing method is the inverse operation of the privacy number processing method. For example, assuming that the privacy number processing method is a base conversion operation of converting decimal to hexadecimal, then the privacy number parsing method is a base conversion operation of converting hexadecimal to decimal.

[0064] In step 330, the second target privacy number is used as a sharding key to determine a second target database instance from the at least one database instance.

[0065] In the embodiments of the present disclosure, since the privacy number is used as the shard key when storing the privacy number binding relationship, when updating, unbinding and querying the binding relationship, the privacy number should also be used as the shard key to locate the database instance storing the relevant privacy number binding relationship from multiple database instances.

[0066] In step 340, the second binding relationship corresponding to the second binding relationship identifier stored in the second target database instance is processed based on the binding relationship request.

[0067] Specifically, in an embodiment of the present disclosure, for a binding relationship update request, the second binding relationship corresponding to the above-mentioned second binding relationship identifier stored in the above-mentioned second target database instance can be updated according to the specific content of the update request; for a binding relationship unbinding request, the second binding relationship corresponding to the above-mentioned second binding relationship identifier stored in the above-mentioned second target database instance can be deleted, and the privacy number in the above-mentioned second binding relationship can be recovered; for a binding relationship query request, the corresponding data of the second binding relationship corresponding to the above-mentioned second binding relationship identifier can be obtained from the above-mentioned second target database instance according to the specific content of the query request and returned.

[0068] From this, it can be seen that generating a binding relationship identifier based on a privacy number through the above method can not only ensure the uniqueness of the binding relationship identifier, but also effectively realize core business links such as unbinding, updating and querying operations of the binding relationship.

[0069] Figure 4 The implementation process of the business query method described in some embodiments of the present disclosure is shown. Figure 4 As shown, the method for querying the called party described in the embodiment of the present disclosure may include the following steps.

[0070] In step 410, a service query request including a third target privacy number is received.

[0071] In the embodiment of the present disclosure, the above service query request includes: a user identification query request and a call record query request, etc.

[0072] In step 420, the third target privacy number is used as a sharding key to determine a third target database instance from at least one database instance.

[0073] In the embodiments of the present disclosure, since the privacy number is used as the shard key when storing the privacy number binding relationship, when making a user identification query request and a call record query, the privacy number should also be used as the shard key to locate the database instance that stores the relevant privacy number binding relationship from multiple database instances.

[0074] In step 430, a third binding relationship corresponding to the third target privacy number is read from the third target database instance.

[0075] In step 440, based on the service query request and the third binding relationship, the to-be-queried information corresponding to the third target privacy number is determined.

[0076] In an embodiment of the present disclosure, the above-mentioned information to be queried may include a user identifier or call record information corresponding to the above-mentioned third target privacy number, etc.

[0077] It can be seen that the above privacy number processing method can effectively realize core business links such as querying called parties and receiving call records. In addition, as mentioned above, by adopting database sharding technology and using privacy numbers as sharding keys for database sharding, it is possible to effectively solve the CPU usage surge caused by high QPS, the master-slave delay problem caused by too many rows of written data, and the reduced read and write efficiency caused by the storage of massive binding relationship data, thereby improving the stability of the business and the read and write efficiency.

[0078] Based on the above-mentioned privacy number processing method, an embodiment of the present disclosure further provides a privacy number binding relationship processing device. Figure 5 The internal structure of the device for processing the private number binding relationship described in the embodiment of the present disclosure is shown. Figure 5 As shown, the above-mentioned privacy number binding relationship processing device may include: a binding relationship generation request receiving module 510, a binding relationship generation module 520, a sharding proxy module 530 and at least one database instance 540.

[0079] The binding relationship generation request receiving module 510 is used to receive a private number binding request including a user identifier.

[0080] The binding relationship generating module 520 is used to select a first target privacy number from a privacy number pool, and establish a first binding relationship between the first target privacy number and the user identifier.

[0081] The sharding proxy module 530 is used to determine the first target database instance from the at least one database instance using the first target privacy number as a sharding key.

[0082] The first target database instance 540 is used to store the first binding relationship.

[0083] In an embodiment of the present disclosure, the above-mentioned private number binding relationship processing device may further include: a binding relationship identifier generating module, used to generate a first binding relationship identifier of the first binding relationship based on the above-mentioned first target private number.

[0084] Based on this, the above-mentioned privacy number binding relationship processing device may further include: a binding relationship processing request receiving module and a privacy number parsing module.

[0085] The binding relationship processing request receiving module is used to receive a binding relationship processing request including a second binding relationship identifier. Specifically, the binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request, and a binding relationship query request.

[0086] The privacy number parsing module is used to determine the second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier.

[0087] The sharding proxy module is further used to determine a second target database instance from the at least one database instance using the second target privacy number as a sharding key.

[0088] The second target database instance is used to process the second binding relationship corresponding to the second binding relationship identifier stored in the second target database instance based on the binding relationship request.

[0089] In an embodiment of the present disclosure, the binding relationship identifier generating module 520 may include:

[0090] A pre-processing unit, configured to process the first target privacy number based on a preset privacy number processing method to obtain a first intermediate number corresponding to the first target privacy number;

[0091] A preamble generating unit, configured to generate a preamble based on a preset preamble generating method;

[0092] A combining unit is used to combine the above-mentioned leading code with the first intermediate number to obtain the above-mentioned first binding relationship identifier.

[0093] In an embodiment of the present disclosure, the privacy number parsing module includes:

[0094] An intermediate number extraction unit, used to extract a second intermediate number from the second target privacy number;

[0095] The parsing unit is used to parse the second intermediate number based on a preset privacy number parsing method to obtain the second target privacy number; wherein the privacy number parsing method is an inverse operation of the privacy number processing method.

[0096] In an embodiment of the present disclosure, the above-mentioned privacy number binding relationship processing device may further include: a query request acquisition module, used to receive a service query request including a third target privacy number; wherein the above-mentioned service query request includes: a user identification query request and a call record query request.

[0097] Based on the above structure, the above-mentioned sharding proxy module is further used to determine the third target database instance from at least one database instance using the above-mentioned third target privacy number as the sharding key; and the above-mentioned third target database instance is used to read the third binding relationship corresponding to the above-mentioned third target privacy number from the above-mentioned third target database instance; and determine the information to be queried corresponding to the above-mentioned third target privacy number based on the above-mentioned business query request and the above-mentioned third binding relationship.

[0098] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing the privacy number binding relationship described in any of the above embodiments is implemented.

[0099] Figure 6 A more specific hardware structure diagram of an electronic device provided in this embodiment is shown, and the device may include: a processor 2010, a memory 2020, an input / output interface 2030, a communication interface 2040, and a bus 2050. The processor 2010, the memory 2020, the input / output interface 2030, and the communication interface 2040 are connected to each other in communication within the device through the bus 2050.

[0100] The processor 2010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0101] The memory 2020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 2020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 2020 and are called and executed by the processor 2010.

[0102] The input / output interface 2030 is used to connect input / output devices to realize information input and output. The input / output devices can be configured in the device as components, or can be externally connected to the device to provide corresponding functions. The input devices can include microphones, various sensors, etc., and the output devices can include displays, speakers, vibrators, indicator lights, etc.

[0103] The communication interface 2040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0104] The bus 2050 includes a path that transmits information between the various components of the device (eg, the processor 2010, the memory 2020, the input / output interface 2030, and the communication interface 2040).

[0105] It should be noted that, although the above device only shows the processor 2010, the memory 2020, the input / output interface 2030, the communication interface 2040, and the bus 2050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0106] The electronic device of the above embodiment is used to implement the corresponding privacy number binding relationship processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0107] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the privacy number binding relationship processing method described in any of the above embodiments.

[0108] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0109] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the task processing method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0110] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.

[0111] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0112] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0113] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A method for processing a private number binding relationship, comprising: Receiving a private number binding request including a user identifier; Selecting a first target privacy number from a privacy number pool, and establishing a first binding relationship between the first target privacy number and the user identifier; Using the first target privacy number as a sharding key, determining a first target database instance from at least one database instance; as well as The first binding relationship is stored in the first target database instance.

2. The method according to claim 1, further comprising: A first binding relationship identifier of the first binding relationship is generated based on the first target privacy number.

3. The method according to claim 2, further comprising: Receive a binding relationship processing request including a second binding relationship identifier; wherein the binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request, and a binding relationship query request; Determine, based on the second binding relationship identifier, a second target privacy number corresponding to the second binding relationship identifier; Using the second target privacy number as a shard key, determining a second target database instance from the at least one database instance; and The second binding relationship corresponding to the second binding relationship identifier and stored in the second target database instance is processed based on the first binding relationship request.

4. The method according to claim 3, wherein: Generating the first binding relationship identifier of the first binding relationship based on the first target privacy number includes: Processing the first target privacy number based on a preset privacy number processing method to obtain a first intermediate number corresponding to the first target privacy number; Generate a preamble based on a preset preamble generation method; and The leading code is combined with the first intermediate number to obtain the first binding relationship identifier.

5. The method according to claim 4, wherein: Determining the second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier includes: Extracting a second intermediate number from the second binding relationship identifier; and The second intermediate number is parsed based on a preset privacy number parsing method to obtain the second target privacy number; wherein the privacy number parsing method is an inverse operation of the privacy number processing method.

6. The method according to claim 1, further comprising: Receiving a service query request including a third target privacy number; wherein the service query request includes: a user identification query request and a call record query request; Using the third target privacy number as a sharding key, determining a third target database instance from at least one database instance; Reading a third binding relationship corresponding to the third target privacy number from the third target database instance; and Based on the service query request and the third binding relationship, determine the to-be-queried information corresponding to the third target privacy number.

7. A device for processing a private number binding relationship, comprising: A binding relationship generation request receiving module, a binding relationship generation module, a sharding proxy module, and at least one database instance; wherein, The binding relationship generation request receiving module is used to receive a private number binding request including a user identifier; The binding relationship generating module is used to select a first target privacy number from a privacy number pool, and establish a first binding relationship between the first target privacy number and the user identifier; The sharding proxy module is used to determine a first target database instance from the at least one database instance using the first target privacy number as a sharding key; and The first target database instance is used to store the first binding relationship.

8. The apparatus according to claim 7, further comprising: A binding relationship identifier generating module is used to generate a first binding relationship identifier of the first binding relationship based on the first target privacy number.

9. The apparatus according to claim 8, further comprising: Binding relationship processing request receiving module and privacy number parsing module; wherein, The binding relationship processing request receiving module is used to receive a binding relationship processing request including a second binding relationship identifier; wherein the binding relationship processing request includes: a binding relationship update request, a binding relationship unbinding request and a binding relationship query request; The privacy number parsing module is used to determine a second target privacy number corresponding to the second binding relationship identifier based on the second binding relationship identifier; The sharding proxy module is further used to determine a second target database instance from the at least one database instance using the second target privacy number as a sharding key; and The second target database instance is used to process the second binding relationship corresponding to the second binding relationship identifier stored in the second target database instance based on the first binding relationship request.

10. The device according to claim 9, wherein: The binding relationship identifier generation module includes: A pre-processing unit, configured to process the first target privacy number based on a preset privacy number processing method to obtain a first intermediate number corresponding to the first target privacy number; a preamble generating unit, configured to generate a preamble based on a preset preamble generating method; and A combining unit is used to combine the leading code with the first intermediate number to obtain the first binding relationship identifier.

11. The device according to claim 10, wherein: The privacy number parsing module includes: an intermediate number extraction unit, configured to extract a second intermediate number from the second target privacy number; and A parsing unit is used to parse the second intermediate number based on a preset privacy number parsing method to obtain the second target privacy number; wherein the privacy number parsing method is an inverse operation of the privacy number processing method.

12. The apparatus according to claim 7, further comprising: The query request acquisition module is used to receive a service query request including a third target privacy number; wherein the service query request includes: a user identification query request and a call record query request; wherein, The sharding proxy module is further used to determine a third target database instance from at least one database instance using the third target privacy number as a sharding key; and The third target database instance is used to read the third binding relationship corresponding to the third target privacy number from the third target database instance; and determine the information to be queried corresponding to the third target privacy number based on the service query request and the third binding relationship.

13. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing a private number binding relationship as described in any one of claims 1 to 6 is implemented.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method for processing a private number binding relationship as described in any one of claims 1 to 6.

15. A computer program product, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the method for processing a private number binding relationship as claimed in any one of claims 1 to 6.