CN111679966A - Gray scale distribution method, device, server and storage medium - Google Patents

Gray scale distribution method, device, server and storage medium Download PDF

Info

Publication number
CN111679966A
CN111679966A CN202010345255.7A CN202010345255A CN111679966A CN 111679966 A CN111679966 A CN 111679966A CN 202010345255 A CN202010345255 A CN 202010345255A CN 111679966 A CN111679966 A CN 111679966A
Authority
CN
China
Prior art keywords
app
gray
test file
gray scale
request
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
CN202010345255.7A
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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010345255.7A priority Critical patent/CN111679966A/en
Publication of CN111679966A publication Critical patent/CN111679966A/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/3684Test management for test design, e.g. generating new test cases
    • 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

Abstract

The invention discloses a gray level publishing method, a device, a server and a storage medium, wherein the method comprises the following steps: receiving a target request sent by a first APP in a terminal, wherein the target request carries an identifier of the first APP and a version number of a second APP; determining whether the target request is a legal request or not according to the identifier of the first APP; if so, acquiring a gray test file of the second APP from the cache middleware corresponding to the server according to the version number of the second APP; and providing the gray test file of the second APP to the first APP. By implementing the method, the cache middleware can provide the gray test file of the APP to the terminal, and the cache middleware can bear a large number of concurrent requests, so that the efficiency of the whole APP gray release process can be improved. In addition, the source of the target request is judged based on the APP identification in the target request, so that the malicious request gray level test file of an unknown calling party can be shielded, and the purpose of ensuring the data security is achieved.

Description

Gray scale distribution method, device, server and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for issuing a grayscale, a server, and a storage medium.
Background
With the rapid development of internet technology, the update iteration speed of APP (Application program) is faster and faster. At present, after the APP is released, an abnormal operation condition of an online real user may occur due to reasons such as code quality, device configuration, device compatibility, and use environment. In order to reduce the occurrence rate of real online users as much as possible and improve the quality and user experience of a new version of APP, a small number of users are selected to try out and test the new version of APP before the APP is formally released online, and the process is called gray release.
In the prior art, the grayscale release of the APP is realized based on a database of a server, specifically, after the server receives an APP grayscale test file acquisition request sent by a terminal, the server queries a corresponding APP grayscale test file in the database, returns the queried APP grayscale test file to the terminal, and the terminal runs the APP grayscale test file to realize a grayscale test function.
Although the prior art can realize APP gray release to a certain extent, the terminal is provided with the gray test file mainly through the database, so that a large number of concurrent APP gray test file acquisition requests cannot be borne, and the efficiency of the whole APP gray release process is low.
Disclosure of Invention
The embodiment of the invention provides a gray scale publishing method, a gray scale publishing device, a server and a storage medium, and aims to solve the technical problem that the APP gray scale publishing process in the prior art is low in efficiency.
According to a first aspect of the present invention, a gray release method is disclosed, which is applied to a server, and comprises:
receiving a target request sent by a first application program APP in a terminal, wherein the target request is used for requesting a gray test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP;
determining whether the target request is a legal request or not according to the identifier of the first APP;
if the target request is a legal request, obtaining a gray test file of the second APP from a cache middleware corresponding to the server according to the version number of the second APP, wherein the cache middleware stores at least one gray test file of the APP;
and providing the gray test file of the second APP to the first APP.
Optionally, as an embodiment, the determining, according to the identifier of the first APP, whether the target request is a legal request includes:
and determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
Optionally, as an embodiment, the cache middleware further stores an upper limit value of an issued quantity and an issued quantity of the gray scale test file of the second APP;
the method further comprises the following steps:
acquiring an upper limit value and an issued quantity of the gray scale test files of the second APP from the cache middleware according to the version number of the second APP;
providing the gray scale test file of the second APP to the first APP comprises:
determining whether the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP;
and if so, providing the gray test file of the second APP to the first APP.
Optionally, as an embodiment, the cache middleware further stores an effective duration of the gray scale test file of the second APP;
the method further comprises the following steps:
according to the version number of the second APP, obtaining the effective duration of the gray scale test file of the second APP from the cache middleware;
providing the gray scale test file of the second APP to the first APP comprises:
determining whether the online time length of the gray scale test file of the second APP does not reach the effective time length of the gray scale test file of the second APP;
and if so, providing the gray test file of the second APP to the first APP.
Optionally, as an embodiment, the method further includes: updating the gray level test file in the cache middleware;
wherein the updating the gray test file in the cache middleware comprises:
receiving a gray level test file uploaded by a user;
storing the gray level test file uploaded by the user in a database corresponding to the server;
and updating the gray test files in the database into the cache middleware.
According to a second aspect of the present invention, there is disclosed a gradation issuance apparatus applied to a server, the apparatus comprising:
the terminal comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a target request sent by a first application program APP in the terminal, the target request is used for requesting a gray test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP;
a determining module, configured to determine whether the target request is a legal request according to the identifier of the first APP;
a first obtaining module, configured to, if a determination result of the determining module is yes, obtain, according to a version number of the second APP, a grayscale test file of the second APP from a cache middleware corresponding to the server, where the cache middleware stores the grayscale test file of at least one APP;
and the release module is used for providing the gray test file of the second APP for the first APP.
Optionally, as an embodiment, the determining module includes:
and the first determining submodule is used for determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
Optionally, as an embodiment, the cache middleware further stores an upper limit value of an issued quantity and an issued quantity of the gray scale test file of the second APP;
the device further comprises:
the second obtaining module is used for obtaining the upper limit value of the issued quantity and the issued quantity of the gray test file of the second APP from the cache middleware according to the version number of the second APP;
the publishing module comprises:
the second determining submodule is used for determining whether the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP;
and the first issuing submodule is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the second determining submodule is positive.
Optionally, as an embodiment, the cache middleware further stores an effective duration of the gray scale test file of the second APP;
the device further comprises:
a third obtaining module, configured to obtain, from the cache middleware, an effective duration of the gray scale test file of the second APP according to the version number of the second APP;
the publishing module comprises:
a third determining submodule, configured to determine whether the online time of the gray scale test file of the second APP does not reach the effective time of the gray scale test file of the second APP;
and the second issuing sub-module is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the third determining sub-module is yes.
Optionally, as an embodiment, the apparatus further includes: an update module that, where,
the update module includes:
the receiving submodule is used for receiving the gray level test file uploaded by a user;
the storage submodule is used for storing the gray test file uploaded by the user in a database corresponding to the server;
and the updating submodule is used for updating the gray test files in the database into the cache middleware.
According to a third aspect of the present invention, there is disclosed a server comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the gray publishing method of the first aspect.
According to a fourth aspect of the present invention, a computer-readable storage medium is disclosed, having stored thereon a computer program, which when executed by a processor, performs the steps in the gray scale publishing method of the first aspect.
In the embodiment of the invention, after receiving the target request from the terminal, whether the target request is a legal request can be determined according to the APP identification carried in the target request, and if the target request is a legal request, the corresponding APP gray-scale test file is obtained from the cache middleware corresponding to the server according to the APP version number carried in the target request and is provided for the terminal. Compared with the prior art, the embodiment of the invention can store the gray test file of the APP in the cache middleware, the cache middleware provides the gray test file of the APP to the terminal, and the cache middleware can bear a large number of concurrent requests, so that the efficiency of the whole APP gray release process can be improved. In addition, the source of the target request is judged based on the APP identification in the target request, and the malicious request gray level test file of an unknown calling party can be shielded, so that the aim of ensuring the data security is fulfilled.
Drawings
FIG. 1 is a flow diagram of a gray scale publishing method of one embodiment of the invention;
FIG. 2 is a flow chart of a gray scale publishing method of another embodiment of the present invention;
FIG. 3 is a signaling interaction diagram of a gray scale publishing method of an embodiment of the invention;
fig. 4 is a schematic structural diagram of a gray scale issuing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
The gray release is a smooth transition mode when the APP new version is released, a small part of users are taken to be upgraded to the new version, and if no problem is found in the gray period, the range is expanded to finally cover all the users. The gray scale can ensure the stability of the whole system, the problem exposed during the gray scale period can be solved in time, and the influence range of the problem is reduced. At present, although the prior art can realize APP gray release to a certain extent, since it mainly provides a gray test file to the terminal through the database, it cannot bear a large number of concurrent APP gray test file acquisition requests, resulting in lower efficiency of the whole APP gray release process.
In order to solve the above technical problem, embodiments of the present invention provide a grayscale distribution method, apparatus, server, and storage medium.
First, a gray scale distribution method according to an embodiment of the present invention will be described below.
Fig. 1 is a flowchart of a gray release method according to an embodiment of the present invention, which is executed by a server, as shown in fig. 1, and the method may include the following steps: step 101, step 102, step 103 and step 104, wherein,
in step 101, a target request sent by a first APP in a terminal is received, where the target request is used to request a gray-scale test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP.
In the embodiment of the invention, the terminal can be a smart phone, a tablet computer, a personal digital assistant and the like.
In the embodiment of the present invention, the initiation timing of the target request may be handed to the client APP in the terminal, that is, when the client APP is the first APP, the timing of initiating the target request may be determined by the first APP, for example, the target request may be sent to the server when the first APP is started, or the target request may be sent to the server at intervals of a certain duration (for example, 7 days at intervals).
In the embodiment of the invention, when a first APP sends a target request to a server, an APP identifier (namely, an identifier of the first APP) of the first APP needs to be added into the target request, so that the server can judge the source of the target request, namely, the server judges whether the APP actually initiating the target request has permission to obtain a gray test file of a second APP, and thus, on one hand, the gray test file of the second APP can be prevented from being maliciously obtained, so that the safety of data is ensured; on the other hand, the gray level test file of the second APP can be provided for a real test user instead of a malicious user, so that the accuracy of the issued quantity of the second APP is guaranteed.
In the embodiment of the present invention, when a first APP sends a target request to a server, an APP version number (i.e., a version number of a second APP) corresponding to a requested gray-scale test file needs to be accessed in the target request, so that the server obtains the corresponding gray-scale test file according to the APP version number.
In the embodiment of the invention, the gray test file is a file corresponding to the function of updating the APP version.
In step 102, determining whether the target request is a legal request according to the identifier of the first APP; if so, go to step 103, otherwise filter the target request.
In the embodiment of the invention, if the target request is a legal request, the first APP is indicated to have the permission to acquire the gray test file of the second APP; and if the target request is an illegal request, indicating that the first APP does not have the right to acquire the gray test file of the second APP.
In an embodiment provided by the present invention, if the first APP and the second APP are the same client APP, it is determined that the target request is a legal request, that is, for one client APP, the test files of the versions of the client APP can only be provided to the client APP, but not to other client APPs, at this time, step 102 may specifically include the following steps:
and determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, otherwise, determining that the target request is an illegal request.
In one example, the second APP is a 58 co-cities ios client, and if the first APP sending the target request is also a 58 co-cities ios client, the target request is determined to be a legitimate request.
In another embodiment provided by the present invention, considering that a same company usually develops a plurality of client APPs, in this case, a white list may be generated based on the plurality of client APPs developed by the company, where the white list records an identifier of the developed client APPs, and if the first APP is in the white list, it is determined that the target request is a legal request, and at this time, the step 102 may specifically include the following steps:
and determining whether the identifier of the first APP is in a preset white list, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
In an example, the second APP is a 58 city ios client, the preset white list includes an identifier of the 58 city ios client and an identifier of the catch-up network ios client, and if the first APP sending the target request is the catch-up network ios client, it is determined that the target request is a legal request.
In step 103, according to the version number of the second APP, a gray test file of the second APP is obtained from a cache middleware corresponding to the server, where at least one gray test file of the APP is stored in the cache middleware.
In the embodiment of the invention, the gray test file of the APP is stored in the cache middleware of the server, and the server can read the gray test file of the APP from the cache middleware and provide the read gray test file to a requester so as to avoid a large number of requests for connecting the database and reduce the pressure of the database.
In the embodiment of the present invention, the cache middleware may be a Redis.
In the embodiment of the invention, the APP gray test file in the cache middleware can be from a database of a server or from a test file programmer. When the APP gray test file in the cache middleware comes from the database of the server, the APP gray test file in the database can be synchronized into the cache middleware at intervals of a period of time.
In an embodiment provided by the present invention, considering that the version of APP is updated iteratively more quickly, the gray test file in the cache middleware needs to be updated in time, and in order to avoid losing the gray test file of APP, the APP test file uploaded by a programmer may be first stored in the database, and then updated in the cache middleware synchronously by the database, at this time, the embodiment shown in fig. 1 may further include the following steps: updating a gray level test file in the cache middleware; the updating of the gray test file in the cache middleware may specifically include the following steps:
receiving a gray level test file uploaded by a user; storing the gray level test file uploaded by the user in a database corresponding to the server; and updating the gray test file in the database into the cache middleware.
In the embodiment of the invention, when receiving an APP gray test file uploaded by a user, a server firstly judges whether the database stores the related data of the APP corresponding to the gray test file, if so, the server executes data updating operation based on the APP gray test file uploaded by the user, and if not, the server executes data adding operation based on the APP gray test file uploaded by the user.
In step 104, the gray scale test file of the second APP is provided to the first APP.
In the embodiment of the present invention, when the gray scale test file of the second APP is provided for the first APP, the gray scale test file of the second APP may be directly sent to the first APP, or an access address (e.g. URL) of the gray scale test file of the second APP may also be sent to the first APP, and the gray scale test file of the second APP is downloaded by the first APP according to the access address.
As can be seen from the foregoing embodiment, in this embodiment, after receiving a target request from a terminal, a server may determine whether the target request is a legal request according to an APP identifier carried in the target request, and if the target request is a legal request, obtain a corresponding APP grayscale test file from a cache middleware corresponding to the server according to an APP version number carried in the target request, and provide the corresponding APP grayscale test file to the terminal. Compared with the prior art, the embodiment of the invention can store the gray test file of the APP in the cache middleware, the cache middleware provides the gray test file of the APP to the terminal, and the cache middleware can bear a large number of concurrent requests, so that the efficiency of the whole APP gray release process can be improved. In addition, the source of the target request is judged based on the APP identification in the target request, and the malicious request gray level test file of an unknown calling party can be shielded, so that the aim of ensuring the data security is fulfilled.
Considering that the gray release is usually limited to a part of users, in order to ensure the controllability of the issuing amount of the APP gray test file, sense the activity of the users, and improve the gray hit rate, in this case, in an embodiment provided by the present invention, the cache middleware stores, in addition to the gray test file of the second APP, an upper limit value of the issuing amount and an issued amount of the gray test file of the second APP; the following steps can also be added on the basis of the embodiment shown in fig. 1:
acquiring an upper limit value of the issued quantity and the issued quantity of the gray scale test file of the second APP from the cache middleware according to the version number of the second APP;
correspondingly, the step 104 may specifically include the following steps (not shown in the figure): step 1041 and step 1042, wherein,
in step 1041, determining whether the issued quantity of the gray scale test files of the second APP has not reached the upper limit value of the issued quantity of the gray scale test files of the second APP;
in step 1042, if the issued number of the gray scale test files of the second APP does not reach the upper limit value of the issued number of the gray scale test files of the second APP, the gray scale test files of the second APP are provided to the first APP.
In the embodiment of the invention, if the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP, the issued quantity of the gray test files of the second APP has the remaining quota, and at this time, the server can provide the gray test files of the second APP for the first APP.
In the embodiment of the invention, after the server provides the gray test file of the second APP to the first APP, the issued number of the gray test files of the second APP stored in the cache is updated, namely, 1 is added.
Considering that the gray test file usually has a certain life cycle, in order to ensure that the user downloads the latest version of the gray application and avoid unnecessary user loss, in another embodiment provided by the present invention, the cache middleware stores the effective duration of the gray test file of the second APP in addition to the gray test file of the second APP; the following steps can also be added on the basis of the embodiment shown in fig. 1:
according to the version number of the second APP, obtaining the effective duration of the gray test file of the second APP from the cache middleware;
correspondingly, the step 104 may specifically include the following steps (not shown in the figure): step 1043 and step 1044, wherein,
in step 1043, determining whether the online duration of the gray scale test file of the second APP does not reach the effective duration of the gray scale test file of the second APP;
in step 1044, if the online duration of the gray scale test file of the second APP does not reach the effective duration of the gray scale test file of the second APP, the gray scale test file of the second APP is provided to the first APP.
In the embodiment of the present invention, if the online time of the gray scale test file of the second APP does not reach the effective time of the gray scale test file of the second APP, it indicates that the gray scale test file of the second APP is still within the life cycle (i.e., still effective), and at this time, the server may provide the gray scale test file of the second APP to the first APP.
Fig. 2 is a flowchart of a gray scale publishing method according to another embodiment of the present invention, in an embodiment of the present invention, in order to improve controllability of an issuing amount of an APP gray scale test file in a gray scale publishing process and ensure that a user downloads a latest version of gray scale application, and avoid unnecessary user loss, in addition to a gray scale test file of a second APP, a cache middleware of a server further stores an upper limit value of an issuing amount, an issued number, and an effective duration of the gray scale test file of the second APP, and at this time, as shown in fig. 2, the method may include the following steps: step 201, step 202, step 203 and step 204, wherein,
in step 201, a target request sent by a first APP in a terminal is received, where the target request is used to request a gray-scale test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP.
In the embodiment of the invention, the identifier of the first APP is used for the server to determine the legality of the source of the target request, the version number of the second APP is used for the server to obtain the gray test file of the second APP, and the gray test file is a file corresponding to the function of updating the version of the APP.
In step 202, it is determined whether the identifier of the first APP is the identifier of the second APP, and if so, it is determined that the target request is a legal request, otherwise, it is determined that the target request is an illegal request.
In the embodiment of the invention, if the identifier of the first APP is the identifier of the second APP, the first APP and the second APP are the same client side APP, and at this time, the target request is determined to be a legal request; if the identifier of the first APP is not the identifier of the second APP, it is indicated that the first APP and the second APP are different client side APPs, and at this time, the target request is determined to be an illegal request.
In step 203, when the target request is a legal request, the gray scale test file of the second APP, the upper limit value of the issued amount, the issued amount and the effective duration of the gray scale test file of the second APP are obtained from the cache middleware corresponding to the server according to the version number of the second APP.
In the embodiment of the invention, the upper limit value of the issued quantity, the issued quantity and the effective duration of the APP gray test file in the cache middleware and the gray test file of the second APP can be from a database of a server or from a test file programmer. When the APP gray scale test file in the cache middleware, the upper limit value of the issued amount, the issued amount and the effective duration of the gray scale test file of the second APP are from the database of the server, the APP gray scale test file in the database, the upper limit value of the issued amount of the gray scale test file of the second APP, the issued amount and the effective duration can be synchronized into the cache middleware at intervals of a period of duration.
In step 204, under the condition that the issued number of the second APP gray scale test files does not reach the upper limit value of the issued number of the second APP gray scale test files and the on-line duration of the second APP gray scale test files does not reach the effective duration of the second APP gray scale test files, the second APP gray scale test files are provided for the first APP.
In the embodiment of the invention, if the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP and the online duration of the gray test files of the second APP does not reach the effective duration of the gray test files of the second APP, the fact that the gray test files of the second APP are still in the life cycle and the issued quantity has the remaining denomination is shown, and at this time, the server can provide the gray test files of the second APP for the first APP.
In the embodiment of the invention, after the server provides the gray test file of the second APP to the first APP, the issued number of the gray test files of the second APP stored in the cache is updated, namely, 1 is added.
It can be seen from the above embodiment that, in this embodiment, after receiving a target request from a terminal, a server may determine whether the target request is a legal request according to an APP identifier carried in the target request, and if the target request is a legal request, obtain, according to an APP version number carried in the target request, a corresponding APP grayscale test file, an upper limit value of an issued amount, and an effective duration of the grayscale test file of a second APP from a cache middleware corresponding to the server, and if the grayscale test file of the second APP is still within a life cycle and the issued amount has a remaining denomination, provide the corresponding APP grayscale test file to the terminal. Compared with the prior art, the embodiment of the invention can store the gray test file of the APP in the cache middleware, the cache middleware provides the gray test file of the APP to the terminal, and the cache middleware can bear a large number of concurrent requests, so that the efficiency of the whole APP gray release process can be improved. In addition, the source of the target request is judged based on the APP identification in the target request, and the malicious request gray level test file of an unknown calling party can be shielded, so that the aim of ensuring the data security is fulfilled. In addition, the APP gray scale test file is issued according to the upper limit value of the issued amount, the issued amount and the effective duration of the gray scale test file, so that the controllability of the issued amount of the APP gray scale test file in the gray scale issuing process can be improved, a user can be ensured to download the latest version of gray scale application, and unnecessary user loss is avoided.
In order to facilitate the overall understanding of the technical solution of the present invention, the description is made with reference to a signaling interaction diagram for information interaction between a server and a terminal shown in fig. 3. Fig. 3 is a signaling interaction diagram of a gray scale publishing method according to an embodiment of the present invention, as shown in fig. 3, the signaling interaction diagram includes: the system comprises a server and a terminal, wherein a first APP is installed in the terminal,
in step 301, a first APP starts;
in step 302, determining whether an APP version update triggering condition is satisfied; for example, whether it is more than 7 days from the last update;
in step 303, if the trigger condition is met, sending a target request carrying the identifier of the first APP and the version number of the second APP to the server;
in step 304, after receiving the target request, the server determines whether the target request is a legal request according to the identifier of the first APP;
in step 305, if the target request is a legal request, obtaining a gray-scale test file of the second APP, an upper limit value of a delivery amount of the gray-scale test file of the second APP, a delivered amount and an effective duration from the cache middleware according to a version number of the second APP;
in step 306, if the issued number of the second APP gray scale test files does not reach the upper limit value of the issued number of the second APP gray scale test files and the online duration of the second APP gray scale test files does not reach the effective duration of the second APP gray scale test files, providing the second APP gray scale test files to the first APP;
in step 307, a gray test file of a second APP is obtained;
in step 308, a gray scale test file for the second APP is run.
Fig. 4 is a schematic structural diagram of a gray scale issuing apparatus according to an embodiment of the present invention, which is applied to a server, and as shown in fig. 4, the gray scale issuing apparatus 400 may include: a receiving module 401, a determining module 402, a first obtaining module 403 and a publishing module 404, wherein,
a receiving module 401, configured to receive a target request sent by a first application APP in a terminal, where the target request is used to request a gray test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP;
a determining module 402, configured to determine whether the target request is a legal request according to the identifier of the first APP;
a first obtaining module 403, configured to, if a determination result of the determining module 402 is yes, obtain, according to a version number of the second APP, a grayscale test file of the second APP from a cache middleware corresponding to the server, where the cache middleware stores at least one grayscale test file of an APP;
an issuing module 404, configured to provide the gray scale test file of the second APP to the first APP.
As can be seen from the foregoing embodiment, in this embodiment, after receiving a target request from a terminal, whether the target request is a legal request may be determined according to an APP identifier carried in the target request, and if the target request is a legal request, a corresponding APP grayscale test file is obtained from a cache middleware corresponding to a server according to an APP version number carried in the target request, and is provided to the terminal. Compared with the prior art, the embodiment of the invention can store the gray test file of the APP in the cache middleware, the cache middleware provides the gray test file of the APP to the terminal, and the cache middleware can bear a large number of concurrent requests, so that the efficiency of the whole APP gray release process can be improved. In addition, the source of the target request is judged based on the APP identification in the target request, and the malicious request gray level test file of an unknown calling party can be shielded, so that the aim of ensuring the data security is fulfilled.
Optionally, as an embodiment, the determining module 402 may include:
and the first determining submodule is used for determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
Optionally, as an embodiment, the cache middleware further stores an upper limit value of an issued quantity and an issued quantity of the gray scale test file of the second APP;
the gray scale issuing apparatus 400 may further include:
the second obtaining module is used for obtaining the upper limit value of the issued quantity and the issued quantity of the gray test file of the second APP from the cache middleware according to the version number of the second APP;
the publishing module 404 may include:
the second determining submodule is used for determining whether the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP;
and the first issuing submodule is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the second determining submodule is positive.
Optionally, as an embodiment, the cache middleware further stores an effective duration of the gray scale test file of the second APP;
the gray scale issuing apparatus 400 may further include:
a third obtaining module, configured to obtain, from the cache middleware, an effective duration of the gray scale test file of the second APP according to the version number of the second APP;
the publishing module 404 may include:
a third determining submodule, configured to determine whether the online time of the gray scale test file of the second APP does not reach the effective time of the gray scale test file of the second APP;
and the second issuing sub-module is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the third determining sub-module is yes.
Optionally, as an embodiment, the grayscale issuing apparatus 400 may further include: an update module that, where,
the update module may include:
the receiving submodule is used for receiving the gray level test file uploaded by a user;
the storage submodule is used for storing the gray test file uploaded by the user in a database corresponding to the server;
and the updating submodule is used for updating the gray test files in the database into the cache middleware.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
According to an embodiment of the present invention, there is also provided a server including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the gray scale publishing method as described in any of the above embodiments.
According to an embodiment of the present invention, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the gray scale distribution method according to any one of the above-mentioned embodiments.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The gray scale publishing method, the gray scale publishing device, the server and the storage medium provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A gray scale release method is applied to a server, and is characterized by comprising the following steps:
receiving a target request sent by a first application program APP in a terminal, wherein the target request is used for requesting a gray test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP;
determining whether the target request is a legal request or not according to the identifier of the first APP;
if the target request is a legal request, obtaining a gray test file of the second APP from a cache middleware corresponding to the server according to the version number of the second APP, wherein the cache middleware stores at least one gray test file of the APP;
and providing the gray test file of the second APP to the first APP.
2. The method of claim 1, wherein said determining whether the target request is a legitimate request according to the identity of the first APP comprises:
and determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
3. The method according to claim 1, wherein the cache middleware further stores an upper limit value of an issued amount and an issued amount of the gray scale test file of the second APP;
the method further comprises the following steps:
acquiring an upper limit value and an issued quantity of the gray scale test files of the second APP from the cache middleware according to the version number of the second APP;
providing the gray scale test file of the second APP to the first APP comprises:
determining whether the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP;
and if so, providing the gray test file of the second APP to the first APP.
4. The method according to claim 1, wherein the cache middleware further stores an effective duration of the gray test file of the second APP;
the method further comprises the following steps:
according to the version number of the second APP, obtaining the effective duration of the gray scale test file of the second APP from the cache middleware;
providing the gray scale test file of the second APP to the first APP comprises:
determining whether the online time length of the gray scale test file of the second APP does not reach the effective time length of the gray scale test file of the second APP;
and if so, providing the gray test file of the second APP to the first APP.
5. The method of claim 1, further comprising: updating the gray level test file in the cache middleware;
wherein the updating the gray test file in the cache middleware comprises:
receiving a gray level test file uploaded by a user;
storing the gray level test file uploaded by the user in a database corresponding to the server;
and updating the gray test files in the database into the cache middleware.
6. A gray scale issuing apparatus applied to a server, the apparatus comprising:
the terminal comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a target request sent by a first application program APP in the terminal, the target request is used for requesting a gray test file of a second APP, and the target request carries an identifier of the first APP and a version number of the second APP;
a determining module, configured to determine whether the target request is a legal request according to the identifier of the first APP;
a first obtaining module, configured to, if a determination result of the determining module is yes, obtain, according to a version number of the second APP, a grayscale test file of the second APP from a cache middleware corresponding to the server, where the cache middleware stores the grayscale test file of at least one APP;
and the release module is used for providing the gray test file of the second APP for the first APP.
7. The apparatus of claim 6, wherein the determining module comprises:
and the first determining submodule is used for determining whether the identifier of the first APP is the identifier of the second APP, if so, determining that the target request is a legal request, and otherwise, determining that the target request is an illegal request.
8. The apparatus according to claim 6, wherein the cache middleware further stores therein an upper limit value of an issued amount and an issued amount of the gray scale test file of the second APP;
the device further comprises:
the second obtaining module is used for obtaining the upper limit value of the issued quantity and the issued quantity of the gray test file of the second APP from the cache middleware according to the version number of the second APP;
the publishing module comprises:
the second determining submodule is used for determining whether the issued quantity of the gray test files of the second APP does not reach the upper limit value of the issued quantity of the gray test files of the second APP;
and the first issuing submodule is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the second determining submodule is positive.
9. The apparatus according to claim 6, wherein the cache middleware further stores therein an effective duration of the gray test file of the second APP;
the device further comprises:
a third obtaining module, configured to obtain, from the cache middleware, an effective duration of the gray scale test file of the second APP according to the version number of the second APP;
the publishing module comprises:
a third determining submodule, configured to determine whether the online time of the gray scale test file of the second APP does not reach the effective time of the gray scale test file of the second APP;
and the second issuing sub-module is used for providing the gray test file of the second APP to the first APP under the condition that the determination result of the third determining sub-module is yes.
10. The apparatus of claim 6, further comprising: an update module that, where,
the update module includes:
the receiving submodule is used for receiving the gray level test file uploaded by a user;
the storage submodule is used for storing the gray test file uploaded by the user in a database corresponding to the server;
and the updating submodule is used for updating the gray test files in the database into the cache middleware.
11. A server, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the gray scale publishing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps in the gray scale distribution method according to any one of claims 1 to 5.
CN202010345255.7A 2020-04-27 2020-04-27 Gray scale distribution method, device, server and storage medium Pending CN111679966A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010345255.7A CN111679966A (en) 2020-04-27 2020-04-27 Gray scale distribution method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010345255.7A CN111679966A (en) 2020-04-27 2020-04-27 Gray scale distribution method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN111679966A true CN111679966A (en) 2020-09-18

Family

ID=72433837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010345255.7A Pending CN111679966A (en) 2020-04-27 2020-04-27 Gray scale distribution method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111679966A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296911A (en) * 2021-05-24 2021-08-24 北京京东振世信息技术有限公司 Cluster calling method, cluster calling device, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266158A1 (en) * 2011-04-12 2012-10-18 Vmware, Inc. Release management system for a multi-node application
WO2015039413A1 (en) * 2013-09-18 2015-03-26 国云科技股份有限公司 Method for releasing large linux software package
CN106648562A (en) * 2015-10-29 2017-05-10 腾讯科技(深圳)有限公司 Version updating method and device
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
CN109558162A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Application issued method, apparatus, computer equipment and storage medium
CN109597643A (en) * 2018-11-27 2019-04-09 平安科技(深圳)有限公司 Using gray scale dissemination method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120266158A1 (en) * 2011-04-12 2012-10-18 Vmware, Inc. Release management system for a multi-node application
WO2015039413A1 (en) * 2013-09-18 2015-03-26 国云科技股份有限公司 Method for releasing large linux software package
CN106648562A (en) * 2015-10-29 2017-05-10 腾讯科技(深圳)有限公司 Version updating method and device
CN109558162A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Application issued method, apparatus, computer equipment and storage medium
CN109376322A (en) * 2018-09-07 2019-02-22 平安科技(深圳)有限公司 A kind of grayscale version page access method, apparatus, computer equipment and computer storage medium
CN109597643A (en) * 2018-11-27 2019-04-09 平安科技(深圳)有限公司 Using gray scale dissemination method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296911A (en) * 2021-05-24 2021-08-24 北京京东振世信息技术有限公司 Cluster calling method, cluster calling device, electronic equipment and readable storage medium
CN113296911B (en) * 2021-05-24 2023-09-22 北京京东振世信息技术有限公司 Cluster calling method, cluster calling device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110058873B (en) Application page updating method, device, equipment and storage medium
KR102600025B1 (en) Distributing shaders between client machines for precaching
KR102087478B1 (en) Method and apparatus of downloading and installing a client
JP2021504832A (en) Model training system and method and storage medium
KR20190067194A (en) Methods, devices, and servers for account login
CN109445827B (en) Game updating method and device, electronic equipment and storage medium
CN108874426B (en) Application program updating method and device and readable storage medium
CN111679966A (en) Gray scale distribution method, device, server and storage medium
CN107122663B (en) Injection attack detection method and device
CN113821307B (en) Method, device and equipment for quickly importing virtual machine images
CN105912357B (en) Starting method and device of hybrid application
CN110874445A (en) Webpage loading method, client and business service center
CN105744511B (en) Android system adaptation module dynamic updating method, client and server
CN115174158B (en) Cloud product configuration checking method based on multi-cloud management platform
CN111104685A (en) Dynamic updating method and device for two-dimensional code
CN113110849A (en) Loading resources on demand
CN110719262B (en) Data processing method, device and storage medium
CN110008269B (en) Data reflow method, device, equipment and system
CN110830537B (en) Page processing method and device
CN115333936A (en) Method, device, medium and equipment for switching back source strategy
CN109299117B (en) Data request processing method and device, storage medium and processor
CN110569088A (en) client plug-in management method and device, electronic equipment and storage medium
CN112866272B (en) Anti-theft chain management and control method of cloud platform, downloading platform and equipment
CN110806935A (en) Application program construction method, device and system
CN115022096B (en) Method and device for downloading software

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