A data processing method and device

By deploying and testing branch codes of functional logic under different test domain names, and merging optimal logic based on user access data, the problems of code complexity and maintenance difficulty in traditional solutions are solved, and simplified functional logic management and release are achieved.

CN112685046BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202011599649.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-29
Publication Date
2024-09-20
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

In traditional solutions, when maintaining code logic that is compatible with new and old functions on the front end, it increases the complexity and maintenance difficulty of the code, and requires compatibility with multiple sets of interactive logic at the same time.

Method used

By obtaining branch codes with different functional logic, deploy them under different test domain names, redirect user access requests, and collect access data to determine branch codes that meet predetermined conditions, merge them into the main code, and cancel the redirection operation.

Benefits of technology

It avoids code logic redundancy, simplifies code management, reduces maintenance difficulty, and enables convenient functional logic testing and release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112685046B
    Figure CN112685046B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, electronic device and storage medium. Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics under different test domain names respectively. Redirect different user access requests to the different test domain names, and collect access data under different test domain names respectively, compare the access data under the different test domain names and determine the access data that meets the predetermined conditions; merge the branch code corresponding to the access data that meets the predetermined conditions into the main code, and cancel the redirection operation of the user access request. This method deploys different branch codes in different environments to avoid compatibility of two code logics, which makes the entire set of code logic redundant and difficult to manage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet, and in particular to a data processing method and device. Background Art

[0002] During the iterative process of business development, after developing new functions, it is necessary to test the new functions. Generally, the new functions can be released in a phased manner so that some users can use the new functions, and the data of these users can be used to determine whether to release the new functions to all users.

[0003] Take page interaction logic as an example. In traditional solutions, after developing a new page interaction function, it is usually necessary to maintain code logic compatible with both new and old functions on the front end. For example, the new function is to directly enter the payment confirmation interface after clicking the buy button, while the old function is to first enter the product confirmation interface and then the payment confirmation interface after clicking the buy button. The front-end code of the traditional solution is compatible with both new and old functions. After receiving the information that the user clicks the buy button, some users directly enter the payment confirmation interface, while other users first enter the product confirmation interface. The front end has to maintain multiple sets of interaction logic, which increases the complexity of the code and the difficulty of maintenance. Summary of the invention

[0004] In view of the above technical problems, the present disclosure provides a data processing method, and the technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0006] Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics under different test domain names

[0007] Redirecting different user access requests to the different test domain names, collecting access data under the different test domain names respectively, comparing the access data under the different test domain names and determining access data that meets the predetermined conditions;

[0008] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

[0009] Optionally, the acquiring branch codes corresponding to different functional logics and deploying the branch codes corresponding to different functional logics in different test domain names respectively include:

[0010] Obtain a first branch code, where the first branch code is a new code corresponding to a new function logic;

[0011] Obtain a second branch code, where the second branch code is an old code corresponding to an old functional logic;

[0012] The first branch code is deployed under a first test domain name, and the second branch code is deployed under a second test domain name.

[0013] Optionally, redirecting different user access requests to the different test domain names includes:

[0014] Detecting an access request for a primary domain name, identifying a user object corresponding to the access request, and determining a test group to which the user object belongs;

[0015] According to the test group to which the user object belongs, the access request is redirected, and the domain name accessed by the access request is replaced with a test domain name corresponding to the test group.

[0016] Optionally, the identifying a user object corresponding to the access request to determine a test group to which the user object belongs includes:

[0017] For the user object corresponding to the access request, the account ID of the user object is obtained, the test group pre-assigned to the account ID is searched, and the test group to which the user object belongs is determined.

[0018] Optionally, the identifying a user object corresponding to the access request to determine a test group to which the user object belongs includes:

[0019] For the user object corresponding to the access request, the user features of the user object are extracted, the user features are matched based on a predetermined matching rule, and the test group to which the user object belongs is determined according to the matching result.

[0020] Optionally, merging the branch code corresponding to the access data meeting the predetermined condition into the main code includes:

[0021] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code corresponding to the original logic, wherein the main code is deployed under the main domain name.

[0022] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, the device comprising:

[0023] The code deployment module is configured to execute and obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively.

[0024] The traffic steering module is configured to redirect different user access requests to the different test domain names, collect access data under the different test domain names, compare the access data under the different test domain names, and determine the access data that meets the predetermined conditions;

[0025] The function determination module is configured to merge the branch code corresponding to the access data that meets the predetermined conditions into the main code and cancel the redirection operation of the user access request.

[0026] Optionally, the code deployment module is configured to execute:

[0027] Obtain a first branch code, where the first branch code is a new code corresponding to a new function logic;

[0028] Obtain a second branch code, where the second branch code is an old code corresponding to the old functional logic;

[0029] The first branch code is deployed under a first test domain name, and the second branch code is deployed under a second test domain name.

[0030] Optionally, the traffic steering module is configured to execute:

[0031] Detecting an access request for a primary domain name, identifying a user object corresponding to the access request, and determining a test group to which the user object belongs;

[0032] According to the test group to which the user object belongs, the access request is redirected, and the domain name accessed by the access request is replaced with a test domain name corresponding to the test group.

[0033] Optionally, the traffic steering module is configured to execute:

[0034] For the user object corresponding to the access request, the account ID of the user object is obtained, the test group pre-assigned to the account ID is searched, and the test group to which the user object belongs is determined.

[0035] Optionally, the traffic steering module is configured to execute:

[0036] For the user object corresponding to the access request, the user features of the user object are extracted, the user features are matched based on a predetermined matching rule, and the test group to which the user object belongs is determined according to the matching result.

[0037] Optionally, the function determination module is configured to execute:

[0038] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code corresponding to the original logic, wherein the main code is deployed under the main domain name.

[0039] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the method as described in the first aspect.

[0040] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method described in the first aspect.

[0041] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the data processing method as described in the first aspect is implemented.

[0042] The disclosed embodiments provide a data processing method, device, electronic device and storage medium. Obtain branch codes corresponding to different functional logics, deploy the branch codes corresponding to different functional logics under different test domain names respectively, redirect different user access requests to the different test domain names, collect access data under different test domain names respectively, compare the access data under the different test domain names and determine the access data that meets the predetermined conditions; merge the branch code corresponding to the access data that meets the predetermined conditions into the main code, and cancel the redirection operation of the user access request. This method deploys different branch codes in different environments to avoid compatibility of two code logics, which causes redundancy of the entire set of code logic and is difficult to manage.

[0043] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure.

[0044] In addition, any embodiment of the present disclosure does not need to achieve all of the above-mentioned effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present disclosure. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0046] Figure 1 is a flow chart of a data processing method shown in an exemplary embodiment of the present disclosure;

[0047] Figure 2 is a flow chart of a user publishing method shown in an exemplary embodiment of the present disclosure;

[0048] Figure 3is a flow chart of a redirection method shown in an exemplary embodiment of the present disclosure;

[0049] Figure 4 is another flow chart of a data processing method shown in an exemplary embodiment of the present disclosure;

[0050] Figure 5 is a schematic diagram of a data processing device shown in an exemplary embodiment of the present disclosure;

[0051] Figure 6 It is a schematic diagram of an electronic device shown in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0053] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0054] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0055] During the iterative process of business development, after developing new functions, it is necessary to test the new functions. Generally, the new functions can be released in a phased manner so that some users can use the new functions, and then the data of these users can be used to determine whether to release them to all users.

[0056] Take page interaction logic as an example. In traditional solutions, after developing a new page interaction function, it is usually necessary to maintain code logic compatible with both new and old functions on the front end. For example, the new function is to directly enter the payment confirmation interface after clicking the buy button, while the old function is to first enter the product confirmation interface and then the payment confirmation interface after clicking the buy button. The front-end code of the traditional solution is compatible with both new and old functions. After receiving the information that the user clicks the buy button, some users directly enter the payment confirmation interface, while other users first enter the product confirmation interface. The front end has to maintain multiple sets of interaction logic, which increases the complexity of the code and the difficulty of maintenance.

[0057] In order to solve the above problems, the present disclosure provides a data processing method and a device applying the data processing method. First, the data processing method is described in general. Figure 1 , a data processing method provided in an embodiment includes the following steps S101 to S104, and the method is applied to electronic devices such as servers and computer terminals.

[0058] In step S101, branch codes corresponding to different functional logics are obtained, and the branch codes corresponding to different functional logics are respectively deployed under different test domain names.

[0059] This embodiment can be applied to AB testing scenarios, which is a common method for grayscale release. Specifically, two (A / B) or multiple (A / B / n) versions are created for a Web or App interface or business, and visitor groups (target groups) are allowed to randomly access these versions in the same time period, and user behavior data and business data of each group are collected. Finally, the best version is analyzed and evaluated and officially adopted.

[0060] In this step, the branch codes corresponding to different functional logics are two (A / B) or more (A / B / n) versions made for the Web or App interface or business process. Figure 2 , which is a schematic diagram of AB testing. In this embodiment, the branch codes corresponding to different functional logics generated during the development process are obtained, wherein the branch codes corresponding to different functional logics refer to the codes containing new functional logic or old functional logic based on the original code. In one embodiment, the branch codes corresponding to different functional logics generated during the development process are usually the old codes corresponding to the old functional logic and the new codes corresponding to the new functional logic. It should be noted that the branch codes corresponding to the functional logic refer to the branch codes that implement the functional logic.

[0061] Figure 2 In the process, the accessed user objects are divided into two groups, namely, accessing the version A business corresponding to the old code and the version B business corresponding to the new code. Based on the access data, the scores of the two versions are obtained respectively, and then the final version to be used is determined.

[0062] For example: After developing a new page interaction function, it is usually necessary to maintain code logic that is compatible with the old and new functions on the front end. For example, the new function is to directly enter the payment confirmation interface after clicking the buy button, while the old function is to enter the product confirmation interface first and then the payment confirmation interface after clicking the buy button.

[0063] Assume that the original code for implementing the overall payment service is A+A1, where the code segment of the old functional logic is code segment A1, and after code segment A1 is modified, the code segment for implementing the new functional logic is code segment A2. Then, code segment A1 is modified to form two branch codes. The two branch codes are branch code A+A2 for implementing the new functional logic and branch code A+A1 for implementing the old functional logic.

[0064] Specifically, in this embodiment, a version control tool such as the Git tool can be used to implement the formation and merging of branch codes in the development process.

[0065] Among them, the branch codes corresponding to different functional logics are deployed respectively under different test domain names, that is, different branch codes are deployed in different environments, and user traffic can be directed to different environments later. In this way, there is no need for a set of online codes to be compatible with multiple functions, and there is no need for subsequent maintenance and deletion of codes, which is more convenient.

[0066] The branch codes corresponding to different functional logics are deployed in different test domain names respectively. Specifically, two sets of codes can be created for the new and old functions. In these two sets of codes, except for the new code corresponding to the new functional logic that implements the target function and the old code corresponding to the old functional logic, the other codes in the two sets of codes are the same. For example: a video application includes two functions, video playback and commenting. Among them, the video playback function is optimized. Then, for the video application before and after optimization, the code of the commenting function is the same, and the code of the video playback function is different: the video playback function before optimization corresponds to the old code, and the video playback function after optimization corresponds to the new code.

[0067] During specific deployment, the branch codes corresponding to different functional logics are deployed in different test domain names. For example, different branch codes can be deployed on different servers or on the same server, which is not limited in this embodiment.

[0068] In one embodiment, the step of deploying the branch codes on the corresponding test domain names may be: deploying the branch codes on a server and obtaining an accessible website with a domain name, wherein one or more websites may be deployed on the same server.

[0069] Step S101 may include but is not limited to the following methods:

[0070] (1-1) Obtaining a first branch code, where the first branch code is a new code corresponding to a new functional logic;

[0071] (1-2) Obtaining a second branch code, where the second branch code is an old code corresponding to the old functional logic;

[0072] (1-3) Deploy the first branch code under a first test domain name, and deploy the second branch code under a second test domain name.

[0073] In one embodiment of the present disclosure, different branch codes can be divided into a branch code and b branch code, and the a and b branch codes are deployed to the a.xxx.com and b.xxx.com domain names respectively.

[0074] In step S102, different user access requests are redirected to the different test domain names, and access data under the different test domain names are collected respectively, and the access data under the different test domain names are compared to determine the access data that meets the predetermined conditions.

[0075] This step redirects different user access requests to the different test domain names, and collects access data under different test domain names to determine the functional logic that is finally adopted. In an example, this step imports user traffic to the environment where the new functional logic is located and the environment where the old functional logic is located, so as to use these user traffic to test which function achieves a more ideal effect.

[0076] For example: the logic of the new function is to directly enter the payment confirmation interface after clicking the purchase button. The logic of the old function is to enter the product confirmation interface first, and then enter the payment confirmation interface after clicking the purchase button. Import user traffic to the environment where the new function logic is located and the environment where the old function logic is located. After a period of time, the scores of the new and old functions are calculated based on the predetermined evaluation method, such as: calculating the final payment rate in the two environments, the higher the final payment rate, the higher the function score; calculating the cancellation rate after payment in the two environments, the lower the cancellation rate, the higher the function score... and so on. In the end, the function logic with the higher score can be used.

[0077] Step S102 may include but is not limited to the following (2-1) and (2-2).

[0078] (2-1) An access request for a primary domain name is detected, and a user object corresponding to the access request is identified to determine a test group to which the user object belongs.

[0079] (2-2) Redirecting the access request according to the test group to which the user object belongs, and replacing the domain name accessed by the access request with a test domain name corresponding to the test group.

[0080] In one embodiment, the access request includes the account ID of the user object, and by identifying the test group to which the account ID of the user object belongs, the test domain name corresponding to the test group is determined, and the access request is redirected to the test domain name corresponding to the test group.

[0081] For the specific implementation process of the above steps (2-1) to (2-2), please refer to Figure 3 The embodiment shown.

[0082] In step S103, the branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

[0083] The predetermined conditions involved in step S103 are conditions set for evaluating whether each functional logic meets the expected expectations.

[0084] In one example, for a new function or an old function, the predetermined condition is that the daily visits within a week are greater than the daily visit threshold. If it is determined that the daily visits to the old function within a week are greater than the daily visit threshold, the branch code corresponding to the logic of the old function will be merged into the main code. For another example: the new function changes the jump method of the payment page, hoping to make the user object's payment faster and the payment success rate higher, but the change in the jump method may also increase the user's erroneous payment operations. Based on this, the "payment time", "payment success rate" and "erroneous payment rate" involved in the user object access process can be comprehensively set to obtain the predetermined conditions.

[0085] In one embodiment, the test domain deploys the branch code, and the access data is the data generated by accessing the test domain, so it can be considered that the access data and the branch code have a corresponding relationship. For example, the test domain 1 deploys the branch code 1, and the access data 1 is the data generated by accessing the test domain 1, then the branch code corresponding to the access data 1 is considered to be branch code 1.

[0086] In one embodiment of the present disclosure, the branch code corresponding to the functional logic finally adopted is merged into the main code corresponding to the original logic, and the main code is deployed under the main domain name.

[0087] After determining the functional logic that is finally adopted, delete the code corresponding to the functional logic that is not adopted, and merge the code corresponding to the functional logic that is finally adopted into the main code. The method provided in this embodiment deploys different branch codes in different environments to avoid related technologies being compatible with two code logics in the same environment, causing the entire set of code logic to be redundant and difficult to manage.

[0088] Figure 3 is a flowchart of another data processing method according to an exemplary embodiment. The data processing method can be used in a server and is established on Figure 1 Based on the method shown, Figure 3 As shown, step S102 may include the following steps S301-S302.

[0089] In step S301, an access request for a primary domain name is detected, and a user object corresponding to the access request is identified to determine a test group to which the user object belongs.

[0090] In one embodiment of the present disclosure, identifying the user object corresponding to the access request to determine the test group to which the user object belongs may specifically include: for the user object corresponding to the access request, obtaining the account ID of the user object, and searching for the test group pre-assigned to the account ID, that is, the test group to which the user object belongs.

[0091] For example, after detecting an access request for the primary domain name, it is identified that the account ID of the user object corresponding to the access request is 002. Account IDs 001-0010 are all pre-assigned to test group A, so it can be determined that the user object corresponding to the access request belongs to test group A.

[0092] In another embodiment of the present disclosure, identifying the user object corresponding to the access request to determine the test group to which the user object belongs may also include: extracting user features of the user object corresponding to the access request, matching the user features based on predetermined matching rules, and determining the test group to which the user object belongs based on the matching results.

[0093] For example, after detecting an access request for the primary domain name, it is identified that the age feature of the user object corresponding to the access request is 22 years old. In the predetermined matching rule, the age feature of 20-30 years old will be assigned to test group B, so it can be determined that the user object corresponding to the access request belongs to test group B.

[0094] In step S302, the access request is redirected according to the test group to which the user object belongs, and the domain name accessed by the access request is replaced with a test domain name corresponding to the test group.

[0095] In this embodiment, after receiving an access request for the primary domain name, the server redirects the access request so that the access request points to the test domain name corresponding to the test group where the user object is located, thereby importing user traffic into the environment where the new function logic and the old function logic are located, and evaluating the new function logic and the old function logic based on various data generated by the user traffic.

[0096] During the iterative process of business development, after a new function is developed, the logic of the new function (hereinafter referred to as the new function logic) needs to be tested. Generally, the grayscale release can be used to make some user objects use the new function logic when accessing the business, and the other user objects use the old function logic when accessing the business. Determine whether to publish the new function logic to all user objects based on the access data of these two parts of user objects. This embodiment uses a pre-set test group to make some user objects use the new function logic when accessing the business, and the other user objects use the old function logic when accessing the business. Compared with the traditional method, there is no need to write a complete set of code that is compatible with both the new function logic and the old function logic, and the implementation process is more convenient.

[0097] See also Figure 4 , which is a schematic diagram of the overall flow of the data processing solution of the disclosed embodiment. The A branch code corresponding to the business logic A (A solution) and the B branch code corresponding to the business logic B (B solution) are respectively deployed to different test domain names. When the user object accesses the main domain name, the access request of the user object is redirected according to the test group to which the user object belongs. After the redirection, each user object can be controlled to access the test domain name based on the test group to which it belongs, thereby realizing grayscale release.

[0098] In some embodiments, a user object may be a collection of information that identifies a user, such as a user account.

[0099] It should be noted that the access request of the user object may not be redirected. For example, if the user object J belongs to neither group A nor group B, the access request of the user object J will not be redirected, and the user object J will still access the primary domain name xxx.com.

[0100] After each user object visits the test domain name A.xxx.con and B.xxx.com, access data can be obtained. Based on the access data over a period of time, the test results of the branch code corresponding to different test domain names can be obtained. For example, the jump method of the payment page is changed. The test shows that after the change, the user object's payment is faster and the payment success rate is higher than before the change. The changed solution can be used. According to the test results, the branch code corresponding to the new function logic (changed solution) can be merged into the main code, and the redirection can be stopped so that all user objects can directly access the main domain name. After that, all user objects will use the same function solution.

[0101] Take page interaction logic as an example. In traditional solutions, after developing a new page interaction function, it is usually necessary to maintain code logic compatible with both new and old functions on the front end. For example, the logic of the new function is to directly enter the payment confirmation interface after clicking the buy button, while the logic of the old function is to first enter the product confirmation interface and then the payment confirmation interface after clicking the buy button. The front-end code of the traditional solution is compatible with both new and old functions. After receiving the information that the user object clicks the buy button, some user objects directly enter the payment confirmation interface, while other user objects first enter the product confirmation interface. The front end has to maintain multiple sets of interaction logic, which increases the complexity of the code and the difficulty of maintenance.

[0102] Traditional solutions are compatible with different functional logics in the same set of code, and the code is complex and difficult to maintain. The data processing method provided by the disclosed embodiment deploys branch codes corresponding to different functional logics in different environments (test domain names), and imports user traffic to different environments by redirecting user access requests. The access data generated by the imported user traffic is used to obtain the test results of different functional logics. This solution deploys different branch codes in different environments, and can achieve one set of code containing one functional logic, avoiding the code logic redundancy caused by traditional solutions and making it difficult to manage.

[0103] Corresponding to the above method embodiment, the present disclosure also provides a data processing device, see Figure 5 As shown, the device may include:

[0104] The code deployment module 510 is configured to execute acquisition of branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively;

[0105] The traffic steering module 520 is configured to redirect different user access requests to the different test domain names, collect access data under the different test domain names, compare the access data under the different test domain names, and determine the access data that meets the predetermined conditions;

[0106] The function determination module 530 is configured to merge the branch code corresponding to the access data that meets the predetermined condition into the main code, and cancel the redirection operation of the user access request.

[0107] Optionally, the code deployment module is configured to execute:

[0108] Obtain a first branch code, where the first branch code is a new code corresponding to a new function logic;

[0109] Obtain a second branch code, where the second branch code is an old code corresponding to an old functional logic;

[0110] The first branch code is deployed under a first test domain name, and the second branch code is deployed under a second test domain name.

[0111] Optionally, the traffic steering module is configured to execute:

[0112] An access request for a primary domain name is detected, and a user object corresponding to the access request is identified to determine a test group to which the user object belongs;

[0113] According to the test group to which the user object belongs, the access request is redirected, and the domain name accessed by the access request is replaced with a test domain name corresponding to the test group.

[0114] Optionally, the traffic steering module is configured to execute:

[0115] For the user object corresponding to the access request, the account ID of the user object is obtained, the test group pre-assigned to the account ID is searched, and the test group to which the user object belongs is determined.

[0116] Optionally, the traffic steering module is configured to execute:

[0117] For the user object corresponding to the access request, the user features of the user object are extracted, the user features are matched based on a predetermined matching rule, and the test group to which the user object belongs is determined according to the matching result.

[0118] Optionally, the function determination module is configured to execute:

[0119] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code corresponding to the original logic, wherein the main code is deployed under the main domain name.

[0120] The present disclosure also provides an electronic device, which at least includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the aforementioned data processing method when executing the program, and the method includes:

[0121] Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics under different test domain names

[0122] Redirecting different user access requests to the different test domain names, collecting access data under the different test domain names respectively, comparing the access data under the different test domain names and determining access data that meets the predetermined conditions;

[0123] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

[0124] Figure 6 A schematic structural diagram of an electronic device based on a master device side according to an exemplary embodiment of the present disclosure is shown. Figure 6 At the hardware level, the electronic device includes a processor 602, an internal bus 604, a network interface 606, a memory 605, and a non-volatile memory 610, and may also include hardware required for other services. The processor 602 reads the corresponding computer program from the non-volatile memory 610 into the memory 605 and then runs it, forming a device for executing the data processing method at the logical level. Of course, in addition to the software implementation, the present disclosure does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0125] The present disclosure also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any of the aforementioned data processing methods is implemented. In one embodiment, the method includes:

[0126] Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively;

[0127] Redirecting different user access requests to the different test domain names, collecting access data under the different test domain names respectively, comparing the access data under the different test domain names and determining access data that meets the predetermined conditions;

[0128] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

[0129] The present disclosure also provides a computer program product, including a computer program. When the computer program is executed by a processor, any of the aforementioned data processing methods is implemented. In one embodiment, the method includes:

[0130] Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively;

[0131] Redirecting different user access requests to the different test domain names, collecting access data under the different test domain names respectively, comparing the access data under the different test domain names and determining access data that meets the predetermined conditions;

[0132] The branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

[0133] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic storage devices such as magnetic tape storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0134] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0135] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0136] The above is only a specific implementation of the embodiment of the present disclosure. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the embodiment of the present disclosure. These improvements and modifications should also be regarded as the protection scope of the embodiment of the present disclosure.

Claims

1. A data processing method, characterized in that: The method comprises: Obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively; Redirecting different user access requests to the different test domain names, collecting access data under the different test domain names respectively, comparing the access data under the different test domain names and determining access data that meets the predetermined conditions; The redirecting of different user access requests to the different test domain names includes: detecting an access request for a primary domain name, identifying a user object corresponding to the access request, and determining a test group to which the user object belongs; redirecting the access request according to the test group to which the user object belongs, and replacing the domain name accessed by the access request with a test domain name corresponding to the test group; The branch code corresponding to the access data meeting the predetermined condition is merged into the main code, and the redirection operation of the user access request is cancelled.

2. The method according to claim 1, characterized in that The obtaining of branch codes corresponding to different functional logics and deploying the branch codes corresponding to different functional logics in different test domain names respectively include: Obtain a first branch code, where the first branch code is a new code corresponding to a new function logic; Obtain a second branch code, where the second branch code is an old code corresponding to the old functional logic; The first branch code is deployed under a first test domain name, and the second branch code is deployed under a second test domain name.

3. The method according to claim 1, characterized in that The identifying the user object corresponding to the access request to determine the test group to which the user object belongs includes: For the user object corresponding to the access request, the account ID of the user object is obtained, the test group pre-assigned to the account ID is searched, and the test group to which the user object belongs is determined.

4. The method according to claim 1, characterized in that The identifying the user object corresponding to the access request to determine the test group to which the user object belongs includes: For the user object corresponding to the access request, the user features of the user object are extracted, the user features are matched based on a predetermined matching rule, and the test group to which the user object belongs is determined according to the matching result.

5. The method according to claim 1, characterized in that The step of merging the branch code corresponding to the access data meeting the predetermined condition into the main code includes: The branch code corresponding to the access data meeting the predetermined condition is merged into the main code corresponding to the original logic, wherein the main code is deployed under the main domain name.

6. A data processing device, characterized in that: The device comprises: A code deployment module is configured to execute and obtain branch codes corresponding to different functional logics, and deploy the branch codes corresponding to different functional logics in different test domain names respectively; The traffic steering module is configured to redirect different user access requests to the different test domain names, collect access data under the different test domain names, compare the access data under the different test domain names, and determine the access data that meets the predetermined conditions; The traffic steering module is configured to execute: detecting an access request for a primary domain name, identifying a user object corresponding to the access request to determine a test group to which the user object belongs; redirecting the access request according to the test group to which the user object belongs, and replacing the domain name accessed by the access request with a test domain name corresponding to the test group; The function determination module is configured to merge the branch code corresponding to the access data that meets the predetermined conditions into the main code and cancel the redirection operation of the user access request.

7. The device according to claim 6, characterized in that The code deployment module is configured to execute: Obtain a first branch code, where the first branch code is a new code corresponding to a new function logic; Obtain a second branch code, where the second branch code is an old code corresponding to the old functional logic; The first branch code is deployed under a first test domain name, and the second branch code is deployed under a second test domain name.

8. The device according to claim 6, characterized in that The traffic steering module is configured to execute: For the user object corresponding to the access request, the account ID of the user object is obtained, the test group pre-assigned to the account ID is searched, and the test group to which the user object belongs is determined.

9. The device according to claim 6, characterized in that The traffic steering module is configured to execute: For the user object corresponding to the access request, the user features of the user object are extracted, the user features are matched based on a predetermined matching rule, and the test group to which the user object belongs is determined according to the matching result.

10. The device according to claim 6, characterized in that The function determination module is configured to execute: The branch code corresponding to the access data meeting the predetermined condition is merged into the main code corresponding to the original logic, wherein the main code is deployed under the main domain name.

11. An electronic device, characterized in that: include: processor; A memory for storing the processor executable instructions; wherein the processor is configured to execute the instructions to implement the method according to any one of claims 1 to 5.

12. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 5.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for realizing communication compatibility between new version and old version

    CN103326889A

  • Software upgrading compatibility management method, device and equipment and storage medium

    CN109787789A

  • Application control method and device and electronic equipment

    CN111596928A

  • Online verification system and method for front-end codes

    CN111625222A