CN113254349A - AB test processing method, device, equipment and storage medium based on cloud function - Google Patents

AB test processing method, device, equipment and storage medium based on cloud function Download PDF

Info

Publication number
CN113254349A
CN113254349A CN202110692987.8A CN202110692987A CN113254349A CN 113254349 A CN113254349 A CN 113254349A CN 202110692987 A CN202110692987 A CN 202110692987A CN 113254349 A CN113254349 A CN 113254349A
Authority
CN
China
Prior art keywords
test
information
visiting
server
crowd
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110692987.8A
Other languages
Chinese (zh)
Inventor
李勇强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN202110692987.8A priority Critical patent/CN113254349A/en
Publication of CN113254349A publication Critical patent/CN113254349A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of test management, and discloses an AB test processing method, device, equipment and storage medium based on a cloud function, wherein the method comprises the following steps: the method comprises the steps of obtaining visiting channel information and visiting information in a test request by receiving the test request of a user; performing Nginx analysis on a visiting channel through a Nginx server to obtain a function platform server; the method comprises the steps that through an obtained cloud function platform server, crowd division is conducted on visiting information, and crowd grouping labels are obtained; performing function assembly by using an AB test distribution rule strategy through a cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in an Nginx server; and returning the stored AB test scheme to the terminal of the user through the Nginx server. Therefore, the invention realizes the automatic assembly of different versions of page schemes by using the Nginx server and the cloud function platform server, distributes the efficiency of different AB test schemes, and improves the accuracy of AB test.

Description

AB test processing method, device, equipment and storage medium based on cloud function
Technical Field
The invention relates to the technical field of test management, in particular to an AB test processing method, device, equipment and storage medium based on a cloud function.
Background
At present, an AB test becomes a necessary tool for enterprise business evaluation and business increasing and prolonging performance, different schemes are obtained by maintaining and determining dimensional variables and changing a plurality of factors, different schemes are put in groups of experimental users respectively, and feedback information and related data are obtained.
However, in the AB test scheme in the prior art, a series of tedious processes such as design of the AB test scheme and compiling of AB test multi-scheme scene codes are required, so that the AB test efficiency is low, and the situation that user division is inaccurate exists, so that the scheme expandability is poor, the generated AB test scheme is long in period, and the AB test scheme is low in flexible configuration.
Disclosure of Invention
The invention provides an AB test processing method and device based on a cloud function, computer equipment and a storage medium, which realize automatic assembly of page schemes of different versions according to an execution result of a policy function on a cloud function platform, and return the page schemes to users of different groups for testing, thereby improving the accuracy of AB test.
An AB test processing method based on a cloud function comprises the following steps:
receiving a test request of a user, and acquiring visiting channel information and visiting information in the test request;
performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel;
carrying out crowd division on the visiting information through the acquired cloud function platform server to obtain crowd grouping labels;
performing function assembly by using an AB test distribution rule strategy through the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server;
and returning the stored AB test scheme to the terminal of the user corresponding to the visiting channel information through the Nginx server.
An AB test processing device based on a cloud function comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test request of a user and acquiring visiting channel information and visiting information in the test request;
the analysis module is used for performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel;
the dividing module is used for dividing the visiting information into crowds through the acquired cloud function platform server to obtain a crowd grouping label;
the assembling module is used for performing function assembling through the cloud function platform server according to the visiting information and the crowd grouping label by applying an AB test distribution rule strategy to obtain an AB test scheme and storing the AB test scheme in the Nginx server;
and the return module is used for returning the stored AB test scheme to the terminal of the user corresponding to the visiting channel information through the Nginx server.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above-described cloud function-based AB test processing method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned cloud-function-based AB test processing method.
According to the AB test processing method and device based on the cloud function, the computer equipment and the storage medium, the visiting channel information and the visiting information in the test request are obtained by receiving the test request of a user; performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel; carrying out crowd division on the visiting information through the acquired cloud function platform server to obtain crowd grouping labels; performing function assembly by using an AB test distribution rule strategy through the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server; the stored AB test scheme is returned to the user terminal corresponding to the visiting channel information through the Nginx server, Nginx analysis is achieved through the Nginx server, the cloud function platform server is matched automatically, the crowd grouping labels are obtained through automatic crowd division, function assembly is automatically carried out by applying an AB test distribution rule strategy to output the AB test scheme, the AB test scheme is returned to the corresponding user terminal, page schemes of different versions can be automatically assembled according to the execution result of the strategy function on the cloud function platform, the AB test scheme is returned to users of different groups for testing, development cost of developers is reduced, the timeliness of AB test is improved, the efficiency of distributing different AB test schemes is improved by applying the Nginx server and the cloud function platform server, and the accuracy of the AB test is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of an AB test processing method based on a cloud function in an embodiment of the present invention;
FIG. 2 is a flowchart of a cloud function based AB test processing method according to an embodiment of the present invention;
fig. 3 is a flowchart of step S20 of the AB test processing method based on the cloud function in an embodiment of the present invention;
fig. 4 is a flowchart of step S30 of the AB test processing method based on the cloud function in an embodiment of the present invention;
fig. 5 is a flowchart of step S40 of the AB test processing method based on the cloud function in an embodiment of the present invention;
fig. 6 is a flowchart of step S50 of the AB test processing method based on the cloud function in an embodiment of the present invention;
FIG. 7 is a schematic block diagram of an AB test processing apparatus based on cloud functions according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device in an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The AB test processing method based on the cloud function can be applied to the application environment shown in figure 1, wherein a client (computer equipment or a terminal) is communicated with a server through a network. The client (computer device or terminal) includes, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, an AB test processing method based on a cloud function is provided, which mainly includes the following steps S10-S50:
s10, receiving a test request of a user, and acquiring the visiting channel information and the visiting information in the test request.
Understandably, the test request is a request triggered when a user agrees to perform version test before version release, wherein the version test includes an AB test, the content of the version release is related to page information in the visiting channel information, the visiting channel information is information related to channels such as visiting links, terminal attributes and APP version information accessed by the user, the visiting information is information related to the visiting of the user, and the visiting information includes page information, cookie information and behavior track information.
S20, Nginx analysis is carried out on the visiting channel through the Nginx server, and the cloud function platform server matched with the visiting channel is obtained.
Understandably, the Nginx server is a high-performance HTTP and reverse proxy web server, and also provides IMAP/POP3/SMTP service, the processing procedure of the Nginx resolution is to perform DNS resolution on the visiting link, resolve an address corresponding to the domain name of the visiting link, and obtain a cloud function platform server matched with the address from the Nginx configuration information in the Nginx server by a load balancing method, the load balancing method is a method of distributing users to two or more servers when a large number of users visit, so as to be able to be allocated to the high-performance server, the cloud function platform server is a method of abandoning the configuration and management of the servers for users, only writing and uploading independent cloud function codes, namely a server capable of obtaining corresponding data results, and using the cloud function code to avoid all the operation of users, the operation of the whole operation and maintenance can be completed only by establishing the substitution or connection relation of the cloud function codes, so that a developer can concentrate on the development of the core service more, and the quick version iteration is realized.
Wherein, all cloud function platform servers are listed in the Nginx configuration information.
In an embodiment, as shown in fig. 3, in the step S20, that is, performing a Nginx resolution on the access channel through a Nginx server, to obtain a cloud function platform server matching with the access channel, the method includes:
s201, acquiring Nginx configuration information in the Nginx server.
Understandably, the Nginx configuration information records a user group of the Nginx server, a Nginx process storage path, a log storage path, a network connection number, a configuration agent, a cache, a log definition and other related configurations which affect the Nginx server or are connected with the user, and all cloud function platform servers are recorded in the user group of the Nginx server.
S202, performing DNS analysis on the visiting link in the visiting channel through the Nginx server to obtain an address result.
Understandably, the DNS resolution is a resolution process that will convert a domain name into a corresponding IP address, the DNS resolution process is a process of tree search, i.e., a branch progression process of a tree graph, and the address result is a result of an IP address.
S203, acquiring the cloud function platform server matched with the Nginx configuration information and the address result by using a load balancing method.
Understandably, the load balancing method is a method for matching a cloud function platform server with a small number of user connections and a master-slave relationship with the server of the address result in the Nginx configuration information.
The invention realizes the Nginx configuration information in the Nginx server; performing DNS analysis on the visiting link in the visiting channel through the Nginx server to obtain an address result; and acquiring the cloud function platform server matched with the Nginx configuration information and the address result by using a load balancing method, so that the cloud function platform server is automatically matched by using a DNS analysis and load balancing method of the Nginx server, thereby avoiding the conflict of high-concurrency user requests and improving the timeliness of the requests.
And S30, carrying out crowd division on the visiting information through the acquired cloud function platform server to obtain crowd grouping labels.
Understandably, the process of crowd division is to perform multidimensional division on the input visiting information and to divide the crowd grouping labels corresponding to the input visiting information, for example: the Cookie information in the visit information is read, the user can be simply divided according to a certain Cookie ID in the Cookie information, for example, the crowd can be divided according to the last bit of the Cookie ID, the visit information with the last bit of the Cookie ID as the singular number is divided into a crowd grouping label A, the visit information with the last bit of the Cookie ID as the even number is divided into B, the ID information of the user can be independently generated and stored in the Cookie information in the visit information, the crowd grouping label corresponding to the same historical ID information can be found according to the ID information in the Cookie information, and the crowd grouping label is returned.
Wherein the crowd-sourcing label is a category that divides the user into a plurality of different crowd-sourcing groups.
In an embodiment, as shown in fig. 4, in the step S30, that is, the obtaining the crowd grouping label by performing crowd division on the visiting information through the obtained cloud function platform server includes:
s301, obtaining cookie information and behavior track information in the visiting information.
Understandably, the cookie information is data (usually encrypted) stored on the user local terminal for identifying the user identity and performing session tracking, and may be packaged as visiting information to distinguish the user identity, and the behavior trajectory information is a related trajectory of the user visiting all page information, may be all historical trajectories, and may also be a trajectory within a preset time.
S302, random crowd division is carried out on the cookie information by using a random crowd strategy to obtain a first crowd result.
Understandably, the random crowd policy is to perform random transformation through the Cookie ID in the Cookie information, and determine the first crowd result according to the range of the crowd label mapping in which the transformed value falls, wherein the first crowd result is the category of the crowd label divided according to the Cookie information.
S303, extracting the crowd characteristics of the behavior track information, and identifying a second crowd result according to the extracted crowd characteristics.
Understandably, the crowd characteristics are the activity of users accessing page information and the related characteristics of access blocks, such as: the interaction duration, the click rate, the access topic and the like can be identified according to the extracted crowd characteristics, a second crowd result is determined through the crowd labels, and the second crowd result is a category of the crowd labels identified according to the crowd characteristics.
S304, generating the crowd grouping label in a combined mode according to the first crowd result and the second crowd result.
Understandably, the first crowd result and the second crowd result are combined to obtain the crowd grouping label, where the combination mode may be set according to a requirement, for example, the first crowd result and the second crowd result are combined into a group according to a binary format, or the first crowd result and the second crowd result are directly spliced together, and so on, so as to generate the crowd grouping label.
The invention realizes the purpose of obtaining the cookie information and the behavior track information in the visiting information; carrying out random crowd division on the cookie information by using a random crowd strategy to obtain a first crowd result; extracting the crowd characteristics of the behavior track information, and identifying a second crowd result according to the extracted crowd characteristics; and combining and generating the crowd grouping label according to the first crowd result and the second crowd result, so that the crowd grouping label is determined through cookie dimension and behavior track dimension, and the crowd of the user receiving the AB test can be automatically matched.
S40, performing function assembly through the cloud function platform server according to the visiting information and the crowd grouping label by applying an AB test distribution rule strategy to obtain an AB test scheme, and storing the AB test scheme in the Nginx server;
understandably, the AB test distribution rule policy is a policy that a plurality of different versions can be shunted to different users in real time, the number and the proportion of crowd groups can be continuously adjusted according to the AB test result, and finally, a release scheme to be released to all users is determined, the function assembling process is a process of positioning a cloud function code insertion position to be inserted in a main function code corresponding to the page information, the cloud function code insertion position being matched with the crowd group label, correspondingly inserting each cloud function code in the insertion position, packaging the inserted main function, and generating an AB test scheme, and associating the page information and the crowd group label with the AB test scheme, and storing the page information and the crowd group label in the static resources of the Nginx server.
The main function code is a code for upgrading or modifying the page information corresponding to the main function code to create the main line, the cloud function code is an independent function code which can be used online by developers only by providing simple function method names and code fragments, and the cloud function code can be triggered to respond and use in the main function code by adding a trigger for triggering the cloud function code to run.
In an embodiment, as shown in fig. 5, in the step S40, that is, the performing, by using an AB test distribution rule policy, function assembly by the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server includes:
s401, obtaining a main function code corresponding to the page information in the visiting information from the cloud function platform server.
Understandably, the cloud function platform server stores main function codes corresponding to all the page information, and the main function codes are codes for upgrading or modifying the created main line corresponding to the page information.
S402, an AB test distribution rule strategy is applied, and cloud function codes matched with the crowd grouping labels are obtained through the cloud function platform server.
Understandably, the AB test distribution rule policy is a policy that can be refreshed in real time to offload multiple different versions to different users, for example: the users with the crowd grouping label of A and the crowd grouping label of B respectively extract the same quantity and respectively distribute the version A and the version B, namely the version A and the version B respectively account for 50 percent, the quantity and the proportion of the crowd grouping can be continuously adjusted according to the result of the AB test, and finally, the release scheme which needs to be released to all the users is determined.
And S403, performing function assembly on the main function code according to all the obtained cloud function codes to obtain the AB test scheme.
Understandably, the function assembling process is a process of positioning a cloud function code insertion position to be inserted in the main function code corresponding to the page information, inserting a corresponding cloud function code in the insertion position, and finally assembling into an AB test scheme.
In an embodiment, in step S403, that is, the performing function assembly on the main function code according to all the obtained cloud function codes to obtain the AB test scheme includes:
s4031, locating an insertion position in the main function code, which matches the code number in each cloud function code.
Understandably, the cloud function code includes the code number, the code number is a unique number assigned according to a function realized by the cloud function code and a project or test scheme to which the function is applicable, a cosine similarity calculation method and a character string minimum edit distance algorithm are applied to search a position matching each code number in the main function code, and the insertion position associated with each code number is marked.
Wherein, the cosine similarity algorithm evaluates the similarity of two character strings by calculating the cosine value of the included angle after the two character strings are converted into vectors, the minimum editing distance algorithm of the character strings is to calculate the cosine similarity value of the code number and each character string in the main function code by combining the number or times of the three editing modes through the minimum times of deleting (deleting one character in the character string A), inserting (inserting one character in the character string A) and replacing (replacing one character in the character string A with another character) needed for converting the character string A into the character string B, so as to measure the similarity between the character string A and the character string B, and calculate the cosine similarity value of the code number and each character string in the main function code through the cosine similarity algorithm, and calculate the editing similarity value of the code number and each character string in the main function code through the minimum editing algorithm of the character strings, and integrating the cosine similarity values and the editing similarity values to obtain an integrated similarity value of the code number and each character string in the main function code, so that the maximum integrated similarity value in all the integrated similarity values can be obtained, the character string corresponding to the maximum integrated similarity value is found from the main function code, the position of the character string is marked as the insertion position matched with the code number, and similarly, all the code numbers can be traversed, so that the insertion position matched with each code number is found.
S4032, insert each of the insert locations into the cloud function code matched with the insert location.
Understandably, according to the insertion position, a sub-function code corresponding to the insertion position can be located, the sub-function code is marked as not executed, and no execution processing is performed, that is, a code segment marked as not executed is not executed during program execution, and the cloud function code corresponding to the code number matched with the insertion position is inserted in the starting position of the sub-function code.
And S4033, determining the main function codes into which all the cloud function codes are inserted as the AB test scheme.
S404, associating the page information and the crowd grouping label with the AB test scheme and storing the page information and the crowd grouping label into the Nginx server.
Understandably, associating the page information with the AB test scenario, while associating the crowd grouping tag with the AB test scenario, and storing into the Nginx server.
The invention realizes that the main function code corresponding to the page information in the visiting information is obtained from the cloud function platform server; acquiring a cloud function code matched with the crowd grouping label through the cloud function platform server by applying an AB test distribution rule strategy; performing function assembly on the main function codes according to all the obtained cloud function codes to obtain the AB test scheme; and associating the page information and the crowd grouping labels with the AB test scheme and storing the page information and the crowd grouping labels into the Nginx server, so that the AB test schemes corresponding to different crowd grouping labels are automatically combined by applying an AB test distribution rule strategy, the development workload of developers is reduced, and the development convenience of the developers is improved.
And S50, returning the stored AB test scheme to the terminal of the user corresponding to the visiting channel information through the Nginx server.
Understandably, the AB test scheme of the static resources is sent to the terminal of the user corresponding to the visiting channel information, so that the terminal can render pages according to the AB test scheme, load the pages corresponding to the AB test scheme, display the pages to the user and finish the test of the AB test scheme.
The invention realizes that the visiting channel information and the visiting information in the test request are obtained by receiving the test request of the user; performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel; carrying out crowd division on the visiting information through the acquired cloud function platform server to obtain crowd grouping labels; performing function assembly by using an AB test distribution rule strategy through the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server; the stored AB test scheme is returned to the user terminal corresponding to the visiting channel information through the Nginx server, Nginx analysis is achieved through the Nginx server, the cloud function platform server is matched automatically, the crowd grouping labels are obtained through automatic crowd division, function assembly is automatically carried out by applying an AB test distribution rule strategy to output the AB test scheme, the AB test scheme is returned to the corresponding user terminal, page schemes of different versions can be automatically assembled according to the execution result of the strategy function on the cloud function platform, the AB test scheme is returned to users of different groups for testing, development cost of developers is reduced, the timeliness of AB test is improved, the efficiency of distributing different AB test schemes is improved by applying the Nginx server and the cloud function platform server, and the accuracy of the AB test is improved.
In an embodiment, as shown in fig. 6, the step S50 of returning the stored AB test scenario to the terminal of the user corresponding to the visiting channel information through the Nginx server includes:
s501, distributing the AB test scheme to each edge server by using a content distribution network.
Understandably, the Content Delivery Network (CDN) depends on edge servers deployed in various places, so that a user can obtain required content nearby, network congestion is reduced, the access response speed of the user is improved, the AB test scheme is delivered to each edge server having a content delivery network function, and the received AB test scheme is delivered to a client of the user by using the content delivery network.
S502, inquiring a nearby server matched with the visiting channel information from all the edge servers.
Understandably, the visiting channel information includes location information of a client of a user, the location information is queried through each edge server, a server closest to a physical location of the location information or/and a cluster network is queried, the server is determined as a nearby server matched with the visiting channel information, wherein the edge server includes a plurality of servers, namely, the edge server is a main server of a cluster, the plurality of servers include a slave server of the cluster, a server with the highest matching degree or similarity degree with the location information in the visiting channel information is queried in all the edge servers according to the physical location of each server and membership information of the cluster network, and the queried server is recorded as the nearby service.
S503, the AB test scheme is sent to the user terminal corresponding to the visiting channel information through the near server.
Understandably, a distribution sending instruction is issued to the edge server corresponding to the nearby server, so that the edge server sends the stored AB test scheme to the nearby server and issues the AB test scheme to the terminal of the user through the nearby server.
The invention realizes that the AB test scheme is distributed to each edge server by using a content distribution network; inquiring a nearby server matched with the visiting channel information from all the edge servers; through the nearby server, the AB test scheme is sent to the user terminal corresponding to the visiting channel information, so that the nearby server closest to the user terminal is quickly inquired by applying a content distribution network, the speed of issuing the AB test scheme to the terminal is increased, and the test efficiency of the AB test is improved.
In an embodiment, after the step S50, namely after the step of returning the stored AB test scheme to the user terminal corresponding to the visiting channel information through the Nginx server, the method includes:
and S60, regularly collecting the buried point data which is reported by the terminal of each user and is associated with the page information.
Understandably, different user terminals obtain respective AB test schemes after sending test requests, and after a period of use or experience, the terminals return relevant embedded data, wherein the embedded data is data of multi-dimensional indexes generated after the user terminals render and arrange embedded points on the page information in the terminals according to the received AB test schemes.
And S70, performing grouping index statistics on all the collected buried point data to obtain conversion rates corresponding to the grouping labels of the crowds.
Understandably, the grouping index statistics is to filter all the buried point data, filter out data related to the AB test scheme, count the data, such as statistics of retention, interaction duration, click rate and other index data, integrate various index data, and output conversion rates corresponding to different crowd grouping labels one to one, wherein the conversion rates represent the quality measurement indexes of user experience.
And S80, adjusting the AB test distribution rule strategy in real time according to all the conversion rates.
Understandably, according to the conversion rates corresponding to different crowd grouping labels, the number and the proportion occupied by the crowd grouping labels with high conversion rate are increased, and the number and the proportion occupied by the crowd grouping labels with low conversion rate are reduced, so that the effect of adjusting the AB test distribution rule strategy in real time is achieved, and the AB test scheme with good user experience can be automatically expanded.
And S90, when the AB test distribution rule strategy is detected to meet the adjustment stopping condition, determining a distribution scheme of the AB test scheme corresponding to the crowd grouping label corresponding to the maximum conversion rate, and distributing the distribution scheme on line.
Understandably, the adjustment stopping condition may be set according to a requirement, for example, when a certain conversion rate in the AB test distribution rule policy reaches a preset threshold, or when a user proportion reaches a preset proportion, or when the number of users reaches a preset number, and the like, an AB test scheme corresponding to the maximum conversion rate meeting the adjustment stopping condition is determined as the release scheme, where the release scheme indicates a scheme for releasing all users to be on-line after the AB test.
The invention realizes that the embedded point data which is related to the page information and is reported by the terminal of each user is collected at regular time; grouping index statistics is carried out on all the collected buried point data to obtain conversion rates corresponding to the grouping labels of all the groups; adjusting an AB test distribution rule strategy in real time according to all the conversion rates; when the AB test distribution rule strategy is detected to accord with the adjustment stopping condition, the AB test scheme corresponding to the crowd grouping label corresponding to the maximum conversion rate is determined to be a distribution scheme, and the distribution scheme is distributed to be on-line, so that the timely acquisition of the buried point data is realized, the AB test distribution rule strategy is adjusted through grouping index statistics, the final distribution scheme which is distributed to be on-line is determined, the strategy can be automatically adjusted, the distribution scheme is automatically on-line, the workload of manual statistics, adjustment and distribution on-line is reduced, and the AB test efficiency is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, an AB test processing apparatus based on a cloud function is provided, and the AB test processing apparatus based on a cloud function corresponds to the AB test processing method based on a cloud function in the foregoing embodiment one to one. As shown in fig. 7, the AB test processing apparatus based on cloud function includes a receiving module 11, a parsing module 12, a dividing module 13, an assembling module 14, and a return recall module 15. The functional modules are explained in detail as follows:
the system comprises a receiving module 11, a processing module and a processing module, wherein the receiving module is used for receiving a test request of a user and acquiring visiting channel information and visiting information in the test request;
the analysis module 12 is configured to perform Nginx analysis on the visiting channel through a Nginx server, and acquire a cloud function platform server matched with the visiting channel;
the dividing module 13 is configured to divide the visiting information into groups through the acquired cloud function platform server to obtain a group grouping tag;
the assembling module 141 is configured to apply an AB test distribution rule policy, perform function assembling through the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and store the AB test scheme in the Nginx server;
and a returning module 15, configured to return, by the nginnx server, the stored AB test scheme to the terminal of the user corresponding to the visiting channel information.
For the specific definition of the AB test processing apparatus based on the cloud function, refer to the above definition of the AB test processing method based on the cloud function, which is not described herein again. The modules in the above-mentioned AB test processing apparatus based on cloud functions may be implemented wholly or partially by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a client or a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a readable storage medium and an internal memory. The readable storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the readable storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a cloud function-based AB test processing method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the AB test processing method based on the cloud function in the foregoing embodiments is implemented.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the AB test processing method based on cloud functions in the above-described embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. An AB test processing method based on a cloud function is characterized by comprising the following steps:
receiving a test request of a user, and acquiring visiting channel information and visiting information in the test request;
performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel;
carrying out crowd division on the visiting information through the acquired cloud function platform server to obtain crowd grouping labels;
performing function assembly by using an AB test distribution rule strategy through the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server;
and returning the stored AB test scheme to the terminal of the user corresponding to the visiting channel information through the Nginx server.
2. The AB test processing method based on cloud function as claimed in claim 1, wherein said obtaining the cloud function platform server matching with the visiting channel by nginnx parsing the visiting channel through the nginnx server comprises:
acquiring Nginx configuration information in the Nginx server;
performing DNS analysis on the visiting link in the visiting channel through the Nginx server to obtain an address result;
and acquiring the cloud function platform server matched with the Nginx configuration information and the address result by using a load balancing method.
3. The AB test processing method based on cloud function of claim 1, wherein the obtaining the crowd grouping label by performing crowd division on the visiting information through the obtained cloud function platform server comprises:
acquiring cookie information and behavior track information in the visiting information;
carrying out random crowd division on the cookie information by using a random crowd strategy to obtain a first crowd result;
and extracting the crowd characteristics of the behavior track information, and identifying a second crowd result according to the extracted crowd characteristics.
4. The AB test processing method based on the cloud function of claim 1, wherein the applying an AB test distribution rule policy, performing function assembly by the cloud function platform server according to the visiting information and the crowd grouping label to obtain an AB test scheme, and storing the AB test scheme in the Nginx server includes:
acquiring a main function code corresponding to page information in the visiting information from the cloud function platform server;
acquiring a cloud function code matched with the crowd grouping label through the cloud function platform server by applying an AB test distribution rule strategy;
performing function assembly on the main function codes according to all the obtained cloud function codes to obtain the AB test scheme;
and associating the page information and the crowd grouping label with the AB test scheme and storing the page information and the crowd grouping label into the Nginx server.
5. The AB test processing method based on cloud functions of claim 4, wherein the obtaining the AB test scheme by performing function assembly on the main function code according to all the obtained cloud function codes includes:
positioning an insertion position matched with the code number in each cloud function code in the main function code;
inserting each insertion position into the cloud function code matched with the insertion position;
and determining the main function codes after all the cloud function codes are inserted into the AB test scheme.
6. The AB test processing method based on cloud function of claim 1, wherein the returning, by the Nginx server, the stored AB test scenario to the user's terminal corresponding to the visiting channel information, comprises:
distributing the AB test scheme to each edge server by using a content distribution network;
inquiring a nearby server matched with the visiting channel information from all the edge servers;
and sending the AB test scheme to the terminal of the user corresponding to the visiting channel information through the nearby server.
7. The AB test processing method based on the cloud function as claimed in claim 4, wherein after the stored AB test scheme is returned to the user's terminal corresponding to the visiting channel information by the Nginx server, the method comprises:
collecting the buried point data associated with the page information reported by the terminal of each user at regular time;
grouping index statistics is carried out on all the collected buried point data to obtain conversion rates corresponding to the grouping labels of all the groups;
adjusting an AB test distribution rule strategy in real time according to all the conversion rates;
and when the AB test distribution rule strategy is detected to meet the adjustment stopping condition, determining a release scheme for the AB test scheme corresponding to the crowd grouping label corresponding to the maximum conversion rate, and releasing the release scheme on line.
8. An AB test processing device based on a cloud function, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a test request of a user and acquiring visiting channel information and visiting information in the test request;
the analysis module is used for performing Nginx analysis on the visiting channel through a Nginx server to obtain a cloud function platform server matched with the visiting channel;
the dividing module is used for dividing the visiting information into crowds through the acquired cloud function platform server to obtain a crowd grouping label;
the assembling module is used for performing function assembling through the cloud function platform server according to the visiting information and the crowd grouping label by applying an AB test distribution rule strategy to obtain an AB test scheme and storing the AB test scheme in the Nginx server;
and the return module is used for returning the stored AB test scheme to the terminal of the user corresponding to the visiting channel information through the Nginx server.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the cloud function based AB test processing method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the cloud function-based AB test processing method according to any one of claims 1 to 7.
CN202110692987.8A 2021-06-22 2021-06-22 AB test processing method, device, equipment and storage medium based on cloud function Pending CN113254349A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110692987.8A CN113254349A (en) 2021-06-22 2021-06-22 AB test processing method, device, equipment and storage medium based on cloud function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110692987.8A CN113254349A (en) 2021-06-22 2021-06-22 AB test processing method, device, equipment and storage medium based on cloud function

Publications (1)

Publication Number Publication Date
CN113254349A true CN113254349A (en) 2021-08-13

Family

ID=77189185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110692987.8A Pending CN113254349A (en) 2021-06-22 2021-06-22 AB test processing method, device, equipment and storage medium based on cloud function

Country Status (1)

Country Link
CN (1) CN113254349A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965522A (en) * 2021-11-11 2022-01-21 湖南快乐阳光互动娱乐传媒有限公司 Behavior log grouping method, behavior log grouping device, behavior log storage medium and behavior log grouping equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402881A (en) * 2017-04-14 2017-11-28 阿里巴巴集团控股有限公司 The choosing method and device of a kind of project testing
CN108510311A (en) * 2018-02-28 2018-09-07 阿里巴巴集团控股有限公司 A kind of method, apparatus and electronic equipment of determining marketing program
CN110417886A (en) * 2019-07-29 2019-11-05 广州竞远安全技术股份有限公司 A kind of load-balancing method of integrated service, apparatus and system
CN111478967A (en) * 2020-04-08 2020-07-31 北京字节跳动网络技术有限公司 Request processing method and device
CN112052015A (en) * 2020-08-13 2020-12-08 苏州朗动网络科技有限公司 Version release method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107402881A (en) * 2017-04-14 2017-11-28 阿里巴巴集团控股有限公司 The choosing method and device of a kind of project testing
CN108510311A (en) * 2018-02-28 2018-09-07 阿里巴巴集团控股有限公司 A kind of method, apparatus and electronic equipment of determining marketing program
CN110417886A (en) * 2019-07-29 2019-11-05 广州竞远安全技术股份有限公司 A kind of load-balancing method of integrated service, apparatus and system
CN111478967A (en) * 2020-04-08 2020-07-31 北京字节跳动网络技术有限公司 Request processing method and device
CN112052015A (en) * 2020-08-13 2020-12-08 苏州朗动网络科技有限公司 Version release method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113965522A (en) * 2021-11-11 2022-01-21 湖南快乐阳光互动娱乐传媒有限公司 Behavior log grouping method, behavior log grouping device, behavior log storage medium and behavior log grouping equipment
CN113965522B (en) * 2021-11-11 2024-04-05 湖南快乐阳光互动娱乐传媒有限公司 Behavior log grouping method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN109558440B (en) Data batch processing method and device, computer equipment and storage medium
CN111143462B (en) Method, apparatus, computer device and storage medium for data export
CN112800095B (en) Data processing method, device, equipment and storage medium
US9378053B2 (en) Generating map task output with version information during map task execution and executing reduce tasks using the output including version information
CN108696399B (en) Business service test method and device
CN110688598B (en) Service parameter acquisition method and device, computer equipment and storage medium
US10324710B2 (en) Indicating a trait of a continuous delivery pipeline
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN108287894B (en) Data processing method, device, computing equipment and storage medium
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN108256718A (en) Declaration form service role distribution method, device, computer equipment and storage device
CN103152391A (en) Journal output method and device
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN110727526A (en) Big data computing task processing method and system
CN108154024B (en) Data retrieval method and device and electronic equipment
CN110750443A (en) Webpage testing method and device, computer equipment and storage medium
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN110084476B (en) Case adjustment method, device, computer equipment and storage medium
CN108629050B (en) Service data adjustment method, device, computer equipment and storage medium
CN113254349A (en) AB test processing method, device, equipment and storage medium based on cloud function
CN103684823A (en) Weblog recording method, network access path determining method and related devices
US11494392B2 (en) Tracking entity activity using computer generation of values for blockchain network entries
CN104599092A (en) Order business monitoring method and equipment
CN107784548B (en) Order processing method and device
CN110688400A (en) Data processing method, data processing device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination