Business data processing method and device, storage medium and electronic equipment
By storing experimental parameters in local storage media and retrieving them using hit codes, the problems of high network overhead and CPU usage in advertising data processing are solved, achieving efficient data processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI BILIBILI TECH CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-07-24
AI Technical Summary
In advertising data processing, existing compression or serialization encoding methods cannot effectively reduce network overhead and CPU usage when there are many experimental parameters, resulting in low data transmission efficiency.
By storing experimental parameters in local storage media and using hit coding to obtain the required parameters, the amount of data transmitted is reduced. The data processing efficiency is improved by adopting hit coding and hit rule generation processes.
It reduces network overhead and CPU usage, improves data processing efficiency, and avoids the transmission of large amounts of data, especially when dealing with a large number of experimental parameters.
Smart Images

Figure CN115878044B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of computer technology and advertising data processing technology, and more particularly to a business data processing method, apparatus, storage medium and electronic device. Background Technology
[0002] In the field of computer science, such as advertising data processing, advertising data often carries a large number of experimental parameters. The transmission and parsing of these experimental parameters consume a significant amount of bandwidth and CPU resources.
[0003] Currently, methods such as compression (gzip, etc.) or serialization encoding are used to reduce the amount of data transmitted. These methods can improve performance when the amount of experimental data is small. However, when there are many experimental parameters (e.g., more than 1000), the reduction in the number of experimental parameters through compression or serialization encoding is relatively small. As the number of experimental parameters increases, the amount of compressed data and the amount of data increase linearly, and network overhead and CPU usage remain significant. Summary of the Invention
[0004] This application provides a business data processing method, apparatus, storage medium, and electronic device to solve the problems existing in related technologies. The technical solution is as follows:
[0005] In a first aspect, embodiments of this application provide a business data processing method, including:
[0006] Obtain the hit code, which is used to associate the corresponding first experimental parameter;
[0007] Based on the hit code, a first experimental parameter is obtained from the local storage medium. The first experimental parameter is used to obtain business data.
[0008] Secondly, embodiments of this application provide a business data processing method, including:
[0009] In response to a business request, a hit code is generated based on the second experimental parameters in the local storage medium and according to the preset hit rules.
[0010] The hit code is sent to the first client.
[0011] Thirdly, embodiments of this application provide a business data processing apparatus, including:
[0012] The encoding acquisition module is used to acquire the hit code, which is used to associate the corresponding first experimental parameter;
[0013] The first experimental parameter acquisition module is used to acquire first experimental parameters from the local storage medium based on the hit code; the first experimental parameters are used to acquire business data.
[0014] Fourthly, embodiments of this application provide a business data processing apparatus, including:
[0015] The hit module is used to respond to business requests and generate hit codes based on the second experimental parameters in the local storage medium and according to preset hit rules.
[0016] The encoding and sending module is used to send the hit code to the first client.
[0017] Fifthly, embodiments of this application provide an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the business data processing method described in the first aspect.
[0018] In a sixth aspect, embodiments of this application provide a computer-readable storage medium that stores computer instructions, wherein the business data processing method of the first aspect described above is executed when the computer instructions are run on a computer.
[0019] In a seventh aspect, embodiments of this application provide an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the business data processing method described in the second aspect.
[0020] Eighthly, embodiments of this application provide a computer-readable storage medium that stores computer instructions, wherein the business data processing method of the second aspect described above is executed when the computer instructions are run on a computer.
[0021] The advantages or beneficial effects of the above technical solutions include at least the following:
[0022] In this embodiment, by storing the first experimental parameter in a local storage medium, when the first experimental parameter is needed, the first experimental parameter corresponding to the obtained hit code is retrieved. This eliminates the need to transmit large amounts of experimental parameter data during data processing; the experimental parameter can be used simply by transmitting the hit code, improving data processing efficiency and reducing network overhead and CPU usage.
[0023] The above overview is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of this application will become readily apparent from the accompanying drawings and the following detailed description. Attached Figure Description
[0024] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in this application and should not be construed as limiting the scope of this application.
[0025] Figure 1 A schematic diagram illustrating an application scenario of the business data processing method according to an embodiment of this application is shown.
[0026] Figure 2 A schematic diagram of a business data processing method according to an embodiment of this application is shown.
[0027] Figure 3 A schematic diagram illustrating the distribution of a first experimental parameter and a second experimental parameter according to an embodiment of this application is shown.
[0028] Figure 4 A schematic diagram illustrating the acquisition of a hit code according to an embodiment of this application is shown.
[0029] Figure 5 A schematic flowchart illustrating the generation of hit codes according to an embodiment of this application is shown.
[0030] Figure 6 A flowchart illustrating the parsing of hit codes according to an embodiment of this application is shown.
[0031] Figure 7 A schematic diagram of a business data processing method according to another embodiment of this application is shown.
[0032] Figure 8 A schematic diagram of a business data processing apparatus according to another embodiment of this application is shown.
[0033] Figure 9 A schematic diagram of a business data processing apparatus according to another embodiment of this application is shown.
[0034] Figure 10 This is a block diagram of an electronic device used to implement the business data processing method of the embodiments of this application. Detailed Implementation
[0035] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of this application. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0036] It should be noted that the descriptions involving "first," "second," etc., in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0037] In the description of this application, it should be understood that the numerical labels before the steps do not indicate the order of the steps, but are only used to facilitate the description of this application and to distinguish each step, and therefore should not be construed as a limitation of this application.
[0038] Figure 1 The illustration shows an application scenario diagram of the business data processing method according to an embodiment of this application. For example... Figure 1 As shown, server 2 can connect to multiple clients 6 through one or more networks 4. Wherein:
[0039] Server 2 can provide online storage services, i.e., cloud storage services, through a network service system.
[0040] In an exemplary embodiment, server 2 may refer to a data center, such as a single house, or distributed across different geographical locations (e.g., several houses). Server 2 may provide services through one or more networks 4. Network 4 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. Network 4 may include physical links, such as coaxial cable links, twisted-pair cable links, fiber optic links, combinations thereof, and / or the like. Network 4 may include wireless links, such as cellular links, satellite links, Wi-Fi links, and / or the like.
[0041] Client 6 can be used to receive data transmitted by server 2 or client 7. The data may include experimental parameters. In this embodiment, client 6 can receive first experimental parameters, hit codes, or hit codes transmitted by server 2. Client 6 can parse the first experimental data based on the received first experimental parameters to obtain business data, and store the parsed data and / or business data to server 2 or client 6. Client 6 can also receive hit codes or hit codes transmitted by client 7. Client 7 can receive second experimental parameters transmitted by server 2, and client 7 can perform a hit experiment based on the second experimental parameters to obtain a hit code or hit code, and send the hit code or hit code to client 6.
[0042] In exemplary embodiments, clients 6 and 7 may include devices such as mobile devices, tablets, laptops, smart devices (e.g., smart clothing, smartwatches, smart glasses), virtual reality headsets, gaming devices, set-top boxes, digital streaming devices, robots, in-vehicle terminals, smart TVs, TV boxes, and e-book readers.
[0043] Client 6 or Client 7 can be associated with one or more users. A single user can use one or more of Clients 6 / 7 to access Server 2. Clients 6 / 7 can travel to various locations and use different networks to access Server 2.
[0044] In this embodiment of the application, client 7 can also be server.
[0045] Figure 2 A flowchart illustrating a business data processing method according to an embodiment of this application is shown. Figure 2 As shown, this business data processing method is applied to the first client, and the business data processing method may include:
[0046] S210, obtain the hit code; the hit code is used to associate the corresponding first experimental parameter.
[0047] In this embodiment, the hit code is determined by the second client in response to a service request, based on the second experimental parameters stored in the second client's local storage medium, through a hit experiment. The hit code indicates which first experimental parameters need to be obtained from the first client.
[0048] In this embodiment of the application, the second experimental parameter and the first experimental parameter have a one-to-one correspondence, with one second experimental parameter corresponding to one first experimental parameter.
[0049] In one example, the second experimental parameter can be the identifier information of the first experimental parameter, and the number of first experimental parameters is equal to the number of second experimental parameters. The first experimental parameter can be the actual parameter used to generate business data, based on which the corresponding business data can be obtained. The business data can be advertising content, advertising pages, or other data with practical applications. The first experimental parameter can be a link address for the business data, or a pop-up window for the business data, which the user can click to obtain the business data.
[0050] In one example, the second experimental parameter and the first experimental parameter are obtained by training or experimenting with the relevant data information collected based on the experimental platform.
[0051] In one example, an experiment is conducted on the experimental platform, generating a second experimental parameter and a corresponding first experimental parameter. The experimental platform is trained using the collected relevant data to obtain the first experimental parameter used to present the business data, and the second experimental parameter corresponding to the first experimental parameter. The second experimental parameter is used to retrieve the corresponding first experimental parameter. The relevant data can be provided by the user.
[0052] In the embodiments of this application, see Figure 3 As shown, the experimental platform 200 conducts experiments based on the experimental data modified by user 100, obtains first and second experimental parameters, and generates copies of the first and second experimental parameters. The copies are then distributed via file distribution system 300, distributing the first experimental parameters to first client 500 and the second experimental parameters to second client 400. This allows the first experimental parameters to be stored in the local storage medium of first client 500, and the second experimental parameters to be stored in the local storage medium of second client 400. When the first client needs to use the first experimental parameters, it can retrieve them from the local storage medium based on the hit code, improving data acquisition efficiency.
[0053] S220, based on the hit code, obtains the first experimental parameters from the local storage medium.
[0054] The first experimental parameter is stored in the local storage medium. During storage, an identifier for the first experimental parameter can be generated so that the corresponding first experimental parameter can be retrieved based on the identifier. The hit code can be a code that matches the identifier, so that the first experimental parameter to be retrieved can be obtained by reading the hit code.
[0055] A hit code may include an identifier for obtaining a first experimental parameter, thereby reading a hit code and obtaining a first experimental parameter.
[0056] The hit code can also be an identifier that includes multiple first experimental parameters, so that multiple first experimental parameters can be obtained from the local storage medium by reading the hit code.
[0057] In this embodiment, by storing the first experimental parameter in a local storage medium and obtaining the corresponding first experimental parameter from the local storage medium through a hit code, the transmission efficiency of the experimental parameter can be greatly improved, while reducing bandwidth and CPU consumption.
[0058] In this embodiment of the application, by storing the first experimental parameter in a local storage medium and obtaining the corresponding first experimental parameter from the local storage medium through a hit code for use, the inconvenience caused by obtaining the first experimental parameter from a second client or server when it is needed can be avoided.
[0059] In one implementation, the local storage medium stores multiple sets of first parameter groups, each set including multiple first experimental parameters. The hit code includes multiple group identifiers, each group identifier including a sequence number. Thus, the hit code can indicate the location where the first experimental parameters need to be obtained.
[0060] Step S210 includes: determining a first parameter group based on a group identifier; and determining a first experimental parameter from the first parameter group based on a serial number identifier.
[0061] In one example, the number of group identifiers in the hit code corresponds to the number of first parameter groups stored in the local storage medium. That is, for example, if there are 100 first parameter groups stored in the local storage medium, the hit code includes 100 group identifiers to indicate the corresponding operation to be performed from the first parameter group of the corresponding group identifier. This operation may be to obtain the first experimental parameter of the corresponding sequence identifier, or to do nothing. The corresponding sequence identifier can be a null value to indicate that the first experimental parameter is not obtained from that first parameter group.
[0062] In one example, each group identifier includes a sequence number, used to retrieve a first experimental parameter from multiple first parameter groups. The sequence number indicates which first experimental parameter within the first parameter group is retrieved. This approach can be used in specific application scenarios, such as when each first parameter group represents a user's business, retrieving the first experimental parameter from each first parameter group to ensure equal opportunity.
[0063] In a specific example, the hit code can include multiple pairs of identification information. Each pair of identification information includes a group identifier and a sequence number identifier. For example, if the number of groups including the first parameter group in the local storage medium is 4, the hit code can be 1-3, 2-5, 3-2, 4-3. That is, based on the hit code, it is necessary to obtain the third first experimental parameter in the first group, the fifth first experimental parameter in the second group, the second first experimental parameter in the third group, and the third first experimental parameter in the fourth group in the local storage medium.
[0064] In the embodiments of this application, such as Figure 4 As shown, the second client 400 obtains the second experimental parameters from the distributed distribution system. Based on the request sent by user 100, it performs a hit experiment according to preset hit rules to obtain a hit code. The hit rules can be various hit schemes, both now and in the future, as indicated by a person skilled in the art. The obtained hit code is then sent to the first client 500.
[0065] In one example, the targeting rules can be determined based on the user's level of interest in business data. This level of interest can be based on metrics such as click-through rate, purchase rate, conversion rate, or browsing time.
[0066] The hit rule can match weights for the first experimental parameter with different serial numbers, and obtain the first experimental parameter with the highest weight based on the weight of the first experimental parameter.
[0067] In the above embodiments, the second experimental parameters are obtained and stored in the local storage medium of the second client. Furthermore, the entity executing the hit experiment based on the second experimental parameters can also be a server.
[0068] In one implementation, step S210 includes: obtaining a hit code, wherein the hit code is a numerical value; and obtaining a hit encoding based on the hit code and a first parsing rule.
[0069] The hit code is a numerical code generated by the second client based on the obtained hit code, according to certain code generation rules. Therefore, when the first client receives the hit code, it can retrieve other relevant information based on the hit code and parse it to obtain the hit code. This other relevant information may be information related to the first experimental parameters stored in the local storage medium, such as the number of groups in the first parameter set, the number of first experimental parameters contained in each first parameter group, etc.
[0070] In this embodiment, the hit code is obtained through the hit code and the first parsing rule, enabling the hit code to be obtained by transmitting only the hit code, i.e., a single value. That is, regardless of the number of experimental parameters, the amount of data transmitted will not increase, further reducing network overhead and improving the transmission efficiency of experimental parameters.
[0071] like Figure 4 As shown, the second client 400 stores the second experimental parameters in its local storage medium. Based on the request sent by user 100 and the second experimental parameters in the local storage medium, a hit experiment is performed according to preset hit rules to obtain a hit code. The second client then generates a hit code based on the obtained hit code and according to code generation rules. The hit code is then sent to the first client.
[0072] The first client receives the hit code and, based on the first parsing rule, parses it to obtain the hit code, thereby obtaining the first experimental parameter. By calling the first experimental parameter, business data is obtained. The processing status of the obtained business data is returned to the second client, which then returns it to the user terminal, allowing the user to understand the business processing status.
[0073] In one implementation, obtaining the hit code based on the hit code and the first parsing rule includes the following steps:
[0074] Obtain the number of first experimental parameters in each first parameter group;
[0075] Get the number of groups in the first parameter group in the local storage medium;
[0076] Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group;
[0077] The hit code is determined based on the group identifier and the sequence number identifier.
[0078] In one example, based on the hit code, the number of hits, and the number of groups, the sequence number of the hit first experimental parameter in each first parameter group is determined. This includes: determining that the number of groups in the first parameter group is N, assuming that the Nth first parameter group includes 6 first experimental parameters. Then, based on the hit code and the number of first experimental parameters in the Nth first parameter group, the sequence number of the Nth first parameter group can be calculated according to a preset function. Then, based on the sequence number of the Nth first parameter group, the number of first experimental parameters in the (N-1)th first parameter group, and the number of groups N-1, the sequence number of the (N-1)th first parameter group can be calculated according to a preset function. This process is repeated to obtain the sequence number of each parameter group in the N first parameter groups, thereby determining the hit code.
[0079] In a specific instance, the predefined function is:
[0080] f(0)=0 (1)
[0081] f(n+1) = f(n) × count n +id n (2)
[0082] Where, count n id represents the number of first experimental parameters in each first parameter group. n is the sequence number of the hit, and n is the group identifier.
[0083] As an example, such as Figure 5 As shown. Assume the second experimental parameters include three sets of second experimental parameters. The matched second experimental parameters are those with index 1 in the first set, index 0 in the second set, and index 2 in the third set. Then the matched codes are 1-1, 2-0, and 3-2.
[0084] The process of generating a hit code based on this hit code is as follows:
[0085] (0)=0
[0086] f(1)=(0)×2+1=1
[0087] f(2)=(1)×1+0=1
[0088] f(3)=(2)×3+2=5
[0089] The resulting hit code is 5.
[0090] If the first client receives a hit code of 5, it can deduce the ID by working backwards. n And the corresponding value of n.
[0091] For example, such as Figure 6 As shown, based on the hit code 5, f(0) = 0;
[0092] Then you will get:
[0093] f(1) = 0 + a =
[0094] f(2) = ×1 + c =
[0095] f(3) = ×3 + e = 5
[0096] Then the values of a, c, and e can be calculated to determine the serial number identifier in each group of first parameters, and the first experimental parameter corresponding to the serial number identifier can be obtained from each group of first parameters.
[0097] The process of calculating the values of a, c, and e is as follows:
[0098] Based on f(3), we can obtain: e = 5 3 = 2; and we can also obtain: d = 1;
[0099] Based on f(2) and d, we can obtain: c = dmod1 = 1 1 = 0; We can also obtain:
[0100] b = 1;
[0101] Based on f(1) and b, we can obtain: a = b mod 0 = -0 = 1;
[0102] Here, when the dividend is 0, the result of the division is automatically obtained as 0, thus obtaining the remainder value.
[0103] Based on the above analysis, the sequence number of the first parameter group hit is 1, the sequence number of the second parameter group hit is 0, and the sequence number of the third parameter group hit is 2; the hit codes are: 1-1, 2-0, 3-2.
[0104] In one implementation, step S220 includes: obtaining a target group identifier from a plurality of group identifiers of the hit code; and obtaining a first experimental parameter corresponding to the sequence identifier from a plurality of first parameter groups corresponding to the target group identifier.
[0105] The hit code includes the sequence number identifier that needs to be obtained in each first parameter group, that is, the number of group identifiers is equal to the number of groups in the first parameter group.
[0106] The target group identifier is obtained from multiple group identifiers of the hit code. This can be done through a random factor or by matching weights. After obtaining the target group identifier, the first experimental parameter corresponding to the first parameter group is obtained from the multiple first parameter groups corresponding to the target group identifier. A target number of group identifiers can be selected from the multiple hit group identifiers to obtain a target number of first experimental parameters. The target number of target group identifiers can be set according to the actual application or determined by user configuration parameters.
[0107] In this embodiment of the application, by obtaining the hit code and then filtering out the target number of first experimental parameters from the hit code, the target number of first experimental parameters can be obtained according to the application requirements.
[0108] In one implementation, the business data processing method further includes: parsing the obtained first experimental parameters based on a second parsing rule; and obtaining business data based on the parsing results.
[0109] The second parsing rule can be different for different first experimental parameters. The second parsing rule can be a parsing rule bound to the first experimental parameter, so that the corresponding parsing rule can be automatically obtained when the first experimental parameter is acquired, allowing for timely parsing of the first experimental parameter. For example, if the first experimental parameter is a text link, the corresponding page content can be obtained and output as business data.
[0110] By parsing the first experimental parameter to obtain the business data, it becomes possible to avoid storing the business data itself during storage. Therefore, the first experimental parameter can be an intermediate form associated with the corresponding business data, such as a link, homepage, identifier, or storage address.
[0111] In one embodiment, the business data processing method further includes: receiving a first experimental parameter, the first experimental parameter carrying identification information, the identification information including a group identifier and a sequence number identifier; and storing the first experimental parameter in a local storage medium according to the group identifier and the sequence number identifier.
[0112] When conducting experiments on the experimental platform and obtaining the corresponding first and second experimental parameters, the first experimental parameters will be synchronously transmitted to the local storage medium of the first client and the second experimental parameters will be transmitted to the local storage medium of the second client through a distributed distribution system.
[0113] If modifications to the experiment are necessary, new second experimental parameters and new first experimental parameters will be generated based on the modified experiment. The new second experimental parameters will then be transmitted to the local storage medium of the second client, and the new first experimental parameters will be transmitted to the local storage medium of the first client. The new first experimental parameters may be first experimental parameters with newly identified identifiers or first experimental parameters with historical identifiers. First experimental parameters with historical identifiers may be first experimental parameters with corresponding identifier information already stored in the local storage medium.
[0114] In one embodiment, the business data processing method further includes: replacing the historical first experimental parameter with the first experimental parameter if the identification information of the first experimental parameter overlaps with the identification information of the historical first experimental parameter.
[0115] The first historical experimental parameters can be the first experimental parameters that already exist in the local storage medium.
[0116] The identifier information of the first experimental parameter overlaps with the identifier information of the historical first experimental parameter, meaning the user modifies the experiment and wants to update the historical first experimental parameter. The first experimental parameter is updated in real time by replacing the historical first experimental parameter with the newly received first experimental parameter.
[0117] If the identification information of the first experimental parameter does not overlap with that of the historical first experimental parameter, that is, if the local storage medium does not yet store the first experimental parameter corresponding to the identification information, then the newly received first experimental parameter is stored in the local storage medium, thus realizing the addition of the first experimental parameter.
[0118] Figure 7 A flowchart illustrating a business data processing method according to an embodiment of this application is shown. Figure 7 As shown, the business data processing method may include:
[0119] In response to a business request, the S710 generates a hit code based on the second experimental parameters in the local storage medium and according to the preset hit rules.
[0120] The execution entity of the business data processing method in this application embodiment can be either a server or a client.
[0121] In one example, a business request could be, for instance, receiving an ad push request. This ad push request could be loaded by the application or triggered by a user click.
[0122] In one example, upon receiving a business request, the second experimental parameter can be used to determine which type of business to send based on the source of the business request.
[0123] For example, the local storage medium can store second experimental parameters for various business types, such as health and education. These second experimental parameters are stored separately according to their business type. In the case where a business request is loaded based on an education-related application, the hit code can be determined by matching the second experimental parameters for the education category stored in the local storage medium.
[0124] In one example, second experimental parameters for multiple different business types can be stored on the same disk. When a hit experiment is required to obtain the second experimental parameters, regardless of the type of business request, the hit experiment is performed based on the second experimental parameters stored on this local storage medium to obtain the hit code.
[0125] The S720 sends the hit code to the first client.
[0126] The hit code is sent to the first client, so that the first client can receive the hit code and determine the first experimental parameters based on the hit code, thereby completing the business data processing.
[0127] In this embodiment of the application, by sending the hit code to the first client instead of sending the first experimental parameters to the first client, the amount of data transmitted can be greatly reduced and the data processing efficiency can be improved.
[0128] In one implementation, step S720 includes:
[0129] Based on the hit code, generate the hit code according to the preset code generation rules;
[0130] The hit code is sent to the first client.
[0131] In this embodiment, by sending a hit code, the first client obtains a hit code based on the first parsing rule and the hit code. This allows the hit code to be obtained by transmitting only the hit code, i.e., a single numerical value. In other words, regardless of the number of experimental parameters, the amount of data transmitted will not increase.
[0132] This application embodiment further reduces the amount of data transmitted and improves data processing efficiency by transmitting the hit code to the first client.
[0133] In one embodiment, the business data processing method further includes: receiving a second experimental parameter, the second experimental parameter carrying identification information, the identification information including a group identifier and a sequence number identifier; and storing the second experimental parameter in a local storage medium according to the group identifier and the sequence number identifier.
[0134] When conducting experiments on the experimental platform and obtaining the corresponding first and second experimental parameters, the first experimental parameters will be synchronously transmitted to the local storage medium of the first client and the second experimental parameters will be transmitted to the local storage medium of the second client through a distributed distribution system.
[0135] If modifications to the experiment are necessary, new second experimental parameters and new first experimental parameters will be generated based on the modified experiment. The new second experimental parameters will then be transmitted to the local storage medium of the second client, and the new first experimental parameters will be transmitted to the local storage medium of the first client. The new first experimental parameters may be first experimental parameters with newly identified identifiers or first experimental parameters with historical identifiers. First experimental parameters with historical identifiers may be first experimental parameters whose corresponding identifier information is already included in the local storage medium.
[0136] In one embodiment, the business data processing method further includes: replacing the historical second experimental parameter with the second experimental parameter if the identification information of the second experimental parameter overlaps with the identification information of the historical second experimental parameter.
[0137] The historical second experimental parameters can be existing second experimental parameters in the local storage medium.
[0138] The identifier information of the second experimental parameter overlaps with that of the historical second experimental parameter, meaning the user modifies the experiment and wants to update the historical second experimental parameter. The second experimental parameter is updated in real-time by replacing the historical second experimental parameter with the newly received one.
[0139] If the identification information of the second experimental parameter does not overlap with that of the historical second experimental parameter, that is, if the local storage medium does not yet store the second experimental parameter corresponding to the identification information, then the newly received second experimental parameter will be stored in the local storage medium, thus realizing the addition of the second experimental parameter.
[0140] In one embodiment, the business data processing method further includes: obtaining the time node for receiving the second experimental parameters. Step S720 includes: sending the hit code to the first client when the time interval from the time node reaches a preset threshold.
[0141] In one example, the preset threshold can be 1 minute or 30 seconds. The preset threshold can be determined based on the time it takes for the distributed distribution system to transmit the first experimental parameter to the first client. The preset threshold can be greater than the time it takes to transmit the first experimental parameter to the first client to ensure that if the first experimental parameter is updated, the first experimental parameter obtained from the local storage medium is the updated first experimental parameter.
[0142] In one embodiment, the business data processing method further includes: obtaining the time node for receiving the second experimental parameter when the identification information of the historical second experimental parameter does not overlap with the identification information of the second experimental parameter; step S720 includes: sending the hit code to the first client when the time distance from the time node reaches a preset threshold.
[0143] In this embodiment of the application, the hit code is sent to the first client only when the time from the time node reaches a preset threshold, provided that the identification information of the historical second experimental parameter does not overlap with the identification information of the second experimental parameter.
[0144] The identification information of the historical second experimental parameter does not overlap with the identification information of the second experimental parameter, indicating that the received second experimental parameter has newly added identification information. If the newly added first experimental parameter is obtained before the first experimental parameter has arrived at the local storage medium, an error will occur.
[0145] In this embodiment, the hit code is sent to the first client only when the second experimental parameter is newly added and the time remaining from the time node reaches a preset threshold. This ensures that the first client can obtain the corresponding first experimental parameter based on the hit code when a second experimental parameter is added.
[0146] In this embodiment, when the second experimental parameter is not newly added (i.e., updated), the time node for receiving the second experimental parameter is not obtained, nor is the hit code sent to the first client when the time interval from the time node reaches a preset threshold. That is, when the second experimental parameter is updated, if the updated first experimental parameter has not yet arrived at the first client's local storage medium, the historical first experimental parameter can be obtained without error.
[0147] Figure 8This diagram illustrates a structural block diagram of a business data processing apparatus according to an embodiment of the present application. Figure 8 As shown, the business data processing device may include:
[0148] The encoding acquisition module 810 is used to acquire the hit code; the hit code is used to associate the corresponding first experimental parameter.
[0149] The first experimental parameter acquisition module 820 is used to acquire the first experimental parameter from the local storage medium based on the hit code. The first experimental parameter is used to acquire business data.
[0150] In one embodiment, a local storage medium stores multiple sets of first parameter groups, each set of first parameter groups including multiple first experimental parameters;
[0151] The hit code includes multiple group identifiers, and each group identifier includes a sequence number identifier;
[0152] The first experimental parameter acquisition module is used to: determine the first parameter group based on the group identifier;
[0153] The first experimental parameter is determined from the first parameter group based on the serial number identifier.
[0154] In one embodiment, the encoding acquisition module 810 includes:
[0155] The code acquisition module is used to acquire the hit code, which is a numerical value;
[0156] The encoding acquisition submodule is used to acquire the hit code based on the hit code and the first parsing rule.
[0157] In one implementation, the encoding acquisition submodule is used for:
[0158] Obtain the number of first experimental parameters in each of the first parameter groups;
[0159] Obtain the number of groups of the first parameter group in the local storage medium;
[0160] Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group;
[0161] The hit code is determined based on the group identifier and the sequence number identifier.
[0162] In one implementation, the first experimental parameter acquisition module 820 is used for:
[0163] The target group identifier is determined from the multiple group identifiers of the hit code;
[0164] Obtain the first experimental parameter corresponding to the serial number identifier from the multiple first parameter groups corresponding to the target group identifier.
[0165] In one embodiment, the business data processing device 800 further includes: a business data parsing module, used to parse the obtained first experimental parameters based on a second parsing rule;
[0166] The business data acquisition module is used to obtain business data based on the parsing results.
[0167] In one embodiment, the business data processing apparatus 800 further includes:
[0168] The first experimental parameter receiving module is used to receive the first experimental parameter, which carries identification information, including a group identifier and a sequence number identifier.
[0169] The first experimental parameter storage module is used to store the first experimental parameters in the local storage medium according to the group identifier and the sequence number identifier.
[0170] In one embodiment, the business data processing apparatus 800 further includes:
[0171] The first experimental parameter replacement module is used to replace the historical first experimental parameter with the first experimental parameter when the identification information of the first experimental parameter overlaps with the identification information of the historical first experimental parameter.
[0172] The functions of each module in each device in the embodiments of this application can be found in the corresponding descriptions in the above methods, and will not be repeated here.
[0173] Figure 9 This diagram illustrates a structural block diagram of a business data processing apparatus 900 according to an embodiment of this application. Figure 9 As shown, the business data processing device 900 may include:
[0174] The hit module 910 is used to respond to business requests and generate hit codes according to preset hit rules based on the second experimental parameters in the local storage medium.
[0175] The encoding and sending module 920 is used to send the hit code to the first client.
[0176] In one embodiment, the encoding and transmitting module 920 includes:
[0177] The code generation module is used to generate hit codes based on the hit codes and according to preset code generation rules;
[0178] The encoding and sending submodule is used to send the hit code to the first client.
[0179] In one embodiment, the business data processing apparatus 900 further includes:
[0180] The second experimental data receiving module is used to receive the second experimental parameters, which carry identification information, including group identifier and sequence number identifier.
[0181] The second experimental data storage module is used to store the second experimental parameters into the local storage medium according to the group identifier and the serial number identifier.
[0182] In one embodiment, the business data processing apparatus 900 further includes:
[0183] The second experimental data replacement module is used to replace the historical second experimental parameter with the second experimental parameter when the identification information of the second experimental parameter overlaps with the identification information of the historical second experimental parameter.
[0184] In one embodiment, the business data processing apparatus 900 further includes:
[0185] The time node acquisition module is used to acquire the time node for receiving the second experimental parameter;
[0186] Encoding and transmitting module 920 includes:
[0187] The delay module is used to send the hit code to the first client when the time interval from the time node reaches a preset threshold.
[0188] In one implementation, the time node acquisition module is used for:
[0189] If the identification information of the historical second experimental parameter does not overlap with the identification information of the second experimental parameter, the time node for receiving the second experimental parameter is obtained.
[0190] The encoding and sending module 920 is used to send the hit code to the first client when the time distance from the time node reaches a preset threshold.
[0191] The functions of each module in each device in the embodiments of this application can be found in the corresponding descriptions in the above methods, and will not be repeated here.
[0192] Figure 10 A structural block diagram of an electronic device according to an embodiment of this application is shown. Figure 10As shown, the electronic device includes a memory 1010 and a processor 1020. The memory 1010 stores instructions that can be executed on the processor 1020. When the processor 1020 executes the instructions, it implements the business data processing method described in the above embodiments. The number of memories 1010 and processors 1020 can be one or more. This electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.
[0193] The electronic device may also include a communication interface 1030 for communicating with external devices and exchanging data. The devices are interconnected using different buses and can be mounted on a common motherboard or otherwise as needed. The processor 1020 can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). The bus can be divided into address buses, data buses, control buses, etc. For ease of illustration, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0194] Optionally, in a specific implementation, if the memory 1010, processor 1020 and communication interface 1030 are integrated on a single chip, then the memory 1010, processor 1020 and communication interface 1030 can communicate with each other through an internal interface.
[0195] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting the Advanced Reduced Instruction Set Computing (RISC) machine (ARM) architecture.
[0196] This application provides a computer-readable storage medium (such as the memory 1010 described above) that stores computer instructions, which, when executed by a processor, implement the method provided in this application.
[0197] Optionally, the memory 1010 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the electronic device according to the business data processing method. Furthermore, the memory 1010 may include high-speed random access memory and may also include non-transient memory, such as at least one disk storage device, flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1010 may optionally include memory remotely located relative to the processor 1020, and these remote memories can be connected to the electronic device of the business data processing method via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0198] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0199] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0200] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more (two or more) executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.
[0201] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0202] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.
[0203] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.
[0204] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope disclosed in this application, and these should all be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A business data processing method, characterized in that, include: Obtain the hit code, which is used to associate the corresponding first experimental parameter; Based on the hit code, a first experimental parameter is obtained from the local storage medium, and the first experimental parameter is used to obtain business data; The process of obtaining the hit code includes: Obtain the hit code, which is a numerical value; Based on the hit code and the first parsing rule, the hit code is obtained; The step of obtaining the hit code based on the hit code and the first parsing rule includes: Obtain the number of first experimental parameters in each first parameter group; Obtain the number of groups of the first parameter group in the local storage medium; Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group; The hit code is determined based on the group identifier and the sequence number identifier.
2. The method according to claim 1, characterized in that, The local storage medium stores multiple sets of first parameter groups, each set of first parameter groups including multiple first experimental parameters; the hit code includes multiple group identifiers, each group identifier including a sequence number identifier. The step of obtaining the first experimental parameters from the local storage medium based on the hit code includes: The first parameter group is determined based on the group identifier; Based on the serial number identifier, the first experimental parameter is determined from the first parameter group.
3. The method according to claim 1, characterized in that, The step of obtaining the first experimental parameters from the local storage medium based on the hit code includes: The target group identifier is determined from the multiple group identifiers of the hit code; Obtain the first experimental parameter corresponding to the serial number identifier from the multiple first parameter groups corresponding to the target group identifier.
4. The method according to any one of claims 1 to 3, characterized in that, Also includes: The first experimental parameters were obtained by parsing based on the second parsing rule; Based on the analysis results, business data is obtained.
5. The method according to claim 1, characterized in that, Also includes: Receive a first experimental parameter, the first experimental parameter carrying identification information, the identification information including a group identifier and a sequence number identifier; The first experimental parameters are stored in the local storage medium according to the group identifier and the serial number identifier.
6. The method according to claim 5, characterized in that, Also includes: If the identification information of the first experimental parameter overlaps with the identification information of the historical first experimental parameter, the historical first experimental parameter shall be replaced by the first experimental parameter.
7. A business data processing method, characterized in that, include: In response to a business request, a hit code is generated based on the second experimental parameters in the local storage medium and according to the preset hit rules. The hit code is sent to the first client; Obtaining the hit code includes: Obtain the hit code, which is a numerical value; Based on the hit code and the first parsing rule, the hit code is obtained; Obtaining the hit code based on the hit code and the first parsing rule specifically includes: Obtain the number of first experimental parameters in each first parameter group; Obtain the number of groups of the first parameter group in the local storage medium; Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group; The hit code is determined based on the group identifier and the sequence number identifier.
8. The method according to claim 7, characterized in that, Sending the hit code to the first client includes: Based on the hit code, a hit code is generated according to the preset code generation rules; The hit code is sent to the first client.
9. The method according to claim 7, characterized in that, Also includes: Receive a second experimental parameter, which carries identification information, including a group identifier and a sequence number identifier; The second experimental parameters are stored in the local storage medium according to the group identifier and the serial number identifier.
10. The method according to claim 9, characterized in that, Also includes: If the identification information of the second experimental parameter overlaps with the identification information of the historical second experimental parameter, the historical second experimental parameter shall be replaced with the second experimental parameter.
11. The method according to claim 9, characterized in that, Also includes: Obtain the time node for receiving the second experimental parameters; Sending the hit code to the first client includes: When the time interval from the stated time node reaches a preset threshold, the hit code is sent to the first client.
12. The method according to claim 9, characterized in that, Also includes: If the identification information of the historical second experimental parameter does not overlap with the identification information of the second experimental parameter, the time node for receiving the second experimental parameter is obtained. Sending the hit code to the first client includes: When the time interval from the stated time node reaches a preset threshold, the hit code is sent to the first client.
13. A business data processing apparatus, characterized in that, include: The encoding acquisition module is used to acquire the hit code, which is used to associate the corresponding first experimental parameter; The first experimental parameter acquisition module is used to acquire the first experimental parameters from the local storage medium based on the hit code; The first experimental parameter is used to acquire business data; The process of obtaining the hit code includes: Obtain the hit code, which is a numerical value; Based on the hit code and the first parsing rule, the hit code is obtained; Obtaining the hit code based on the hit code and the first parsing rule specifically includes: Obtain the number of first experimental parameters in each first parameter group; Obtain the number of groups of the first parameter group in the local storage medium; Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group; The hit code is determined based on the group identifier and the sequence number identifier.
14. A business data processing apparatus, characterized in that, include: The hit module is used to respond to business requests and generate hit codes based on the second experimental parameters in the local storage medium and according to preset hit rules. An encoding and sending module is used to send the hit code to the first client; Obtaining the hit code includes: Obtain the hit code, which is a numerical value; Based on the hit code and the first parsing rule, the hit code is obtained; Obtaining the hit code based on the hit code and the first parsing rule specifically includes: Obtain the number of first experimental parameters in each first parameter group; Obtain the number of groups of the first parameter group in the local storage medium; Based on the hit code, the number of hits, and the number of groups, determine the sequence number identifier of the first experimental parameter hit in each first parameter group; The hit code is determined based on the group identifier and the sequence number identifier.
15. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any one of claims 1-6.
17. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 7-12.
18. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any one of claims 7-12.
19. A computer program product comprising computer instructions, characterized in that, When executed by a processor, the computer instructions implement the steps of the method according to any one of claims 1-6.