CN113282326B - Gray scale upgrading method, device, electronic equipment and readable storage medium - Google Patents

Gray scale upgrading method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113282326B
CN113282326B CN202110686015.8A CN202110686015A CN113282326B CN 113282326 B CN113282326 B CN 113282326B CN 202110686015 A CN202110686015 A CN 202110686015A CN 113282326 B CN113282326 B CN 113282326B
Authority
CN
China
Prior art keywords
gray scale
application program
target
strategy
task
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.)
Active
Application number
CN202110686015.8A
Other languages
Chinese (zh)
Other versions
CN113282326A (en
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.)
Duodian Life Chengdu Technology Co ltd
Original Assignee
Duodian Life Chengdu 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 Duodian Life Chengdu Technology Co ltd filed Critical Duodian Life Chengdu Technology Co ltd
Priority to CN202110686015.8A priority Critical patent/CN113282326B/en
Publication of CN113282326A publication Critical patent/CN113282326A/en
Application granted granted Critical
Publication of CN113282326B publication Critical patent/CN113282326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a gray scale upgrading method, a device, an electronic device and a readable storage medium, wherein an additional data table comprising a keyword field and a value field is pre-configured in a server, and when a target gray scale strategy is different from an existing gray scale strategy in the additional data table, the target gray scale strategy can be added to the keyword field, and the corresponding actual value is added to the corresponding value field. And the gray scale range of the task to be upgraded can be determined based on the actual value of the target gray scale strategy, and the target application program of the task to be upgraded is stored in the database and then is associated with the gray scale range. In the scheme, when the access of the new dimension of the gray level strategy is needed, the field expansion is not needed, the new dimension of the gray level strategy can be added to the keyword field to realize the quick access of the new dimension of the gray level strategy, the gray level range can be predetermined and stored, and then when the request of the user is received, whether the user hits the corresponding content can be quickly judged, so that the efficient gray level matching is realized.

Description

Gray scale upgrading method, device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer networks, and in particular, to a method, an apparatus, an electronic device, and a readable storage medium for gray scale upgrade.
Background
With the popularization of intelligent devices, the upgrading technology of intelligent devices based on the internet is also rapidly developed, and gray scale upgrading strategies are widely applied in the upgrading scene of the intelligent devices. The core idea of gray scale upgrading is to implement upgrading in batches and ranges by configuring upgrading rules. In the implementation process of gray scale upgrade, operators may configure different upgrade rules for upgrades in different upgrade tasks or different time periods, and trigger the upgrade of the client by hitting different strategies.
In the existing gray scale upgrading mode, different fields are set in corresponding upgrading information tables to store different gray scale strategies. However, in the case of a changeable gray scale policy, this approach requires expanding the fields in the upgrade information table to achieve access to the new dimension of the gray scale policy. The field expansion of the upgrade information table will lead to slow implementation of the new dimension access of the gray policy, which is more complex in implementation.
Disclosure of Invention
The aim of the application is to provide a method, a device, an electronic device and a readable storage medium for gray scale upgrading, which can realize quick access of new dimension of gray scale strategy and realize efficient gray scale matching.
Embodiments of the present application may be implemented as follows:
in a first aspect, the present application provides a method for gray scale upgrade, applied to a server, where a gray scale policy table and an additional data table are pre-stored in the server, where the additional data table includes a keyword field and a value field, and the keyword field includes at least one stored gray scale policy, and the method includes:
acquiring a target gray level strategy required by a task to be upgraded, which is defined in the gray level strategy table, wherein the type of the target gray level strategy is different from that of the at least one stored gray level strategy;
adding the target gray scale strategy to the keyword field, and adding an actual value corresponding to the target gray scale strategy to a corresponding value field;
determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale strategy;
and obtaining a target application program of the task to be upgraded, storing the target application program into a database and correlating the target application program with the gray scale range.
In an alternative embodiment, the method further comprises:
responding to a request from a user, and obtaining application program information carried in the request;
determining whether the user belongs to a gray scale range associated with the target application program;
if so, judging whether the application program of the client corresponding to the user needs to be upgraded according to the application program information and the target application program;
and if the application program of the client needs to be updated, feeding back the target application program to the client.
In an optional embodiment, the step of determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale policy includes:
obtaining a hit strategy required by a task to be upgraded, which is defined in the gray strategy table;
according to the actual value corresponding to the target gray level strategy, the actual value of the corresponding hit strategy is found;
forming a gray scale range of the task to be upgraded based on the obtained actual value of the hit strategy;
the step of determining whether the user belongs to the gray scale range associated with the target application program comprises the following steps:
obtaining user information carried in the request, and obtaining a true value contained in the user information under the hit strategy;
and searching whether the actual value matched with the true value exists in the gray scale range, and if so, determining that the user belongs to the gray scale range associated with the target application program.
In an optional implementation manner, the actual value corresponding to the target gray scale strategy is a count value;
the step of determining whether the user belongs to the gray scale range associated with the target application program comprises the following steps:
counting the number of users which are currently determined and belong to the gray scale range;
if the counted number does not reach the count value, determining that the user belongs to the gray scale range associated with the target application program;
and if the counted number reaches the count value, determining that the user does not belong to the gray scale range associated with the target application program.
In an alternative embodiment, the target application program of the task to be upgraded comprises a plurality of sub-application programs with different version levels;
the step of feeding back the target application program to the client comprises the following steps:
determining a target sub-application program hit by the user according to the application program information and a plurality of sub-application programs with different version levels;
and feeding back the target sub-application program to the client.
In an alternative embodiment, the method further comprises:
and counting the times of feedback of each sub-application program under the task to be upgraded.
In a second aspect, the present application provides a device for gray scale upgrade, applied to a server, where a gray scale policy table and an additional data table are pre-stored in the server, where the additional data table includes a keyword field and a value field, and the keyword field includes at least one stored gray scale policy, and the device includes:
the acquisition module is used for acquiring a target gray level strategy required by a task to be upgraded, which is defined in the gray level strategy table, wherein the type of the target gray level strategy is different from that of the at least one stored gray level strategy;
the adding module is used for adding the target gray level strategy to the keyword field and adding the actual value corresponding to the target gray level strategy to the corresponding value field;
the determining module is used for determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale strategy;
and the storage module is used for obtaining the target application program of the task to be upgraded, storing the target application program into a database and correlating the target application program with the gray scale range.
In a third aspect, the present application provides an electronic device comprising one or more storage media and one or more processors in communication with the storage media, the one or more storage media storing machine-executable instructions that are executable by the processor to perform the method steps recited in any one of the preceding embodiments when the electronic device is operated.
In a fourth aspect, the present application provides a computer-readable storage medium storing machine-executable instructions that, when executed, implement the method steps of any of the preceding embodiments.
The beneficial effects of the embodiment of the application include, for example:
the application provides a gray scale upgrading method, a device, an electronic device and a readable storage medium, wherein an additional data table is configured in advance in a server, the additional data table comprises a keyword field and a value field, when a target gray scale strategy required by a task to be upgraded is obtained, the target gray scale strategy can be added to the keyword field and the corresponding actual value can be added to the corresponding value field under the condition that the target gray scale strategy is different from the gray scale strategy stored in the additional data table. And on the basis, the gray scale range of the task to be upgraded can be determined based on the actual value of the target gray scale strategy, and the target application program of the task to be upgraded is stored in the database and then is associated with the gray scale range. In the scheme, an additional data table comprising a keyword field and a value field is established, when the access of a new dimension of a gray level strategy is needed, the additional data table can be added to the keyword field without expanding the field, the quick access of the new dimension of the gray level strategy is realized, a gray level range can be predetermined and stored, and then when a request of a user is received, whether the user hits corresponding content or not can be quickly judged, so that high-efficiency gray level matching is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a method for gray scale upgrading according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for gray scale upgrade provided in an embodiment of the present application;
FIG. 3 is a flowchart of a response method in the gray scale upgrading method according to the embodiment of the present application;
FIG. 4 is a flowchart of sub-steps included in step S130 of FIG. 2;
FIG. 5 is a flowchart of sub-steps included in step S160 of FIG. 3;
FIG. 6 is another flowchart of sub-steps included in step S160 of FIG. 3;
FIG. 7 is a flow chart of sub-steps included in step S180 of FIG. 3;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 9 is a functional block diagram of an apparatus for gray scale upgrade according to an embodiment of the present application.
Icon: 100-server; 110-a storage medium; a 120-processor; 130-means for gray scale upgrading; 131-an acquisition module; 132-add module; 133-a determination module; 134-a save module; 140-communication interface.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that, without conflict, features in the embodiments of the present application may be combined with each other.
Referring to fig. 1, an application scenario of a gray scale upgrading method provided in an embodiment of the present application is shown, where the scenario includes a server 100 and a plurality of clients capable of establishing communication with the server 100. Wherein, each client may send related request information to the server 100, and the server 100 may process the request information to feed back corresponding information. The client may include, but is not limited to, a terminal device such as a smart phone, a smart home, a computer device, etc. The server 100 may be a single server 100 or may be a server cluster formed by a plurality of servers 100.
In this embodiment, the server 100 may be equipment on the operator side, and may be used to implement the gray scale upgrade requirement. In this embodiment, a gray policy table gray_rule and an additional data table gray_rule_extra are pre-stored in the server 100, wherein the additional data table includes a key field and a value field, the key field includes at least one stored gray policy, and information under the key field and the corresponding value field in the additional data table can be used for performing operations such as gray hit.
The method for upgrading the gray scale provided in the embodiment of the present application is described in detail below with reference to the description of the application scenario shown in fig. 1.
Referring to fig. 2, a flowchart of a method for gray scale upgrade according to an embodiment of the present application is shown, and the method may be performed by the server 100. It should be understood that, in other embodiments, the gray scale upgrading method according to the present embodiment may have part of the steps interchanged according to actual needs, or part of the steps omitted or deleted. The detailed steps of the gray scale upgrading method are described as follows.
Step S110, obtaining a target gray level policy required by the task to be upgraded defined in the gray level policy table, where the target gray level policy is different from the at least one stored gray level policy.
Step S120, adding the target gray scale policy to the keyword field, and adding the actual value corresponding to the target gray scale policy to the corresponding value field.
And step S130, determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale strategy.
Step S140, obtaining a target application program of the task to be upgraded, and storing the target application program in a database and associating with the gray scale range.
In the present embodiment, as can be seen from the above, the additional data table is set as an information table containing a key field and a value field. And the key field contains at least one stored gray scale policy. The gray scale policies in the additional data table may be used to perform gray scale hits. However, it is often possible to have different gray scale policies for the same task or different tasks. That is, a situation may arise in which a new dimension of gray scale policy needs to be accessed in the additional data table.
The existing additional data table is provided with different fields to correspond to different gray level strategies, namely, when a new dimension of the gray level strategy needs to be accessed in the additional data table, the fields in the additional data table need to be expanded, so that the accessed new dimension information is added to the fields obtained by expansion. This approach, due to the expansion of the fields involved, will result in a slow implementation of the new dimension access of the gray scale policy.
In this embodiment, the setting manner of the additional data table is different from that in the prior art. The information required for the gradation promotion may be information within a certain range in one dimension, and it is not necessary to embody the correspondence between different dimensions in the additional data table. Therefore, in the present embodiment, the manner of setting different fields to correspond to different gray scale policy dimensions in the existing manner is changed to setting a keyword field and a value field, the keyword field is utilized to correspond to each different gray scale policy dimension, and the value field is utilized to store corresponding value information.
In addition, in the implementation process, for the task to be upgraded, an operator on the side of the server 100 may set a target gray level policy required for the task to be upgraded, that is, may set a policy based on which to implement the task to be upgraded. The defined target gray level policy may be stored in the gray level policy table for subsequent retrieval.
The server 100 may also construct a metadata table, grayj ate, in which basic information of some tasks, such as task names, etc., may be stored.
In addition, other information related to the task may be stored in the gray level policy table, for example, the task to be executed is a task updated by the application program, and the service type busi_type of the task may be defined in the gray level policy table as an updated application program appUpdate. On the basis, if the target gray policy representation is triggered to be executed based on the mobile phone number of the user, the gray policy type config_type of the task can be defined as the mobile phone number in the gray policy table. If the determination of the scope is finally required based on the user ID, the target match_key that the task needs to hit may be defined as the user ID in the gray level policy table.
When the task to be executed is an application upgrade task, the gray policy table may further define an external service key foreign_busi_id as an ID corresponding to the application version information.
If the defined target gray level policy of the task to be upgraded is different from the type of the existing gray level policy in the additional data table, that is, when the access of the new dimension of the gray level policy is needed, since the additional data table in the embodiment includes the keyword field and the value field, the new access target gray level policy can be directly added under the keyword field, and the actual value corresponding to the target gray level policy can be added under the corresponding value field.
The target gray scale policy may be, for example, a mobile phone number of the user, a store number, or the like, that is, a subsequent gray scale upgrade within a certain user range may be performed based on the mobile phone number of the user.
In this embodiment, after the actual value corresponding to the target gray level policy is obtained, the gray level range of the task to be upgraded may be determined. For example, when the target gray scale policy is the mobile phone number of the user, after the actual mobile phone number is obtained, a gray scale range may be determined based on the obtained actual mobile phone number, that is, the user belonging to the gray scale range may be the target user, so as to execute the upgrade of the application for the users.
After the gray scale range is determined, a target application program of the task to be upgraded can be obtained, for example, the version number of the application program to which the task to be upgraded is required to be upgraded, the downloading address of the upgrade data packet, and the like are included. The target application may be stored in a database, such as Redis, and associated with the determined gray scale range.
Therefore, by pre-determining the target application program and associating the target application program with the gray scale range, the user can be quickly judged whether to hit the corresponding content or not when the user request is received later, and then high-efficiency gray scale matching is realized.
In addition, the scheme for gray scale upgrading provided by the embodiment establishes an additional data table containing a keyword field and a value field, and when the new dimension of gray scale processing is required to be accessed, the additional data table can be added under the keyword field without expanding the field, so that the quick access of the new dimension of gray scale strategy is realized.
On the basis of the above, referring to fig. 3, the gray scale upgrading method provided in the present embodiment may further include the following steps:
step S150, in response to a request from a user, obtaining application information carried in the request.
Step S160, determining whether the user belongs to the gray scale range associated with the target application program, and if so, executing the following step S170.
Step S170, determining whether the application program of the client corresponding to the user needs to be upgraded according to the application program information and the target application program, and if it is determined that the application program of the client needs to be upgraded, executing the following step S180.
And step S180, feeding back the target application program to the client.
In this embodiment, the user may send a request to the server 100 through the client, where the request may be a request for application upgrade, and of course, a request for other information may also be used, which is not limited in particular.
After receiving the request from the user, the server 100 may obtain the application information carried in the request, where the application information may be application information currently installed by the client, such as a version number of the currently installed application.
The gray scale range corresponding to the task to be upgraded is calculated through the process, so that when a user request is received, whether the user belongs to the gray scale range or not can be judged, namely, whether the user is in the user range which is determined through the process and needs to be upgraded at the time. If the user is determined to be in the gray scale range, whether the application program of the client needs to be upgraded or not can be judged continuously based on the current application program information of the client and the target application program of the task to be upgraded.
For example, if the version number of the current application program of the client is lower than the version number of the target application program, it may be determined that the application program of the client may be updated, and if the version number of the current application program of the client is not lower than the version number of the target application program, it may be determined that the application program of the client does not need to be updated.
If it is determined that the application program of the client needs to be upgraded, the stored target application program may be fed back to the client, for example, an upgrade data packet of the target application program may be fed back, or information such as a packet download address of the target application program may be fed back to the client.
If the application program of the client is judged not to be updated, the prompt information that the application program of the client is not required to be updated can be fed back to the client, or the application program of the client is not responded.
Therefore, by calculating the gray scale range corresponding to the task in advance and associating the target application program with the gray scale range after storing, when the user request arrives, whether the user is in the gray scale range or not can be directly judged, gray content of the user can be obtained, long time consumption caused by temporarily calculating the gray scale result of the user when the user request arrives can be avoided, and efficient gray scale matching is realized.
In this embodiment, different strategies, such as accurate gray scale or counting gray scale, may be used for gray scale upgrade. The accurate gray level is the user information which is hit to the accurate user information within a range which is characterized by the accurate information. The counting gray scale is a counting range which is finally hit, specific users in the range are not concerned, and the range of the size is concerned, such as the gray scale upgrading of 1 ten thousand users is realized.
As a possible implementation manner, in the case of the precise gray scale manner adopted in the gray scale upgrading, when determining the gray scale range of the task to be upgraded, the foregoing may be implemented in the following manner, please refer to fig. 4 in combination:
step S131, obtaining a hit policy required by the task to be upgraded defined in the gray level policy table.
Step S132, the actual value of the corresponding hit strategy is found according to the actual value of the target gray strategy.
Step S133, forming the gray scale range of the task to be upgraded based on the obtained actual value of the hit strategy.
In this embodiment, it is considered that the user often uses extensive information for uniquely identifying the user, such as a mobile phone number of the user, to perform registration. Therefore, when setting the target gray scale policy, the operator can set the mobile phone number of the user as the target gray scale policy. After a user registers on the platform, the platform often assigns the user an identification information on the platform, such as a user ID on the platform, which can be used to uniquely identify the user on the platform. When the gray scale upgrading is executed on the platform, the user ID of the user on the platform is used as identification information, so that information management on the platform can be facilitated.
Thus, the operator may also define a hit policy, e.g. a user ID, required for the task to be upgraded, which defined hit policy may be written in the gray level policy table. After the actual value corresponding to the target gray level policy is obtained, the actual value of the corresponding hit policy can be found based on the pre-registration information.
For example, after obtaining a plurality of actual mobile phone numbers, the user ID corresponding to each mobile phone number, that is, each actual value of the hit policy, may be obtained based on the registration information. The actual value of the hit strategy obtained can then constitute the gray scale range of the task to be upgraded.
In this case, referring to fig. 5, when implementing the gray hit, the above-mentioned step of determining whether the user belongs to the gray range associated with the target application program may be implemented by:
step S161A, obtaining the user information carried in the request, and obtaining the true value included in the user information under the hit policy.
Step S162A, find whether there is an actual value matching the actual value in the gray scale range, and if so, execute the following step S163A.
Step S163A determines that the user belongs to the gray scale range associated with the target application.
In this embodiment, under the policy of precise gray scale, when a request from a user is received, user information carried in the request may be obtained. The user information includes information such as a user mobile phone number, a user ID, and the like. If the defined hit policy is hit user ID, the true value of the user ID under the hit policy, that is, the true value of the user ID of the user, in the user information may be further obtained.
After the gray scale range is determined, the gray scale range contains the determined actual values of a plurality of user IDs needing gray scale upgrading. In this way, it is possible to check whether there is an actual value within the gradation range that matches the actual value in the obtained user information, that is, whether there is a user ID that matches the user ID to be confirmed in the user information among the plurality of user IDs.
If there is a matching actual value in the gray scale range, this indicates that the user is a user in a pre-defined range. Thus, it can be determined that the user is within the gray scale range associated with the target application.
As can be seen from the above, the gray scale policy may also include a counting policy, that is, a number of people focusing on gray scale, in which case the actual value corresponding to the obtained target gray scale policy is a count value, such as ten thousand. As a possible implementation, referring to fig. 6, in this embodiment, it may also be determined whether the user is within the gray scale range associated with the target application program in the following manner.
Step S161B, counting the number of users currently determined to belong to the gray scale range.
And step S162B, if the counted number does not reach the count value yet, determining that the user belongs to the gray scale range associated with the target application program.
Step S163B, if the counted number reaches the count value, determining that the user does not belong to the gray scale range associated with the target application.
In this embodiment, under the counting gray scale policy, when a request of a user is acquired, the user is included in the gray scale range, and the counting is performed by the gray scale counter, for example, an add 1 operation is performed each time. In case a request of a certain user is newly received, the number of users currently counted and determined to belong to the gray scale range may be checked first.
If the number counted at present does not reach the count value, the user can be determined to belong to the gray scale range, otherwise, the user can be determined not to belong to the gray scale range.
For example, if it is predefined that an upgrade of an application program is required for ten thousand users, the count value is ten thousand. If the number of the users determined to belong to the gray scale range is five thousand when the request of the users comes, the users can determine to belong to the gray scale range, and the counted number is added with 1. If the user request comes, the counted number of the users determined to be in the gray scale range is ten thousand, the number of people required for characterization is reached, and the users can be determined not to be in the gray scale range.
In this embodiment, when it is determined that the user belongs to the gray scale range and it is determined that the application program of the client of the user needs to be upgraded in any manner, the target application program may be fed back to the client to achieve gray scale upgrading.
Alternatively, the target application of the task to be upgraded may include a plurality of sub-applications of different version levels, that is, a sub-application that may instruct to upgrade version information of the client to version a level or upgrade version information of the client to version B in one task to be upgraded. In this case, referring to fig. 7, when the target application is fed back to the client, it can be implemented by:
step S181, determining a target sub-application hit by the user according to the application information and the sub-applications of a plurality of different version levels.
Step S182, feeding back the target sub-application program to the client.
In this embodiment, the manner of determining the target sub-application hit by the user may be, for example, to use, as the target sub-application, only a sub-application one level higher than the level of the application currently installed by the client, among the plurality of sub-applications of different version levels.
For example, if the sub-application includes three sub-applications with version levels of B, C, and D, the version levels increase in sequence. The version level of the application currently installed by the client is a level. The sub-application of level B of the three sub-applications may be regarded as the target sub-application. If the version level of the application program currently installed on the client is B level, the sub-application program of the C level in the three sub-application programs can be used as the target sub-application program.
In addition, as another implementation manner, the target sub-application program can be determined based on the preset upgrading priority of each sub-application program, for example, a plurality of sub-application programs with different version levels can be set with different upgrading priorities according to the upgrading requirement, and when other conditions are met, the target sub-application program can be determined and fed back based on the order of the upgrading priorities from high to low.
Under the above mechanism, for a certain task to be upgraded, after the task to be upgraded is completed, the number of feedback times of each sub-application program respectively, that is, the number of times that each sub-application program is executed with gray scale upgrade, can be counted. The results obtained may be recorded in log information of the task to be upgraded in order to provide information to the operator.
According to the gray scale upgrading scheme provided by the embodiment, the additional data table is configured to contain the keyword field and the value field, so that when a new dimension of a gray scale strategy needs to be added, the new dimension can be directly added under the keyword field, the field expansion is not needed, and the purpose of quickly accessing the gray scale strategies of different dimensions can be achieved.
Further, the embodiment may calculate the gray scale range according to the configuration, and store the target application program and associate the target application program with the gray scale range. When the user request arrives, if the user is judged to belong to the gray scale range, the corresponding gray scale content can be returned directly. Time consumption caused by temporarily calculating gray content of a user is avoided, and the purpose of high-efficiency gray matching is achieved.
Referring to fig. 8, a schematic diagram of exemplary components of an electronic device according to an embodiment of the present application is provided, where the electronic device may be the server 100 shown in fig. 1. The electronic device may include a storage medium 110, a processor 120, a grayscale upgrading device 130, and a communication interface 140. In this embodiment, the storage medium 110 and the processor 120 are both located in the electronic device and are separately disposed. However, it should be understood that the storage medium 110 may also be separate from the electronic device and accessible to the processor 120 through a bus interface. Alternatively, the storage medium 110 may be integrated into the processor 120, for example, as a cache and/or general purpose registers.
The gray scale upgrading device 130 may be understood as the electronic device or the processor 120 of the electronic device, or may be understood as a software functional module that is independent of the electronic device or the processor 120 and implements the method of upgrading gray scale under the control of the electronic device.
As shown in fig. 9, the apparatus 130 for gray scale upgrade may include an acquisition module 131, an addition module 132, a determination module 133, and a storage module 134. The functions of the respective functional modules of the gradation-upgrading apparatus 130 are explained in detail below.
An obtaining module 131, configured to obtain a target gray level policy required for a task to be upgraded defined in the gray level policy table, where the target gray level policy is different from the at least one stored gray level policy.
It will be appreciated that the acquisition module 131 may be used to perform step S110 described above, and reference may be made to the details of the implementation of the acquisition module 131 regarding step S110 described above.
The adding module 132 is configured to add the target gray scale policy to the keyword field, and add an actual value corresponding to the target gray scale policy to the corresponding value field.
It is understood that the adding module 132 may be used to perform the step S120 described above, and reference may be made to the details of the implementation of the adding module 132 regarding the step S120 described above.
And the determining module 133 is configured to determine a gray scale range of the task to be upgraded based on an actual value corresponding to the target gray scale policy.
It will be appreciated that the determination module 133 may be used to perform the step S130 described above, and reference may be made to the details of the implementation of the determination module 133 as described above with respect to the step S130.
And the storage module 134 is configured to obtain a target application program of the task to be upgraded, store the target application program in a database, and associate the target application program with the gray scale range.
It is understood that the saving module 134 may be used to perform the step S140, and reference may be made to the details of the implementation of the saving module 134 regarding the step S140.
In a possible implementation manner, the gray scale upgrading device 130 further includes a response module, where the response module may specifically be used to:
responding to a request from a user, and obtaining application program information carried in the request;
determining whether the user belongs to a gray scale range associated with the target application program;
if so, judging whether the application program of the client corresponding to the user needs to be upgraded according to the application program information and the target application program;
and if the application program of the client needs to be updated, feeding back the target application program to the client.
In one possible implementation, the determining module 133 may specifically be configured to:
obtaining a hit strategy required by a task to be upgraded, which is defined in the gray strategy table;
according to the actual value corresponding to the target gray level strategy, the actual value of the corresponding hit strategy is found;
forming a gray scale range of the task to be upgraded based on the obtained actual value of the hit strategy;
the response module may be specifically configured to:
obtaining user information carried in the request, and obtaining a true value contained in the user information under the hit strategy;
and searching whether the actual value matched with the true value exists in the gray scale range, and if so, determining that the user belongs to the gray scale range associated with the target application program.
In one possible implementation manner, the actual value corresponding to the target gray scale policy is a count value, and the determining module 133 may specifically be configured to:
counting the number of users which are currently determined and belong to the gray scale range;
if the counted number does not reach the count value, determining that the user belongs to the gray scale range associated with the target application program;
and if the counted number reaches the count value, determining that the user does not belong to the gray scale range associated with the target application program.
In one possible implementation manner, the target application program of the task to be upgraded includes a plurality of sub-application programs with different version levels, and the response module may be specifically configured to:
determining a target sub-application program hit by the user according to the application program information and a plurality of sub-application programs with different version levels;
and feeding back the target sub-application program to the client.
In a possible implementation manner, the gray scale upgrading device 130 may further include a statistics module, where the statistics module may specifically be used to:
and counting the times of feedback of each sub-application program under the task to be upgraded.
The process flow of each module in the apparatus and the interaction flow between the modules may be described with reference to the related descriptions in the above method embodiments, which are not described in detail herein.
Further, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores machine executable instructions, where the machine executable instructions are executed to implement the method for gray scale upgrade provided in the above embodiment.
In particular, the computer readable storage medium can be a general purpose storage medium, such as a removable disk, a hard disk, etc., and the method for gray scale upgrading described above can be performed when a computer program on the computer readable storage medium is executed. With respect to the processes involved in the computer readable storage medium and when executed as executable instructions thereof, reference is made to the relevant descriptions of the method embodiments described above and will not be described in detail herein.
In summary, in the method, the device, the electronic apparatus, and the readable storage medium for gray scale upgrade provided in the embodiments of the present application, an additional data table is preconfigured in the server 100, where the additional data table includes a keyword field and a value field, when a target gray scale policy required for a task to be upgraded is obtained, if the target gray scale policy is different from an existing gray scale policy in the additional data table, the target gray scale policy may be added to the keyword field, and the corresponding actual value may be added to the corresponding value field. And on the basis, the gray scale range of the task to be upgraded can be determined based on the actual value of the target gray scale strategy, and the target application program of the task to be upgraded is stored in the database and then is associated with the gray scale range. In the scheme, an additional data table comprising a keyword field and a value field is established, when the access of a new dimension of a gray level strategy is needed, the additional data table can be added to the keyword field without expanding the field, the quick access of the new dimension of the gray level strategy is realized, a gray level range can be predetermined and stored, and then when a request of a user is received, whether the user hits corresponding content or not can be quickly judged, so that high-efficiency gray level matching is realized.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions easily conceivable by those skilled in the art within the technical scope of the present application should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A method for gray scale upgrade, characterized in that the method is applied to a server, in which a gray scale policy table and an additional data table are pre-stored, the additional data table includes a keyword field and a value field, and the keyword field includes at least one stored gray scale policy, the method includes:
acquiring a target gray level strategy required by a task to be upgraded, which is defined in the gray level strategy table, wherein the type of the target gray level strategy is different from that of the at least one stored gray level strategy;
adding the target gray scale strategy to the keyword field, and adding an actual value corresponding to the target gray scale strategy to a corresponding value field;
determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale strategy;
and obtaining a target application program of the task to be upgraded, storing the target application program into a database and correlating the target application program with the gray scale range.
2. The method of gray scale upgrading of claim 1, further comprising:
responding to a request from a user, and obtaining application program information carried in the request;
determining whether the user belongs to a gray scale range associated with the target application program;
if so, judging whether the application program of the client corresponding to the user needs to be upgraded according to the application program information and the target application program;
and if the application program of the client needs to be updated, feeding back the target application program to the client.
3. The method for gray scale upgrade according to claim 2, wherein the step of determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale policy comprises:
obtaining a hit strategy required by a task to be upgraded, which is defined in the gray strategy table;
according to the actual value corresponding to the target gray level strategy, the actual value of the corresponding hit strategy is found;
forming a gray scale range of the task to be upgraded based on the obtained actual value of the hit strategy;
the step of determining whether the user belongs to the gray scale range associated with the target application program comprises the following steps:
obtaining user information carried in the request, and obtaining a true value contained in the user information under the hit strategy;
and searching whether the actual value matched with the true value exists in the gray scale range, and if so, determining that the user belongs to the gray scale range associated with the target application program.
4. The method for gray scale upgrade according to claim 2, wherein the actual value corresponding to the target gray scale policy is a count value;
the step of determining whether the user belongs to the gray scale range associated with the target application program comprises the following steps:
counting the number of users which are currently determined and belong to the gray scale range;
if the counted number does not reach the count value, determining that the user belongs to the gray scale range associated with the target application program;
and if the counted number reaches the count value, determining that the user does not belong to the gray scale range associated with the target application program.
5. The method of greyscale upgrade according to claim 2, wherein the target application of the task to be upgraded comprises a plurality of sub-applications of different version levels;
the step of feeding back the target application program to the client comprises the following steps:
determining a target sub-application program hit by the user according to the application program information and a plurality of sub-application programs with different version levels;
and feeding back the target sub-application program to the client.
6. The method of gray scale upgrading of claim 5, further comprising:
and counting the times of feedback of each sub-application program under the task to be upgraded.
7. A device for gray scale upgrade, applied to a server, wherein a gray scale policy table and an additional data table are pre-stored in the server, the additional data table includes a keyword field and a value field, the keyword field includes at least one stored gray scale policy, and the device includes:
the acquisition module is used for acquiring a target gray level strategy required by a task to be upgraded, which is defined in the gray level strategy table, wherein the type of the target gray level strategy is different from that of the at least one stored gray level strategy;
the adding module is used for adding the target gray level strategy to the keyword field and adding the actual value corresponding to the target gray level strategy to the corresponding value field;
the determining module is used for determining the gray scale range of the task to be upgraded based on the actual value corresponding to the target gray scale strategy;
and the storage module is used for obtaining the target application program of the task to be upgraded, storing the target application program into a database and correlating the target application program with the gray scale range.
8. An electronic device comprising one or more storage media and one or more processors in communication with the storage media, the one or more storage media storing processor-executable machine-executable instructions that, when the electronic device is run, are executed by the processor to perform the method steps recited in any of claims 1-6.
9. A computer readable storage medium storing machine executable instructions which when executed implement the method steps of any one of claims 1-6.
CN202110686015.8A 2021-06-21 2021-06-21 Gray scale upgrading method, device, electronic equipment and readable storage medium Active CN113282326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110686015.8A CN113282326B (en) 2021-06-21 2021-06-21 Gray scale upgrading method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110686015.8A CN113282326B (en) 2021-06-21 2021-06-21 Gray scale upgrading method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN113282326A CN113282326A (en) 2021-08-20
CN113282326B true CN113282326B (en) 2023-05-16

Family

ID=77285272

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110686015.8A Active CN113282326B (en) 2021-06-21 2021-06-21 Gray scale upgrading method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113282326B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN110532008A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 A kind of product gray scale dissemination method, device, computer equipment and storage medium
CN110661835A (en) * 2018-06-29 2020-01-07 马上消费金融股份有限公司 Gray level publishing method and processing method thereof, node and system and storage device
CN111381845A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Software gray scale upgrading method and device, storage medium, terminal and server
WO2020181684A1 (en) * 2019-03-12 2020-09-17 平安科技(深圳)有限公司 Grayscale release management method, system and device, and storage medium
CN111752597A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Method, device and equipment for issuing gray scale of service and computer readable storage medium
CN112346738A (en) * 2020-11-30 2021-02-09 深圳市欧瑞博科技股份有限公司 Intelligent gray level release method and device, electronic equipment and storage medium
CN112686519A (en) * 2020-12-25 2021-04-20 中国平安人寿保险股份有限公司 Gray scale adjusting method and device, electronic equipment and storage medium
CN112783868A (en) * 2021-02-10 2021-05-11 中国工商银行股份有限公司 Distributed database table structure gray scale upgrading method, device and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018006677A1 (en) * 2016-07-06 2018-01-11 中兴通讯股份有限公司 Smart upgrade method, server, terminal and system
CN110661835A (en) * 2018-06-29 2020-01-07 马上消费金融股份有限公司 Gray level publishing method and processing method thereof, node and system and storage device
CN111381845A (en) * 2018-12-28 2020-07-07 广州市百果园信息技术有限公司 Software gray scale upgrading method and device, storage medium, terminal and server
WO2020181684A1 (en) * 2019-03-12 2020-09-17 平安科技(深圳)有限公司 Grayscale release management method, system and device, and storage medium
CN110532008A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 A kind of product gray scale dissemination method, device, computer equipment and storage medium
CN111752597A (en) * 2020-06-29 2020-10-09 深圳前海微众银行股份有限公司 Method, device and equipment for issuing gray scale of service and computer readable storage medium
CN112346738A (en) * 2020-11-30 2021-02-09 深圳市欧瑞博科技股份有限公司 Intelligent gray level release method and device, electronic equipment and storage medium
CN112686519A (en) * 2020-12-25 2021-04-20 中国平安人寿保险股份有限公司 Gray scale adjusting method and device, electronic equipment and storage medium
CN112783868A (en) * 2021-02-10 2021-05-11 中国工商银行股份有限公司 Distributed database table structure gray scale upgrading method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
颜振东.移动应用灰度发布系统的设计与实现.中国优秀硕士学位论文全文数据库 信息科技辑.2018,I138-925. *

Also Published As

Publication number Publication date
CN113282326A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
CN107872528B (en) Message pushing method and device
EP2163051B1 (en) Techniques for automatic software provisioning
US10225145B2 (en) Method and device for updating client
CN110557284B (en) Data aggregation method and device based on client gateway
CN111930780A (en) Data query method and system
CN109495467B (en) Method and device for updating interception rule and computer readable storage medium
US20130283274A1 (en) Method and system for discovering and activating an application in a computer device
US20170289243A1 (en) Domain name resolution method and electronic device
CN113364853A (en) Business service system, business request method and gateway equipment
CN110830551A (en) Service request processing method, device and system
CN106130972A (en) Resource access control method and device
CN110032578B (en) Mass data query caching method and device
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN110737458A (en) code updating method and related device
CN111930505B (en) Data resource management method and system for big data platform, server and medium
CN113282326B (en) Gray scale upgrading method, device, electronic equipment and readable storage medium
CN110852603B (en) High-throughput wind control data processing method, device, equipment and storage medium
CN111538672A (en) Test case layered test method, computer device and computer-readable storage medium
CN116151631A (en) Service decision processing system, service decision processing method and device
CN109582680B (en) Business processing method based on new product development, electronic device and readable storage medium
CN111078379B (en) Task scheduling method, system, mobile terminal and storage medium
CN111221651B (en) Load balancing configuration method, device, server and readable storage medium
CN114372240A (en) Data acquisition method, device, terminal and computer readable storage medium
CN109104499B (en) Session establishing method, device, equipment and storage medium
CN115004667A (en) Information pushing method and device, electronic equipment and computer readable medium

Legal Events

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