A data synchronization method and system based on number usage change frequency
By monitoring and dynamically adjusting the binding frequency of the privacy number, combining real-time synchronization and asynchronous cache synchronization, the problems of data update lag and system consumption in the privacy communication service are solved, and user experience and business flexibility are improved.
Patent Information
- Application Number
- CN202411253674.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-09
AI Technical Summary
In the existing privacy communication services, the real-time synchronization method has high requirements for server performance and is susceptible to network fluctuations, while the asynchronous cache synchronization method has poor real-time performance in scenarios where the binding relationship changes frequently, resulting in poor user experience and large system consumption, limiting the service. Flexibility and scope of application.
By monitoring the binding and unbinding operations of users using privacy numbers, calculate the frequency of actual binding changes, dynamically adjust the data synchronization method, and dynamically update the unit cycle time according to the business volume, data synchronization is performed in combination with the advantages of real-time synchronization and asynchronous cache synchronization. .
It improves the user experience, improves the flexibility and scope of application of private communication services, and ensures real-time data updates and system stability in scenarios where the binding relationship changes frequently.
Smart Images

Figure CN118764495B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of privacy communication technology, and in particular to a data synchronization method and system based on the frequency of change in number usage. Background Art
[0002] In the privacy communication service, protecting the privacy of user communication while ensuring smooth communication is an important goal of synchronizing the data of the binding relationship of the privacy number. At present, there are two main ways to synchronize the binding relationship data of the privacy number: real-time synchronization and asynchronous cache synchronization. The real-time synchronization method is flexible, but the system consumption is large, the server performance requirements are high, the stability requirements of both systems are high, and it is easily affected by network fluctuations; while the asynchronous cache synchronization method is efficient and not prone to failure, but the real-time performance is poor. It is only suitable for scenarios with stable binding relationships, not for scenarios with frequent changes in binding relationships. The cache data update is delayed, which may lead to communication failure or delay. Given that the two methods have their own advantages and disadvantages, users can often only choose one of them according to their own situation, which limits the flexibility and scope of application of the privacy communication service.
[0003] Therefore, it is necessary to provide a data synchronization method and system based on the frequency of number usage changes to solve the above problems. Summary of the invention
[0004] The present invention intends to provide a data synchronization method and system based on the frequency of changes in number usage, so as to solve the technical problems in the prior art that the flexibility of privacy communication services is reduced and the scope of application is reduced due to the use of only real-time synchronization or asynchronous cache synchronization, especially the data update lag in scenarios where binding relationships change frequently, resulting in poor user experience, high consumption of multiple systems involved in the use of privacy numbers and high stability requirements. The technical problems to be solved by the present invention are achieved through the following technical solutions.
[0005] The first aspect of the present invention proposes a data synchronization method based on the frequency of changes in number usage, which includes: assigning a privacy number to a user, and configuring privacy number information for the assigned privacy number to form a privacy number information table, wherein the privacy number information table includes at least a binding frequency factor and a limit value; monitoring the use of the privacy number by each user for communication, and when a binding operation or an unbinding operation is monitored, recording the binding operation or the unbinding operation, and performing the following steps: querying the binding change record table, counting the number of binding behaviors and the number of unbinding behaviors of each privacy number in the previous unit period; calculating the actual binding change frequency of each privacy number; dynamically adjusting the data synchronization method of the privacy number in the current unit period based on the comparison result of the calculated actual binding change frequency and the limit value; and calculating and dynamically updating the duration of the next unit period in real time based on the dynamic changes in the business volume of the current binding change operation, so as to calculate the actual binding change frequency of the privacy number in the next unit period.
[0006] The second aspect of the present invention proposes a data synchronization system based on the frequency of changes in number usage, which adopts the data synchronization method described in the first aspect of the present invention. The data synchronization system includes: an information formation module, which assigns a privacy number to a user, and configures the assigned privacy number with privacy number information to form a privacy number information table, wherein the privacy number information table at least includes a binding frequency factor and a limit value; a monitoring and recording module, which is used to monitor the use of the privacy number by each user for communication. When a binding operation or an unbinding operation is detected, the binding operation or the unbinding operation is recorded, and the following steps are performed: query the binding change record table, count the number of binding behaviors and the number of unbinding behaviors of each privacy number in the previous unit period; calculate the actual binding change frequency of each privacy number; dynamically adjust the data synchronization method of the privacy number in the current unit period according to the comparison result of the calculated actual binding change frequency and the limit value; a calculation and update module, which calculates and dynamically updates the duration of the next unit period in real time according to the dynamic changes in the business volume of the current binding change operation, so as to use the actual binding change frequency of the privacy number in the next unit period.
[0007] The third aspect of the present invention provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the data synchronization method described in the first aspect of the present invention.
[0008] A fourth aspect of the present invention provides a computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the data synchronization method described in the first aspect of the present invention.
[0009] The embodiments of the present invention include the following advantages:
[0010] Compared with the prior art, the present invention monitors the situation of each user using a privacy number for communication, records the binding operation or unbinding operation when a binding operation or unbinding operation is monitored, and calculates the actual binding change frequency of each privacy number in real time or periodically. According to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted, and the advantages of real-time synchronization and asynchronous cache synchronization can be combined to switch the data synchronization method in time, thereby improving the user experience, and effectively solving the problem of poor user experience caused by data update lag, especially in scenarios where the binding relationship changes frequently; according to the dynamic changes in the business volume of the current binding operation, the duration of the next unit period is calculated and dynamically updated in real time to use for the actual binding change frequency of the privacy number in the next unit period, which can more accurately calculate the actual binding change frequency of each privacy number, and can further accurately execute the switching of the real-time synchronization method and the asynchronous cache synchronization method to improve the flexibility of privacy communication services.
[0011] In addition, by comprehensively considering factors such as the proportion of user numbers, activity, stability of number usage, and type and purpose of numbers, a more precise adjustment coefficient is obtained to more accurately correct the calculated actual binding change frequency.
[0012] In addition, by calculating the latest unit cycle duration in real time or at specified intervals to dynamically increase or decrease the next unit cycle duration, it is further ensured that a more accurate actual binding change frequency is calculated to determine the data synchronization method and unit cycle duration, forming a more efficient calculation cycle and further improving the user experience of each user of the privacy communication platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a flowchart of an example of a data synchronization method based on number usage change frequency of the present invention;
[0014] Figure 2 It is a partial flow chart of the data synchronization method based on the frequency of number usage change of the present invention;
[0015] Figure 3 It is a structural block diagram of a data synchronization system based on number usage change frequency of the present invention;
[0016] Figure 4 is a schematic structural diagram of an electronic device embodiment according to the present invention;
[0017] Figure 5 It is a schematic diagram of the structure of a computer-readable medium embodiment according to the present invention. DETAILED DESCRIPTION
[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0020] In view of the above problems, the present invention proposes a data synchronization method based on the frequency of changes in number usage. By monitoring the situation of each user using a privacy number for communication, when a binding operation or an unbinding operation is monitored, the binding operation or the unbinding operation is recorded, and the actual binding change frequency of each privacy number is calculated in real time or periodically. According to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted. The advantages of real-time synchronization and asynchronous cache synchronization can be combined to switch the data synchronization method in time, thereby improving the user experience and effectively solving the problem of poor user experience caused by data update lag in scenarios where the binding relationship changes frequently; according to the dynamic changes in the business volume of the current binding change operation, the next unit period duration is calculated and dynamically updated in real time to use for the actual binding change frequency of the privacy number in the next unit period, which can more accurately calculate the actual binding change frequency of each privacy number, and can further accurately execute the switching of the real-time synchronization method and the asynchronous cache synchronization method to improve the flexibility of privacy communication services.
[0021] Example 1
[0022] Refer to the following Figure 1 and Figure 2 , the contents of the present invention will be described in detail.
[0023] Figure 1 The figure is a flowchart of an example of a method for synchronizing data based on the frequency of change in number usage according to the present invention.
[0024] like Figure 1 As shown, in step S101, a privacy number is allocated to the user, and the allocated privacy number is equipped with privacy number information to form a privacy number information table, which at least includes a binding frequency factor and a limit value.
[0025] In a specific implementation, for example, the privacy communication platform allocates a privacy number to one or more users, including taxi users, freight users, insurance users, etc.
[0026] Specifically, each private number is provided with private number information, which includes a private number identifier, an initial binding frequency factor, and a limit value. A private number information table is formed through the above private number information.
[0027] Optionally, the privacy number information table includes an initial binding frequency factor and a limit value.
[0028] It should be noted that, in this embodiment, the privacy number information table includes an initial binding frequency factor (the actual binding change frequency calculated subsequently) and a limit value. The initial binding frequency factor will be updated later based on the actual binding change frequency of each privacy number calculated. Not limited to this, in other embodiments, the privacy number information table includes a privacy number identifier (e.g., a privacy number ID), an initial binding frequency factor, a limit value, the last synchronization time, or includes fields in the above privacy number information.
[0029] It should be noted that the above is only described as an optional example and should not be understood as a limitation to the present invention.
[0030] In an application example, the privacy communication platform or system records the privacy number information into the privacy number information table, and initializes the binding relationship table and the binding change record table.
[0031] For example, taxi users, freight users, insurance users, etc. use privacy numbers to communicate. When binding or unbinding operations are performed, the privacy communication platform or system will record the operation behavior in the binding change record table.
[0032] Specifically, the binding relationship table is used to record the binding relationship between the private number and the real number, including the private number ID, real number, binding timestamp, unbinding timestamp, etc. The binding change record table is used to record the binding and unbinding behavior of the private number, including the private number ID, operation type (binding / unbinding), operation timestamp, etc.
[0033] Next, in step S102, the communication situation of each user using the privacy number is monitored. When a binding operation or an unbinding operation is detected, the binding operation or the unbinding operation is recorded, and the following steps are performed:
[0034] Query the binding change record table to count the number of binding and unbinding behaviors of each privacy number in the previous unit period; calculate the actual binding change frequency of each privacy number; and dynamically adjust the data synchronization method of the privacy number in the current unit period based on the comparison result of the calculated actual binding change frequency and the limit value.
[0035] In a specific implementation, for example, the privacy communication platform starts a business monitoring program to monitor the communication of each user using a privacy number and collect the total business volume within a unit period (eg, the previous unit period or the current unit period).
[0036] When a binding operation or an unbinding operation is detected, the binding operation or the unbinding operation is recorded and the following steps are performed.
[0037] Step S201: query the binding change record table to count the number of binding and unbinding actions for each privacy number in the previous unit period.
[0038] Specifically, the number of binding and unbinding behaviors of each privacy number of the user corresponding to the binding operation or unbinding operation in the previous unit period is counted, and the number of binding and unbinding behaviors of all privacy numbers on the privacy communication platform in the previous unit period is counted.
[0039] Step S202: Calculate the actual binding change frequency of each privacy number.
[0040] Use the following expression to calculate the actual binding change frequency of the privacy number to be processed:
[0041] P d =(P0+r×P 参 ) / twenty one)
[0042] Among them, P d Indicates the frequency of binding and unbinding operations of the pending privacy number in the previous unit period or the current observation period, that is, the number usage change frequency, where the unit period refers to a time period used to calculate the binding change frequency, or a periodic time period; P0 represents the ratio of the number rebinding times in the previous unit period or the current observation period to the maximum number of rebinding times among all the user numbers corresponding to the pending privacy number in the previous unit period; P 参 It represents the ratio of the number rebinding times in the previous unit period to the maximum number of number rebinding times among all numbers on the privacy communication platform in the previous unit period; r represents the adjustment coefficient used to adjust the frequency of number usage changes.
[0043] In this example, the above expression (1) is used to calculate the actual binding change frequency of each privacy number in the privacy communication platform in the previous unit period or the current unit period.
[0044] It should be noted that in other implementation modes, it is also possible to only calculate each privacy number of a specified user or a user corresponding to a binding operation or an unbinding operation. The above is only explained as an optional example and cannot be understood as a limitation of the present invention.
[0045] For the adjustment coefficient r in the above expression (1), in an optional implementation, the adjustment coefficient r is the ratio of the number of all private numbers of the user to the number of all private numbers of the privacy communication platform.
[0046] In another optional implementation, the adjustment coefficient (corresponding to Figure 2 "Step S301"), and then calculate the actual binding change frequency of each privacy number (corresponding to Figure 2 For details, see "Step S302" in Figure 2 .
[0047] Specifically, the adjustment coefficient r is also determined by comprehensively considering factors such as the proportion of user numbers, activity, stability of number use, and type and purpose of the number, so that the calculation of the adjustment coefficient r is more comprehensive and accurate.
[0048] The adjustment coefficient r is calculated using the following expression:
[0049] r = k × h × w × y (2)
[0050] Among them, r represents the adjustment coefficient used to adjust the frequency of number usage changes; k represents the proportion of all privacy numbers of the user in the number of all privacy numbers of the privacy communication platform, also referred to as the user number proportion; h represents the customer's activity factor on the privacy communication platform, which is specifically determined based on the user's operation frequency, number of transactions, and login time on the platform; w represents the stability of use of the user's privacy number, that is, the number usage stability factor, which is specifically determined based on the usage time of the user's privacy number and whether the number is frequently changed; y represents the number type and usage factor, and different number type and usage factors are set according to the type and purpose of the privacy number.
[0051] Specifically, the activity factor h can be calculated based on the operation frequency, transaction times, login duration, etc. of each user on the privacy communication platform. Users with high activity factors will change their numbers more frequently, so they will be given higher weights. The activity factor h is calculated using the following expression:
[0052] Activity factor h = number of times a user changes binding within a unit period / total number of times a user changes binding within a period × activity adjustment coefficient.
[0053] Among them, the activity adjustment coefficient can be set according to specific business logic, such as giving a higher coefficient to highly active customers.
[0054] The number usage stability factor specifically refers to the stability of the customer's number usage. The number usage stability factor can be evaluated and determined based on factors such as the average usage time of the user's number and whether the number is frequently changed. For customers with high stability (i.e., the number is used for a long time and the number of changes is small, for example, the number usage time is greater than the first threshold, and the number of changes is less than the second threshold, etc.), the value of the adjustment coefficient r is small. The following expression is used to calculate the stability factor w:
[0055] Stability factor w = 1 − (number of user binding changes within a unit period / total number of binding changes within a unit period) × stability correction coefficient. Here, the stability correction coefficient is used to adjust the impact of the stability factor.
[0056] For the number type and usage factor, the following expression is used to calculate the number type and usage factor y:
[0057] ;
[0058] Where y represents the number type and usage factor, and n is the number of combinations of number type and usage; 权i represents the i-th weight factor; y 类型i represents the weight corresponding to the i-th type factor; y 用途i represents the weight corresponding to the i-th user factor, i is a positive integer, y 类型i and 用途i It is a Boolean value or a specific numeric value, indicating whether the privacy number belongs to a certain type or is used for a certain purpose.
[0059] Specifically, different types of numbers (such as temporary numbers, long-term numbers, special business numbers, etc.) and the purpose of the number (such as verification, transaction, communication, etc.) will affect the value of the adjustment coefficient r. Therefore, different weights are set according to the type and purpose of the number.
[0060] Step S203: Dynamically adjust the data synchronization method of the privacy number within the current unit period based on the comparison result of the calculated actual binding change frequency and the limited limit value.
[0061] Specifically, when allocating privacy numbers, a binding frequency factor is set for each privacy number, for example, between 0 and 1. The larger the value of the binding frequency factor, the higher the expected binding change frequency. At the same time, a limit value of the binding frequency factor (for example, between 0 and 1) is set to distinguish between privacy numbers of real-time synchronization and asynchronous cache synchronization.
[0062] In a specific implementation, the privacy communication platform periodically (eg, daily) calculates the actual binding change frequency of each privacy number, and compares the calculated actual binding change frequency of each privacy number with the corresponding binding frequency factor.
[0063] When the calculated actual binding change frequency is higher than the limit value, the binding relationship of the privacy number corresponding to the calculated actual binding change frequency (for example, the privacy number s1 of user a) is synchronized in real time. Specifically, the data synchronization method between the privacy number s1 of user a and the privacy communication platform is synchronized in real time.
[0064] For the real-time synchronization method, the binding relationship table between the privacy communication platform and the user is updated instantly.
[0065] When the calculated actual binding change frequency is less than or equal to the limit value, the binding relationship of the privacy number (for example, the privacy number s2 of user b) corresponding to the calculated actual binding change frequency adopts an asynchronous cache synchronization method. Specifically, the data synchronization method between the privacy number s2 of user b and the privacy communication platform adopts an asynchronous cache synchronization method. In the asynchronous cache synchronization method, the privacy communication platform and user b periodically update the binding relationship table in batches, and the binding relationship table is cached to the privacy communication platform.
[0066] It should be noted that for the same user, such as a travel user, different numbers of the travel user will use different synchronization methods according to different calculation results. In other words, the same user will use two data synchronization methods. The above is only used as an optional example and cannot be understood as a limitation of the present invention.
[0067] Next, in step S103, according to the dynamic change of the business volume of the current rebinding operation, the duration of the next unit period is calculated and dynamically updated in real time to be used for the actual binding change frequency of the privacy number in the next unit period.
[0068] Use the following expression to calculate the unit cycle duration:
[0069] The unit cycle duration = min{fixed cycle duration, total business volume triggering threshold duration}.
[0070] Specifically, based on the total volume of business and the duration of the fixed cycle, the following expression is used to calculate the duration of the total volume of business triggering the threshold:
[0071] T_threshold = Tfixed g(x)
[0072] Where T_threshold represents the duration of the total business volume triggering the threshold; Tfixed represents the unit cycle duration; g(x) is a function used to determine the adjustment of the unit cycle duration, which is adjusted according to the ratio of the total business volume to the benchmark business volume, where g(x)=min(1,1 / (log(1+Qcurrent / Qbase)+ )), Qbase represents the benchmark business volume, which is calculated based on the specified historical period, and Qcurrent represents the total current business volume involved in the number of times the privacy number is bound and unbound in the current unit period; To calculate the coefficient, specify a positive number to prevent the denominator from being zero.
[0073] In an optional embodiment, the latest unit cycle duration is calculated in real time or at specified intervals to dynamically maintain or reduce the next unit cycle duration. Specifically, when it is determined that the unit cycle duration is updated, a calculation of the actual binding change frequency is performed for each privacy number.
[0074] The following steps are executed in a loop, and the unit period duration is dynamically updated at the same time: the actual binding change frequency of each privacy number is calculated; based on the comparison result between the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number within the current unit period is dynamically adjusted.
[0075] Specifically, each time the actual binding change frequency of each privacy number is calculated, a notification is sent to the user corresponding to each privacy number, specifically notifying the updated data synchronization method and synchronization time, and the data synchronization method includes real-time synchronization method and asynchronous cache synchronization method. For example, the user is notified to interact with the privacy communication platform in accordance with the new synchronization method to bind and unbind the number data.
[0076] At the end of the current unit period, the unit period duration and the total business volume within the unit period are recalculated.
[0077] In a specific implementation, the data synchronization mode between taxi user c and the privacy communication platform in the last unit period (e.g., one or two days, or 12 hours, etc.) is real-time. When the actual binding change frequency of each privacy number is calculated once within a specified time (less than the last unit period), and the last unit period ends, the calculation of the latest unit period is triggered.
[0078] In another specific embodiment, the privacy number s3 of the insurance user f is in asynchronous cache synchronization with the privacy communication platform in the last unit period (for example, one day). The number of unbinding operations of the privacy number s3 in the last unit period is 500 times, the number of unbinding operations of all the privacy numbers of the insurance user f in the last unit period is 600 times, and the number of unbinding operations of all the privacy numbers of the privacy communication platform in the last unit period is 1000 times. The calculated adjustment coefficient r is, for example, 0.35, and the actual binding change frequency of the privacy number to be processed (for example, privacy number s3) calculated in step S102 is 0.504. The calculated value of the actual binding change frequency of 0.504 is higher than the limit value of 0.5, so the data synchronization mode is dynamically adjusted to the real-time synchronization mode.
[0079] Prioritize, after entering a new cycle, in addition to synchronizing data according to the number data synchronization method updated in the above steps, the platform will also calculate and dynamically adjust the duration of the next unit cycle in real time according to the dynamic changes in the business volume of the current rebinding operation, so as to achieve the purpose of timely calculation and update of the frequency of number binding changes.
[0080] In another embodiment, according to the real-time calculation of the actual binding change frequency of the pending privacy number, the following expression is used to calculate the actual binding change frequency of the pending privacy number of the specified user:
[0081] Pd=Tc / Tmax
[0082] Among them, Pd represents the frequency of binding and unbinding operations of the pending privacy number of a specified user (such as a taxi user or an insurance user) within a specified observation time (such as half of a unit period). The specified observation time refers to a time period used for real-time calculation of the binding change frequency, or a periodic time period; Tc represents the number of binding changes of the specified user within a unit period; Tmax represents the maximum number of binding changes in the privacy number of the specified user within a unit period.
[0083] The unit cycle duration is dynamically adjusted according to the current business load. The unit cycle duration is calculated using the following expression:
[0084] The unit cycle duration = min{fixed cycle duration, total business volume triggering threshold duration}.
[0085] It should be noted that in this embodiment, the total business volume triggering threshold duration is calculated based on the total business volume and the fixed cycle duration. Since it is the same as the calculation method of step S103 in the above embodiment, the description of the same parts is omitted.
[0086] In addition, the drawings are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the drawings do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0087] Compared with the prior art, the present invention monitors the situation of each user using a privacy number for communication, records the binding operation or unbinding operation when a binding operation or unbinding operation is monitored, and calculates the actual binding change frequency of each privacy number in real time or periodically. According to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted, and the advantages of real-time synchronization and asynchronous cache synchronization can be combined to switch the data synchronization method in time, thereby improving the user experience, and effectively solving the problem of poor user experience caused by data update lag, especially in scenarios where the binding relationship changes frequently; according to the dynamic changes in the business volume of the current binding operation, the duration of the next unit period is calculated and dynamically updated in real time to use for the actual binding change frequency of the privacy number in the next unit period, which can more accurately calculate the actual binding change frequency of each privacy number, and can further accurately execute the switching of the real-time synchronization method and the asynchronous cache synchronization method to improve the flexibility of privacy communication services.
[0088] In addition, by comprehensively considering factors such as the proportion of user numbers, activity, stability of number usage, and type and purpose of numbers, a more accurate adjustment coefficient r is obtained to more accurately correct the calculated actual binding change frequency.
[0089] In addition, by calculating the latest unit cycle duration in real time or at specified intervals to dynamically increase or decrease the next unit cycle duration, it is further ensured that a more accurate actual binding change frequency is calculated to determine the data synchronization method and unit cycle duration, forming a more efficient calculation cycle and further improving the user experience of each user of the privacy communication platform.
[0090] Example 2
[0091] The following is a system embodiment of the present invention, which can be used to implement the method embodiment of the present invention. For details not disclosed in the system embodiment of the present invention, please refer to the method embodiment of the present invention.
[0092] Figure 3 4 is a schematic structural diagram of an example of a data synchronization system based on number usage change frequency according to the present invention.
[0093] Reference Figure 3 The second aspect of the present disclosure provides a data synchronization system 300 based on the frequency of number usage changes, which adopts the data synchronization method described in the first aspect of the present disclosure.
[0094] Specifically, the data synchronization system 300 includes an information forming module 310, a monitoring and recording module 320 and
[0095] In a specific embodiment, the information formation module 310 assigns a privacy number to the user, and configures the assigned privacy number with privacy number information to form a privacy number information table, wherein the privacy number information table includes at least a binding frequency factor and a limit value. The monitoring and recording module 320 is used to monitor the situation of each user using the privacy number for communication. When a binding operation or an unbinding operation is detected, the binding operation or the unbinding operation is recorded, and the following steps are performed: query the binding change record table, count the number of binding behaviors and the number of unbinding behaviors of each privacy number in the previous unit period; calculate the actual binding change frequency of each privacy number; dynamically adjust the data synchronization method of the privacy number in the current unit period based on the comparison result of the calculated actual binding change frequency and the limit value. The calculation and update module 330 calculates and dynamically updates the duration of the next unit period in real time according to the dynamic changes in the business volume of the current rebinding operation, so as to be used for the actual binding change frequency of the privacy number in the next unit period.
[0096] In an optional implementation, a business monitoring program is started to monitor each user's use of a privacy number for communication and collect the total business volume within a unit period; at the end of the current unit period, the unit period duration and the total business volume within the unit period are recalculated.
[0097] Use the following expression to calculate the actual binding change frequency of the privacy number to be processed:
[0098] P d =(P0+r×P 参 ) / 2;
[0099] Among them, P d Indicates the frequency of binding and unbinding operations of the pending privacy number in the previous unit period or the current observation period, that is, the number usage change frequency, where the unit period refers to a time period used to calculate the binding change frequency, or a periodic time period; P0 represents the ratio of the number rebinding times in the previous unit period or the current observation period to the maximum number of rebinding times among all the user numbers corresponding to the pending privacy number in the previous unit period; P 参 It represents the ratio of the number rebinding times in the previous unit period to the maximum number of number rebinding times among all numbers on the privacy communication platform in the previous unit period; r represents the adjustment coefficient used to adjust the frequency of number usage changes.
[0100] The adjustment coefficient r is the ratio of the number of all private numbers of the user to the number of all private numbers of the private communication platform; or
[0101] The adjustment coefficient r is calculated using the following expression:
[0102] r = k × h × w × y;
[0103] Among them, r represents the adjustment coefficient used to adjust the frequency of changes in number usage; k represents the proportion of all privacy numbers of the user in the number of all privacy numbers of the privacy communication platform; h represents the customer's activity factor on the privacy communication platform, which is specifically determined based on the user's operation frequency, number of transactions, and login time on the platform; w represents the stability of use of the user's privacy number, which is specifically determined based on the length of time the user's privacy number is used and whether the number is frequently changed; y represents the number type and usage factor, and different number type and usage factors are set according to the type and purpose of the privacy number.
[0104] According to the dynamic changes in the business volume of the current rebinding operation, the duration of the next unit cycle is calculated and dynamically updated in real time. The following expression is used to calculate the duration of the unit cycle:
[0105] The unit cycle duration = min{fixed cycle duration, total business volume triggering threshold duration}.
[0106] Based on the total volume of business and the fixed cycle duration, the following expression is used to calculate the total volume of business triggering threshold duration:
[0107] T_threshold = Tfixd g(x)
[0108] Where T_threshold represents the duration of the total business volume triggering the threshold; Tfixed represents the unit cycle duration; g(x) is a function used to determine the adjustment of the unit cycle duration, which is adjusted according to the ratio of the total business volume to the benchmark business volume, where g(x)=min(1,1 / (log(1+Qcurrent / Qbase)+ )), Qbase represents the benchmark business volume, which is calculated based on the specified historical period, and Qcurrent represents the total current business volume involved in the number of times the privacy number is bound and unbound in the current unit period; To calculate the coefficient, specify a positive number to prevent the denominator from being zero.
[0109] According to the dynamic changes in the business volume of the current rebinding operation, the next unit cycle duration is calculated and dynamically updated in real time. Specifically, when determining the unit cycle duration update, the actual binding change frequency is calculated for each privacy number; the following steps are executed in a loop, and the unit cycle duration is dynamically updated at the same time: the actual binding change frequency of each privacy number is calculated; according to the comparison result of the calculated actual binding change frequency with the limit value, the data synchronization method of the privacy number in the current unit cycle is dynamically adjusted.
[0110] In an optional implementation, each time the actual binding change frequency of each privacy number is calculated, a notification is sent to the user corresponding to each privacy number, specifically notifying the updated data synchronization method and synchronization time, wherein the data synchronization method includes a real-time synchronization method and an asynchronous cache synchronization method.
[0111] Compared with the prior art, the present invention monitors the situation of each user using a privacy number for communication, records the binding operation or unbinding operation when a binding operation or unbinding operation is monitored, and calculates the actual binding change frequency of each privacy number in real time or periodically. According to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted, and the advantages of real-time synchronization and asynchronous cache synchronization can be combined to switch the data synchronization method in time, thereby improving the user experience, and effectively solving the problem of poor user experience caused by data update lag, especially in scenarios where the binding relationship changes frequently; according to the dynamic changes in the business volume of the current binding operation, the duration of the next unit period is calculated and dynamically updated in real time to use for the actual binding change frequency of the privacy number in the next unit period, which can more accurately calculate the actual binding change frequency of each privacy number, and can further accurately execute the switching of the real-time synchronization method and the asynchronous cache synchronization method to improve the flexibility of privacy communication services.
[0112] In addition, by comprehensively considering factors such as the proportion of user numbers, activity, stability of number usage, and type and purpose of numbers, a more accurate adjustment coefficient r is obtained to more accurately correct the calculated actual binding change frequency.
[0113] In addition, by calculating the latest unit cycle duration in real time or at specified intervals to dynamically increase or decrease the next unit cycle duration, it is further ensured that a more accurate actual binding change frequency is calculated to determine the data synchronization method and unit cycle duration, forming a more efficient calculation cycle and further improving the user experience of each user of the privacy communication platform.
[0114] Figure 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[0115] like Figure 4 As shown, the electronic device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The electronic device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0116] The memory stores a computer executable program, which is usually a machine-readable code. The computer-readable program can be executed by the processor to enable the electronic device to perform the method of the present invention, or at least part of the steps in the method.
[0117] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0118] Optionally, in this embodiment, the electronic device further includes an I / O interface, which is used for the electronic device to exchange data with an external device. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.
[0119] It should be understood that Figure 4 The electronic device shown is only an example of the present invention, and the electronic device of the present invention may also include elements or components not shown in the above examples. For example, some electronic devices also include display units such as display screens, and some electronic devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the electronic device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as an electronic device covered by the present invention.
[0120] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Figure 5 As shown, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of commands to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present invention.
[0121] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0122] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with a command execution system, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0123] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0124] The computer-readable medium carries one or more programs (eg, computer-executable programs). When the one or more programs are executed by a device, the computer-readable medium implements the method of the present disclosure.
[0125] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0126] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the exemplary embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several commands to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present invention.
[0127] The exemplary embodiments of the present invention are specifically shown and described above. It should be understood that the present invention is not limited to the detailed structure, configuration or implementation method described herein; on the contrary, the present invention is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.
Claims
1. A data synchronization method based on the frequency of number usage changes, characterized in that: include: Allocating a privacy number to a user, and configuring privacy number information for the allocated privacy number to form a privacy number information table, wherein the privacy number information table at least includes a binding frequency factor and a limit value; Monitor the communication of each user using the privacy account. When a binding operation or unbinding operation is detected, record the binding operation or unbinding operation and perform the following steps: Query the binding change record table to count the number of binding and unbinding actions for each privacy number in the previous unit period; Calculating the actual binding change frequency of each privacy number, including: using the following expression to calculate the actual binding change frequency of the privacy number to be processed: ; in, Indicates the frequency of binding and unbinding operations of the privacy number to be processed in the previous unit period or the current observation period, that is, the frequency of number usage changes. The unit period refers to a time period used to calculate the binding change frequency, or a periodic time period; Indicates the ratio of the number rebinding times in the previous unit period or the current observation period to the maximum number of rebinding times among all user numbers corresponding to the privacy number to be processed in the previous unit period; represents the ratio of the number rebinding times in the previous unit period to the maximum number of rebinding times among all numbers on the privacy communication platform in the previous unit period; r represents the adjustment coefficient used to adjust the frequency of number usage changes; the adjustment coefficient r is the proportion of all privacy numbers of the user to the number of all privacy numbers on the privacy communication platform; or, The adjustment coefficient r is calculated using the following expression: ; Among them, r represents the adjustment coefficient for adjusting the frequency of number usage changes; k represents the proportion of all privacy numbers of the user in the number of all privacy numbers of the privacy communication platform; h represents the customer's activity factor on the privacy communication platform, which is determined based on the user's operation frequency, transaction number, and login time on the platform; w represents the stability of the user's privacy number, which is determined based on the user's privacy number usage time and whether the number is frequently changed; y represents the number type and purpose factor, and different number type and purpose factors are configured according to the type and purpose of the privacy number; according to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted; According to the dynamic changes in the business volume of the current rebinding operation, the duration of the next unit period is calculated and dynamically updated in real time to determine the actual binding change frequency of the privacy number in the next unit period.
2. The data synchronization method according to claim 1, characterized in that: The real-time calculation and dynamic updating of the duration of the next unit cycle according to the dynamic change of the business volume of the current binding change operation includes: The unit cycle duration is calculated using the following expression: The unit cycle duration = min{fixed cycle duration, total business volume triggering threshold duration}.
3. The data synchronization method according to claim 2, characterized in that: Further includes Based on the total volume of business and the fixed cycle duration, the following expression is used to calculate the total volume of business triggering threshold duration: T_threshold = Tfixed•g(x) Where T_threshold represents the duration of the total business volume triggering threshold; Tfixed represents the unit cycle duration; g(x) is a function used to determine the adjustment of the unit cycle duration, which is adjusted according to the ratio of the total business volume to the benchmark business volume, where g(x)=min(1,1 / (log(1+Qcurrent / Qbase)+ )), Qbase represents the benchmark business volume, which is calculated based on the specified historical period, and Qcurrent represents the total current business volume involved in the number of times the privacy number is bound and unbound in the current unit period; To calculate the coefficient, specify a positive number to prevent the denominator from being zero.
4. The data synchronization method according to claim 1, characterized in that: The real-time calculation and dynamic updating of the next unit cycle duration according to the dynamic change of the business volume of the current binding change operation includes: Specifically, when determining the unit cycle duration update, the actual binding change frequency is calculated for each privacy number; The following steps are executed in a loop, and the unit period duration is dynamically updated at the same time: the actual binding change frequency of each privacy number is calculated; based on the comparison result between the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number within the current unit period is dynamically adjusted.
5. The data synchronization method according to claim 1, characterized in that: Every time the actual binding change frequency of each privacy number is calculated, a notification is sent to the user corresponding to each privacy number, specifically notifying the updated data synchronization method and synchronization time. The data synchronization method includes real-time synchronization method and asynchronous cache synchronization method.
6. The data synchronization method according to claim 1, characterized in that: Start the business monitoring program to monitor the communication of each user using the privacy number and collect the total business volume within the unit period; At the end of the current unit period, the unit period duration and the total business volume within the unit period are recalculated.
7. A data synchronization system based on the frequency of number usage changes, characterized in that: It executes the data synchronization method according to any one of claims 1 to 6, and the data synchronization system comprises: An information forming module, which allocates a privacy number to a user, and configures the allocated privacy number with privacy number information to form a privacy number information table, wherein the privacy number information table includes at least a binding frequency factor and a limit value; The monitoring and recording module is used to monitor the communication of each user using the privacy number. When a binding operation or unbinding operation is detected, the binding operation or unbinding operation is recorded, and the following steps are performed: query the binding change record table to count the number of binding behaviors and unbinding behaviors of each privacy number in the previous unit period; calculate the actual binding change frequency of each privacy number, specifically including: using the following expression to calculate the actual binding change frequency of the privacy number to be processed: ; in, Indicates the frequency of binding and unbinding operations of the privacy number to be processed in the previous unit period or the current observation period, that is, the frequency of number usage changes. The unit period refers to a time period used to calculate the binding change frequency, or a periodic time period; Indicates the ratio of the number rebinding times in the previous unit period or the current observation period to the maximum number of rebinding times among all user numbers corresponding to the privacy number to be processed in the previous unit period; represents the ratio of the number rebinding times in the previous unit period to the maximum number of rebinding times among all numbers on the privacy communication platform in the previous unit period; r represents the adjustment coefficient used to adjust the frequency of number usage changes; the adjustment coefficient r is the proportion of all privacy numbers of the user to the number of all privacy numbers on the privacy communication platform; or, The adjustment coefficient r is calculated using the following expression: ; Among them, r represents the adjustment coefficient for adjusting the frequency of number usage changes; k represents the proportion of all privacy numbers of the user in the number of all privacy numbers of the privacy communication platform; h represents the customer's activity factor on the privacy communication platform, which is determined based on the user's operation frequency, transaction number, and login time on the platform; w represents the stability of the user's privacy number, which is determined based on the user's privacy number usage time and whether the number is frequently changed; y represents the number type and purpose factor, and different number type and purpose factors are configured according to the type and purpose of the privacy number; according to the comparison result of the calculated actual binding change frequency and the limit value, the data synchronization method of the privacy number in the current unit period is dynamically adjusted; The calculation update module calculates and dynamically updates the duration of the next unit cycle in real time according to the dynamic changes in the business volume of the current rebinding operation, so as to be used for the actual binding change frequency of the privacy number in the next unit cycle.
Citation Information
Patent Citations
Active request-based private number dynamic allocation system
CN112671864A
Two-way communication privacy number protection method and device and storage medium
CN114025051A
Vehicle-mounted terminal SIM (Subscriber Identity Module) card rebinding method, device and system
CN118301589A
Communication method, apparatus and device
WO2023077979A1
