CN116126717A - Parameter acquisition method, system, equipment and storage medium - Google Patents

Parameter acquisition method, system, equipment and storage medium Download PDF

Info

Publication number
CN116126717A
CN116126717A CN202310110409.8A CN202310110409A CN116126717A CN 116126717 A CN116126717 A CN 116126717A CN 202310110409 A CN202310110409 A CN 202310110409A CN 116126717 A CN116126717 A CN 116126717A
Authority
CN
China
Prior art keywords
target
parameter
module
intermediate processing
preset
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
CN202310110409.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.)
Hangzhou Netease Cloud Music Technology Co Ltd
Original Assignee
Hangzhou Netease Cloud Music Technology Co 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 Hangzhou Netease Cloud Music Technology Co Ltd filed Critical Hangzhou Netease Cloud Music Technology Co Ltd
Priority to CN202310110409.8A priority Critical patent/CN116126717A/en
Publication of CN116126717A publication Critical patent/CN116126717A/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/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/3664Environments for testing or debugging software

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)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a parameter acquisition method, a system, equipment and a storage medium, comprising the following steps: the service module sends parameter request information to the intermediate processing module; wherein the parameter request information includes target parameter information and request context information; the intermediate processing module sends the parameter request information to a testing module, receives a first feedback result determined by the testing module according to the parameter request information, and determines a second feedback result fed back to the service module according to the first feedback result. According to the technical scheme, the intermediate processing module is configured between the service module and the AB test module, the three modules send request information mutually, service developers only need to develop the service process, the AB test personnel only need to perform experimental configuration on the AB test module, decoupling between the service module and the AB test module is achieved, testing cost is reduced, and stability of the service module is improved.

Description

Parameter acquisition method, system, equipment and storage medium
Technical Field
The application belongs to the technical field of internet, and particularly relates to a parameter acquisition method, a system, equipment and a storage medium.
Background
Currently, a developer needs to perceive that an AB test (packet test or barrel test) is performed, and determines a position for adding AB test logic in a service code according to the content of the AB test, and then in the implementation process of the corresponding service code logic, a request is initiated to an AB test service through a software development kit (Software Development Kit, SDK) provided by an AB test platform, values of the barrel in which a user is positioned in the AB test and corresponding relevant parameters under the barrel are obtained, and further, the subsequent service processing logic is controlled according to the information.
However, the access of the AB test is strongly dependent on the development of corresponding experimental logic by a developer, so that a longer development time is required from the test requirement to the test on-line, and the period of the AB test is increased; in addition, the logic of the AB test and the service logic are coupled together, and the service logic is considered in addition to the service logic for the brand new service requirement access experiment, so that the access of the test to the online service is also required, the online code is modified, the development and maintenance cost of the service logic is increased, and the stability of the service system is affected.
Disclosure of Invention
The present application aims to solve, at least to some extent, one of the technical problems in the related art. To this end, an object of the present application is to propose a parameter acquisition method, a system, a device and a storage medium.
In order to solve the technical problems, embodiments of the present application provide the following technical solutions:
a parameter acquisition method comprising:
the service module sends parameter request information to the intermediate processing module; wherein the parameter request information includes target parameter information and request context information;
the intermediate processing module sends the parameter request information to a testing module, receives a first feedback result determined by the testing module according to the parameter request information, and determines a second feedback result fed back to the service module according to the first feedback result.
Optionally, the intermediate processing module sends the parameter request information to the test module, including:
the intermediate processing module determines target parameters based on the parameter request information and searches a plurality of first preset parameters based on the target parameters; the intermediate processing module comprises a plurality of first preset parameters, and each first preset parameter is provided with a first preset value in a matching mode;
When the intermediate processing module finds the target parameter, the parameter request information is sent to the testing module; or (b)
When the intermediate processing module does not find the target parameter, feeding back a second null value to the service module; wherein the second feedback result includes a second target value or the second null value of the target parameter.
Optionally, the test module determines a first feedback result according to the parameter request information, including;
the test module determines the target parameters based on the parameter request information and searches based on the target parameters;
when the test module finds the target parameter, determining a first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; or (b)
When the test module does not find the target parameter, feeding back a first null value to the intermediate processing module; wherein the first feedback result includes the first target value or a first null value of the target parameter.
Optionally, when the test module finds the target parameter, determining the first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module, including:
The test module searches a plurality of preset experiments based on the target parameters after determining the target parameters; the test module comprises a plurality of preset experiments;
when the test module finds a target experiment matched with the target parameter, acquiring an identification of the target experiment, determining the first target value of the target parameter based on the identification of the target experiment and the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; wherein the request context information comprises a user identifier and a distribution identifier; or (b)
And when the test module does not find a target experiment matched with the target parameter, feeding back the first null value to the intermediate processing module.
Optionally, when the test module finds a target experiment matched with the target parameter, the test module obtains an identifier of the target experiment, determines the first target value of the target parameter based on the identifier of the target experiment and the request context information, and feeds back the first target value of the target parameter to the intermediate processing module, where the method includes:
After the test module finds out the target experiment matched with the target parameter, the user identification is obtained, and whether the user can enter the target experiment is judged;
when the test module determines that the user can enter the target experiment, acquiring the shunt identifier, and determining the first target value of the target parameter based on the shunt identifier; or (b)
And when the test module determines that the user can not enter the target experiment, feeding back a first null value to the intermediate processing module.
Optionally, the method further comprises;
after receiving the first null value, the intermediate processing module carries out assignment on the target parameter based on a second preset value matched with the target parameter, obtains the second target value of the target parameter, and feeds back the second target value of the target parameter to the service module;
the intermediate processing module comprises a plurality of second preset parameters, and each second preset parameter is matched with a second preset value.
Embodiments of the present application also provide a parameter acquisition system for performing the method as described above, including:
The system comprises a service module, an intermediate processing module and a test module which are sequentially connected in a communication way;
the business module is used for sending parameter request information to the intermediate processing module; wherein the parameter request information includes target parameter information and request context information;
the intermediate processing module is used for sending the parameter request information to the testing module, receiving a first feedback result determined by the testing module according to the parameter request information, and determining a second feedback result fed back to the service module according to the first feedback result.
Optionally, the intermediate processing module includes a first determination sub-module; the first determining submodule comprises a plurality of first preset parameters, and each first preset parameter is provided with a first preset value in a matching mode;
the first determining submodule is used for determining a target parameter based on the parameter request information and searching a plurality of first preset parameters based on the target parameter;
when the first determination submodule finds the target parameter, the parameter request information is sent to the test module; or (b)
When the first determining submodule does not find the target parameter, feeding back a second null value to the service module; wherein the second feedback result includes a second target value or the second null value of the target parameter.
Optionally, the test module includes a second determination sub-module;
the second determining submodule is used for determining the target parameter based on the parameter request information and searching based on the target parameter;
when the second determining submodule finds the target parameter, determining a first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; or (b)
When the second determining submodule does not find the target parameter, feeding back a first null value to the intermediate processing module; wherein the first feedback result includes the first target value or a first null value of the target parameter.
Optionally, the test module further comprises an experiment sub-module; the experiment submodule comprises a plurality of preset experiments;
the experiment sub-module is used for searching a plurality of preset experiments based on the target parameters after the test module determines the target parameters;
when the experiment submodule finds out a target experiment matched with the target parameter, acquiring an identification of the target experiment, determining the first target value of the target parameter based on the identification of the target experiment and the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; wherein the request context information comprises a user identifier and a distribution identifier; or (b)
And when the experiment sub-module does not find a target experiment matched with the target parameter, feeding back the first null value to the intermediate processing module.
Optionally, the test module further includes a first assignment sub-module;
the first assignment sub-module is used for acquiring a user identifier after the test module finds a target experiment matched with the target parameter, and judging whether a user can enter the target experiment or not;
when the first assignment sub-module determines that the user can enter the target experiment, acquiring the shunt identifier, and determining the first target value of the target parameter based on the shunt identifier; or (b)
And when the first assignment sub-module determines that the user cannot enter the target experiment, feeding back a first null value to the intermediate processing module.
Optionally, the intermediate processing module further includes a second assignment sub-module; the second assignment sub-module comprises a plurality of second preset parameters, and each second preset parameter is matched with a second preset value;
the second assignment sub-module is configured to assign, after the intermediate processing module receives the first null value, the target parameter based on the second preset value matched with the target parameter, obtain the second target value of the target parameter, and feed back the second target value of the target parameter to the service module.
Embodiments of the present application also provide an electronic device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method as described above when executing the computer program.
Embodiments of the present application also provide a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where the computer program when executed controls a device in which the computer readable storage medium is located to perform a method as described above.
The embodiment of the application has the following technical effects:
according to the technical scheme, the intermediate processing module is configured between the service module and the AB test module, the request information is mutually sent between the three modules, service developers only need to develop the service process, do not need to pay attention to whether AB tests exist, and only need to perform experimental configuration on the AB test module, so that decoupling between the service module and the AB test module is achieved, the test cost is reduced, and the stability of the service module is improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
Fig. 1 is a schematic structural diagram of a parameter acquisition system according to an embodiment of the present application;
FIG. 2 is an example of a parameter acquisition system provided by an embodiment of the present application;
fig. 3 is a schematic flow chart of a parameter obtaining method according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a first example of a parameter obtaining method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of a second example of a parameter obtaining method according to an embodiment of the present application;
fig. 6 is a schematic flow chart of a third example of a parameter obtaining method according to an embodiment of the present application;
fig. 7 is a schematic flow chart of a fourth example of a parameter obtaining method according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present application and are not to be construed as limiting the present application.
As shown in fig. 1, an embodiment of the present application further provides a parameter acquisition system 10, including:
The system comprises a service module 11, an intermediate processing module 12 and a test module 13 which are sequentially connected in a communication way;
the service module 11 is configured to send parameter request information to the intermediate processing module 12; wherein the parameter request information includes target parameter information and request context information;
the intermediate processing module 12 is configured to send the parameter request information to the testing module 13, receive a first feedback result determined by the testing module 13 according to the parameter request information, and determine a second feedback result fed back to the service module 11 according to the first feedback result.
The test module 13 in the present application may be an AB test module;
in the embodiment of the application, the intermediate processing module 12 is configured between the AB testing module and the service module 11, so that a process-oriented AB testing development architecture can be obtained.
In an alternative embodiment of the present application, the intermediate processing module 12 includes a first determination sub-module; the first determining submodule comprises a plurality of first preset parameters, and each first preset parameter is provided with a first preset value in a matching mode;
the first determining submodule is used for determining a target parameter based on the parameter request information and searching a plurality of first preset parameters based on the target parameter;
When the first determination submodule finds the target parameter, the parameter request information is sent to the test module 13; or (b)
When the first determining submodule does not find the target parameter, feeding back a second null value to the service module 11; wherein the second feedback result includes a second target value of the target parameter or the second NULL value (NULL).
As shown in fig. 2, in an alternative embodiment of the present application, each first preset parameter may be any one of k, c, len, wide and size, and in fig. 2, each first preset parameter is set to a first preset value respectively;
for example: k=v, c=http: the first preset value corresponding to the first preset parameter k is v; the first preset value corresponding to the first preset parameter c is http: a// p; a first preset value corresponding to the first preset parameter len is 1; a first preset value corresponding to the first preset parameter wide is 1; the first preset value corresponding to the first preset parameter size is 1.
As shown in fig. 2, in an alternative embodiment of the present application, after receiving parameter request information, the first determining submodule parses the parameter request information to obtain a target parameter k (the parameter request information includes the target parameter k requested by the service module 11), searches a plurality of first preset parameters stored in the first determining submodule based on the target parameter k, and when the first determining submodule searches the target parameter k in the plurality of first preset parameters, the first determining submodule sends the parameter request information to the AB testing module in a transparent transmission manner; on the contrary, if the parameter request information includes the target parameter m requested by the service module 11, searching the first preset parameters stored in the first determining sub-module based on the target parameter m, the first determining sub-module cannot find the target parameter m in the first preset parameters, and feeds back the second null value to the service module 11, and the request processing of the service module 11 is finished.
In an alternative embodiment of the present application, the test module 13 includes a second determination sub-module;
the second determining submodule is used for determining the target parameter based on the parameter request information and searching based on the target parameter;
when the second determining submodule finds the target parameter, determining a first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module 12; or (b)
When the second determining sub-module does not find the target parameter, feeding back a first null value to the intermediate processing module 12; wherein the first feedback result includes the first target value or a first NULL value (NULL) of the target parameter.
In an optional embodiment of the present application, the second determining sub-module of the AB testing module may preset at least one preset experiment, each preset experiment corresponds to at least one sub-bucket, each sub-bucket corresponds to at least one third preset parameter, and each third preset parameter corresponds to and is matched with a third preset value.
Specifically, after the second determining sub-module of the AB testing module receives the parameter request information sent by the intermediate processing module 12, the parameter request information is parsed to obtain a target parameter k, and a plurality of stored third preset parameters are searched based on the target parameter k, and after the target parameter k is found in the plurality of third preset parameters, a third preset value v (i.e., a first target value) corresponding to the target parameter k is obtained, and the target parameter k and the first target value corresponding to the target parameter k are fed back to the intermediate processing module 12;
Otherwise, if the second determining sub-module does not find the target parameter k in the third preset parameters, the first null value is fed back to the intermediate processing module 12.
In an alternative embodiment of the present application, the test module 13 further includes an experiment sub-module; the experiment submodule comprises a plurality of preset experiments;
the experiment sub-module is configured to search for a plurality of preset experiments based on the target parameters after the test module 13 determines the target parameters;
when the experiment submodule finds a target experiment matched with the target parameter, acquiring an identifier of the target experiment, determining the first target value of the target parameter based on the identifier of the target experiment and the request context information, and feeding back the first target value of the target parameter to the intermediate processing module 12; wherein the request context information comprises a user identifier and a distribution identifier; or (b)
And when the experiment sub-module does not find the target experiment matched with the target parameter, feeding back the first null value to the intermediate processing module 12.
Specifically, the request context information includes trace_id for link tracking, user_id for initiating the request, and count_id for shunting in the AB test scenario, where the request context information may be configured when a user initiates the parameter request information, or may automatically obtain related information when the service module 11 receives the parameter request, and complete configuration of the request context information based on the related information, and complete transmission of the request context information between modules in a subsequent transparent transmission based manner.
As shown in fig. 2, the AB test may be performed with respect to one third preset parameter (for example, the first preset experiment includes one third preset parameter k), or the AB test may be performed with respect to a plurality of third preset parameters (for example, the third preset experiment includes two third preset parameters len and wide), and one third preset parameter may appear in a plurality of AB tests (for example, the third preset parameter k appears in the first preset experiment, the second preset experiment, and the fourth preset experiment at the same time).
As shown in fig. 2, an alternative embodiment of the present application, for example: the preset experiment may include: exp_id1;
wherein exp_id1 may be the identifier of the first preset experiment; the sub-buckets corresponding to exp_id1 can comprise c and t1, wherein the reference bucket is c, and the experimental bucket is t1;
the third preset parameter corresponding to the sub-bucket c in exp_id1 comprises k; the third preset parameter corresponding to the sub-bucket t1 in exp_id1 comprises k; in a third preset parameter corresponding to the sub-bucket c in exp_id1, a third preset value corresponding to k is v; in a third preset parameter corresponding to the sub-bucket t1 in exp_id1, a third preset value corresponding to k is v1.
As shown in fig. 2, an alternative embodiment of the present application, for example: exp_id2;
Wherein exp_id2 may be the identifier of the second preset experiment; the sub-buckets corresponding to exp_id2 can comprise c and t1, wherein the reference bucket is c, and the experimental bucket is t1;
the third preset parameters corresponding to the sub-bucket c in exp_id2 comprise len and wide; the third preset parameters corresponding to the sub-bucket t1 in the exp_id2 comprise len and wide; the third preset parameters corresponding to the sub-bucket t2 in the exp_id2 comprise len and wide; among the third preset parameters corresponding to the sub-bucket c in exp_id2, the third preset value corresponding to len is 1, and the third preset value corresponding to wide is 1; among the third preset parameters corresponding to the sub-bucket t1 in exp_id2, the third preset value corresponding to len is 1, and the third preset value corresponding to wide is 1.
As shown in fig. 2, an alternative embodiment of the present application, for example: exp_id3;
wherein exp_id3 may be the identifier of the third preset experiment; the sub-buckets corresponding to exp_id3 may include c, t1 and t2, wherein the reference bucket is c, and the experimental bucket is t1 and t2;
the third preset parameters corresponding to the sub-bucket c in exp_id3 comprise len and wide; the third preset parameters corresponding to the sub-bucket t1 in exp_id3 comprise len and wide; the third preset parameters corresponding to the sub-bucket t2 in exp_id3 comprise len and wide; among the third preset parameters corresponding to the sub-bucket c in exp_id3, the third preset value corresponding to len is 1, and the third preset value corresponding to wide is 1; among the third preset parameters corresponding to the sub-bucket t1 in exp_id3, the third preset value corresponding to len is 2, and the third preset value corresponding to wide is 3; among the third preset parameters corresponding to the sub-bucket t2 in exp_id3, the third preset value corresponding to len is 4, and the third preset value corresponding to wide is 2.
As shown in fig. 2, an alternative embodiment of the present application, for example: exp_id4;
wherein exp_id4 is the identification of another preset experiment; the sub-buckets corresponding to exp_id4 can comprise c and t1, wherein the reference bucket is c, and the experimental bucket is t1;
the third preset parameter corresponding to the sub-bucket c in exp_id4 comprises len and k; the third preset parameters corresponding to the sub-bucket t1 in exp_id4 comprise len and k; in a third preset parameter corresponding to the sub-bucket c in exp_id4, a third preset value corresponding to len is 1, and a third preset value corresponding to k is v11; among the third preset parameters corresponding to the sub-bucket t1 in exp_id4, the third preset value corresponding to len is 2, and the third preset value corresponding to k is v112.
As shown in fig. 2, in an alternative embodiment of the present application, after obtaining the target parameter k, the experiment submodule may determine that the experiment submodule presets a preset experiment including the target parameter k, that is, determines the target experiment based on the target parameter k, and obtains an identifier corresponding to the target experiment (for example, exp_id1, that is, determines the preset experiment as the target experiment based on the target parameter k).
In an alternative embodiment of the present application, the test module 13 further includes a first assignment sub-module;
The first assignment sub-module is configured to obtain a user identifier after the test module 13 finds a target experiment matched with the target parameter, and determine whether a user can enter the target experiment;
when the first assignment sub-module determines that the user can enter the target experiment, acquiring the shunt identifier, and determining the first target value of the target parameter based on the shunt identifier; or (b)
And when the first assignment sub-module determines that the user cannot enter the target experiment, feeding back a first null value to the intermediate processing module 12.
As shown in fig. 2, in an alternative embodiment of the present application, after determining a target experiment by using an AB test module, information such as a user identifier user_id, a shunt identifier shunt_id, and trace_id for link tracking is obtained according to request context information, and whether a user enters the experiment is determined based on the user identifier user_id and a rule of a population to be put configured by using the AB test (the rule of the population to be put can be set according to actual needs, which is not specifically limited in the embodiment of the present application);
if the user can enter the experiment, judging a sub-bucket identification bucket_id corresponding to the entering sub-bucket according to the sub-bucket identification shot_id, acquiring a first target value v corresponding to the target parameter k according to the sub-bucket identification bucket_id, feeding back the target parameter k and the first target value v corresponding to the target parameter k, namely, k=v, to the intermediate processing module 12, feeding back the k=v to the service module 11 by the intermediate processing module 12, and ending the current request processing of the service module 11;
Or if it is determined that the user cannot enter the experiment, the first null value is fed back to the intermediate processing module 12.
As shown in fig. 2, in an alternative embodiment of the present application, since all preset parameters need to be matched when performing AB test matching, if the target parameter of the request is k only, only the first preset experiment and the second preset experiment can be matched, the third preset experiment does not include the preset parameter k, and the fourth preset experiment also includes other preset parameters except the preset parameter k, so neither the third preset experiment nor the fourth preset experiment can be used as the target experiment.
As shown in fig. 2, in an alternative embodiment of the present application, when multiple target experiments (exp_id1 and exp_id2) are configured for the same set of target parameters, when determining the target experiments, the AB test module needs to perform verification, so that the input groups of exp_id1 and exp_id2 cannot overlap and need to be independent of each other, otherwise, the AB test is prompted to fail to create.
Specifically, assuming that the input groups of exp_id1 and exp_id2 cannot overlap, two preset experiments are simultaneously corresponding to the same user identifier user_id, and it is impossible to determine which preset experiment the user enters, that is, when the input groups of the two preset experiments overlap, it is impossible to determine the target experiment corresponding to the overlapping user.
In an alternative embodiment of the present application, the intermediate processing module 12 further includes a second assignment sub-module; the second assignment sub-module comprises a plurality of second preset parameters, and each second preset parameter is matched with a second preset value;
the second assignment sub-module is configured to assign, after the intermediate processing module 12 receives the first null value, the target parameter based on the second preset value matched with the target parameter, obtain the second target value of the target parameter, and feed back the second target value of the target parameter to the service module 11.
In this embodiment of the present application, after the second assignment sub-module obtains the first null value fed back by the AB test module, it indicates that the AB test module is not configured with a related preset experiment matched with the target parameter, so the AB test module cannot provide the first target value corresponding to the target parameter, and therefore the intermediate processing module 12 is required to provide the second target value corresponding to the target parameter.
Specifically, assuming that the target parameter is c, and the second assignment submodule receives the first null value fed back by the AB test module, the second assignment submodule searches a plurality of second preset parameters stored by the second assignment submodule based on the target parameter c, and after searching a second preset parameter corresponding to the target parameter c, invokes a second preset value (http:// p) matched with the second preset parameter, and c=http: the// feedback to the service module 11, the service module 11 ends the request processing.
According to the embodiment of the application, the AB tester can perform relevant AB test configuration at any time in the AB test module according to the test object, and after the AB test configuration is online, experimental effect data can be analyzed, so that the response speed of the AB test is improved, and the period of the AB test is shortened.
As shown in fig. 3, an embodiment of the present application further provides a parameter obtaining method, which is applied to the system shown in fig. 1, and includes:
step S31: the service module 11 sends parameter request information to the intermediate processing module 12; wherein the parameter request information includes target parameter information and request context information;
step S32: the intermediate processing module 12 sends the parameter request information to the testing module 13, receives a first feedback result determined by the testing module 13 according to the parameter request information, and determines a second feedback result fed back to the service module 11 according to the first feedback result.
As shown in fig. 4, in an optional embodiment of the present application, in step S32, the intermediate processing module 12 sends the parameter request information to the test module 13, including:
step S321: the intermediate processing module 12 determines a target parameter based on the parameter request information, and searches a plurality of first preset parameters based on the target parameter; wherein the intermediate processing module 12 includes a plurality of first preset parameters, and each of the first preset parameters is provided with a first preset value in a matching manner;
Step S322: judging whether the target parameter is found;
step S323: when the intermediate processing module 12 finds the target parameter, the parameter request information is sent to the test module 13; or (b)
Step S324: when the intermediate processing module 12 does not find the target parameter, feeding back a second null value to the service module 11; wherein the second feedback result includes a second target value or the second null value of the target parameter.
As shown in fig. 5, in an alternative embodiment of the present application, in step S32, the test module 13 determines a first feedback result according to the parameter request information, including;
step S32a: the test module 13 determines the target parameter based on the parameter request information and searches based on the target parameter;
step S32b: judging whether the target parameter is found;
step S32c: when the test module 13 finds the target parameter, determining a first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module 12;
step S32d: the intermediate processing module 12 feeds back the target parameter and a first target value v corresponding to the target parameter k, that is, k=v, to the intermediate processing module 12;
Step S32e: the intermediate processing module 12 feeds k=v back to the service module 11, and the current request processing of the service module 11 is finished; or (b)
Step S32f: when the test module 13 does not find the target parameter, feeding back a first null value to the intermediate processing module 12; wherein the first feedback result includes the first target value or a first null value of the target parameter.
As shown in fig. 5, in an optional embodiment of the present application, in step S32, the method further includes;
s32g: after receiving the first null value, the intermediate processing module 12 assigns a value to the target parameter based on a second preset value matched with the target parameter, so as to obtain the second target value of the target parameter;
s32h: feeding back the second target value of the target parameter to the service module 11;
wherein the intermediate processing module 12 includes a plurality of the second preset parameters, and each of the second preset parameters matches a second preset value.
As shown in fig. 6, in an optional embodiment of the present application, in step S32c, when the test module 13 finds the target parameter, the first target value of the target parameter is determined based on the request context information, and the first target value of the target parameter is fed back to the intermediate processing module 12, which includes:
Step S32c1: the test module 13 searches a plurality of preset experiments based on the target parameters after determining the target parameters; wherein the test module 13 comprises a plurality of preset experiments;
step S32c2: judging whether a target experiment is found;
step S32c3: when the test module 13 finds a target experiment matched with the target parameter, the identifier of the target experiment is obtained, the first target value of the target parameter is determined based on the identifier of the target experiment and the request context information, and the first target value of the target parameter is fed back to the intermediate processing module 12; wherein the request context information comprises a user identifier and a distribution identifier; or (b)
Step S32c4: and when the test module 13 does not find the target experiment matched with the target parameter, feeding back the first null value to the intermediate processing module 12.
As shown in fig. 7, in an optional embodiment of the present application, in step S32c3, when the test module 13 finds a target experiment matching the target parameter, the identifier of the target experiment is obtained, the first target value of the target parameter is determined based on the identifier of the target experiment and the request context information, and the first target value of the target parameter is fed back to the intermediate processing module 12, where the steps include:
Step S32c31: after the test module 13 finds out the target experiment matched with the target parameter, the user identification is obtained;
step S32c32: judging whether a user can enter the target experiment;
step S32c33: when the test module 13 determines that the user can enter the target experiment, the shunt identifier is obtained, and the first target value of the target parameter is determined based on the shunt identifier; or (b)
Step S32c34: when the test module 13 determines that the user cannot enter the target experiment, a first null value is fed back to the intermediate processing module 12.
In the embodiment of the application, the intermediate processing module 12 is configured between the service module 11 and the AB test module, the request information is mutually sent between the three modules, service developers only need to develop the service process, do not need to pay attention to whether AB tests exist, and only need to perform experimental configuration on the AB test module by the AB test personnel, so that decoupling between the service module 11 and the AB test module is realized, the test cost is reduced, and the stability of the service module 11 is improved.
Embodiments of the present application also provide an electronic device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method as described above when executing the computer program.
Embodiments of the present application also provide a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where the computer program when executed controls a device in which the computer readable storage medium is located to perform a method as described above.
In addition, other structures and functions of the device according to the embodiments of the present application are known to those skilled in the art, and are not described herein for redundancy reduction.
It should be noted that the logic and/or steps represented in the flowcharts or otherwise described herein, for example, may be considered as a ordered listing of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
In the description of the present application, it should be understood that the terms "center," "longitudinal," "transverse," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," etc. indicate orientations or positional relationships based on the orientations or positional relationships illustrated in the drawings, are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be configured and operated in a particular orientation, and therefore should not be construed as limiting the present application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
In this application, unless specifically stated and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
In this application, unless expressly stated or limited otherwise, a first feature "up" or "down" a second feature may be the first and second features in direct contact, or the first and second features in indirect contact via an intervening medium. Moreover, a first feature being "above," "over" and "on" a second feature may be a first feature being directly above or obliquely above the second feature, or simply indicating that the first feature is level higher than the second feature. The first feature being "under", "below" and "beneath" the second feature may be the first feature being directly under or obliquely below the second feature, or simply indicating that the first feature is less level than the second feature.
Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.

Claims (10)

1. A method for obtaining parameters, comprising:
the service module sends parameter request information to the intermediate processing module; wherein the parameter request information includes target parameter information and request context information;
the intermediate processing module sends the parameter request information to a testing module, receives a first feedback result determined by the testing module according to the parameter request information, and determines a second feedback result fed back to the service module according to the first feedback result.
2. The method of claim 1, wherein the intermediate processing module sending the parameter request information to the test module comprises:
the intermediate processing module determines target parameters based on the parameter request information and searches a plurality of first preset parameters based on the target parameters; the intermediate processing module comprises a plurality of first preset parameters, and each first preset parameter is provided with a first preset value in a matching mode;
When the intermediate processing module finds the target parameter, the parameter request information is sent to the testing module; or (b)
When the intermediate processing module does not find the target parameter, feeding back a second null value to the service module; wherein the second feedback result includes a second target value or the second null value of the target parameter.
3. The method of claim 2, wherein the testing module determining a first feedback result based on the parameter request information comprises;
the test module determines the target parameters based on the parameter request information and searches based on the target parameters;
when the test module finds the target parameter, determining a first target value of the target parameter based on the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; or (b)
When the test module does not find the target parameter, feeding back a first null value to the intermediate processing module; wherein the first feedback result includes the first target value or a first null value of the target parameter.
4. A method according to claim 3, wherein when the test module finds the target parameter, determining the first target value of the target parameter based on the request context information and feeding back the first target value of the target parameter to the intermediate processing module comprises:
The test module searches a plurality of preset experiments based on the target parameters after determining the target parameters; the test module comprises a plurality of preset experiments;
when the test module finds a target experiment matched with the target parameter, acquiring an identification of the target experiment, determining the first target value of the target parameter based on the identification of the target experiment and the request context information, and feeding back the first target value of the target parameter to the intermediate processing module; wherein the request context information comprises a user identifier and a distribution identifier; or (b)
And when the test module does not find a target experiment matched with the target parameter, feeding back the first null value to the intermediate processing module.
5. The method of claim 4, wherein when the test module finds a target experiment matching the target parameter, the test module obtains an identification of the target experiment, determines the first target value of the target parameter based on the identification of the target experiment and the request context information, and feeds back the first target value of the target parameter to the intermediate processing module, comprising:
After the test module finds out the target experiment matched with the target parameter, the user identification is obtained, and whether the user can enter the target experiment is judged;
when the test module determines that the user can enter the target experiment, acquiring the shunt identifier, and determining the first target value of the target parameter based on the shunt identifier; or (b)
And when the test module determines that the user can not enter the target experiment, feeding back a first null value to the intermediate processing module.
6. The method of claim 5, further comprising;
after receiving the first null value, the intermediate processing module carries out assignment on the target parameter based on a second preset value matched with the target parameter, obtains the second target value of the target parameter, and feeds back the second target value of the target parameter to the service module;
the intermediate processing module comprises a plurality of second preset parameters, and each second preset parameter is matched with a second preset value.
7. A parameter acquisition system for performing the method of any one of the preceding claims 1 to 6, comprising:
The system comprises a service module, an intermediate processing module and a test module which are sequentially connected in a communication way;
the business module is used for sending parameter request information to the intermediate processing module; wherein the parameter request information includes target parameter information and request context information;
the intermediate processing module is used for sending the parameter request information to the testing module, receiving a first feedback result determined by the testing module according to the parameter request information, and determining a second feedback result fed back to the service module according to the first feedback result.
8. The system of claim 7, wherein the intermediate processing module comprises a first determination submodule; the first determining submodule comprises a plurality of first preset parameters, and each first preset parameter is provided with a first preset value in a matching mode;
the first determining submodule is used for determining a target parameter based on the parameter request information and searching a plurality of first preset parameters based on the target parameter;
when the first determination submodule finds the target parameter, the parameter request information is sent to the test module; or (b)
When the first determining submodule does not find the target parameter, feeding back a second null value to the service module; wherein the second feedback result includes a second target value or the second null value of the target parameter.
9. An electronic device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the method of any one of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the method according to any one of claims 1 to 6.
CN202310110409.8A 2023-02-09 2023-02-09 Parameter acquisition method, system, equipment and storage medium Pending CN116126717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310110409.8A CN116126717A (en) 2023-02-09 2023-02-09 Parameter acquisition method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310110409.8A CN116126717A (en) 2023-02-09 2023-02-09 Parameter acquisition method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116126717A true CN116126717A (en) 2023-05-16

Family

ID=86306181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310110409.8A Pending CN116126717A (en) 2023-02-09 2023-02-09 Parameter acquisition method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116126717A (en)

Similar Documents

Publication Publication Date Title
CN110908888B (en) Server testing method and device
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
CN113703868B (en) Vehicle diagnosis software configuration method, electronic device and readable storage medium
CN107203464B (en) Method and device for positioning service problem
CN113608518A (en) Data generation method, device, terminal equipment and medium
CN114326672A (en) ECU simulation detection method, electronic device and storage medium
CN112866190A (en) Data interaction method, storage medium, electronic device and vehicle
CN113986852A (en) Driving program calibration parameter matching method and device, electronic equipment and storage medium
CN116775620B (en) Multi-party data-based risk identification method, device, equipment and storage medium
CN110956811A (en) Method, medium, equipment and device for rapidly processing license plate recognition errors of parking lot
CN116126717A (en) Parameter acquisition method, system, equipment and storage medium
CN112306041A (en) Vehicle configuration information writing method and device and electronic equipment
CN116991733A (en) Interface testing method, device and medium
CN109947715B (en) Log alarm method and device
CN105630466A (en) Business control method and apparatus
CN113590475B (en) Joint debugging test method and joint debugging test device of online development platform
CN112542166B (en) Voice interaction method and device
CN111708348B (en) Diagnostic service test method, device, equipment and storage medium
CN115544950A (en) Constraint file importing method, device, equipment and storage medium
CN111143961B (en) Unmanned vehicle simulation monitoring and positioning method, device and storage medium
CN111917602B (en) Method and device for detecting availability of IP address and electronic equipment
CN114489633B (en) Service operation logic assembling method, electronic device and storage medium
CN110674380B (en) Data query method, system, readable storage medium and intelligent device
CN117955828A (en) Controller local area network communication method and device, controller and storage medium
CN111832851B (en) Detection method and device

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