A method and device for grayscale release of software products

By extracting the software product ID as a grayscale judgment field in the HTTP publishing request, looking up the grayscale rules and adding corresponding flags, the problem of grayscale release under the third-party Internet is solved, and a stable and risk-controllable release environment for software products is achieved. , adapt to a wider range of scenarios.

CN111949313BActive Publication Date: 2024-11-05INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010820414.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-14
Publication Date
2024-11-05
Estimated Expiration
2040-08-14

AI Technical Summary

Technical Problem

The existing technology is difficult to realize the grayscale release of software products in the third-party open Internet scenario, mainly because the requesting party and the service party cannot interact effectively, and the information of HTTP cookies or HTTP headers cannot be decrypted and obtained on the network load balancing device.

Method used

By judging the grayscale flag information in the HTTP publishing request, if it is missing, extract the software product ID as the grayscale judgment field, find the grayscale rules in the information database, add positive or negative grayscale flags, and respond to the message by redirecting the response message Implement grayscale release.

Benefits of technology

In the third-party Internet interaction scenario, a grayscale release solution for software products is provided, which improves the comprehensiveness and stability of releases and lays a solid foundation for product marketing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111949313B_ABST
    Figure CN111949313B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for grayscale release of software products, which can be used in the financial field or other technical fields. The method includes: judging whether the acquired HTTP release request contains grayscale flag information; extracting the grayscale judgment field in the HTTP release request that does not contain grayscale flag information according to a preset rule; the grayscale judgment field includes: software product ID; determining the grayscale status of the HTTP release request that does not contain grayscale flag information according to the grayscale judgment field; and releasing the software product according to the grayscale status of the HTTP release request. This application proposes a grayscale judgment mechanism based on the HTTP request line, and solves the problem of invalid use of HTTP cookies or HTTP headers for grayscale judgment by Internet third parties through a request redirection strategy, so that the adaptation scenario of grayscale release of software products is more comprehensive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software technology, and specifically, relates to a method and device for grayscale release of a software product. Background Art

[0002] At present, in the grayscale release architecture of software products in the industry, the key is to identify whether the current HTTP release request belongs to the grayscale range. The current mainstream approach that takes efficiency into consideration is to first place a grayscale flag (isGrayFlag) in the HTTP cookie or HTTP header by the requester, and then forward it to the grayscale or non-grayscale node for processing through the grayscale routing module of the network load balancing device.

[0003] However, this method has three prerequisites. First, the requester knows whether his current request is a grayscale request, otherwise the grayscale mark cannot be sent; second, the requester and the service provider belong to the same management system and interact in the intranet environment (such as the internal systems in the same company accessing each other). Otherwise, the above method does not need to be effectively executed, especially in the case of a third-party open Internet. The service provider cannot effectively require the requester to completely modify and send the grayscale mark according to its own requirements, even if the requester knows whether his current request is a grayscale request; third, if the transmission is through the Internet, the relevant information of the HTTP cookie or HTTP header based on the security specification will be encrypted and transmitted by the application, and the decryption is generally processed by the application node. Therefore, when the request passes through the network load balancing device, it is impossible to obtain the corresponding transaction data and perform grayscale routing. Therefore, it is currently impossible to implement grayscale release of software products in the case of a third-party open Internet. Summary of the invention

[0004] The present application provides a method and device for grayscale release of a software product, so as to at least solve the problem that grayscale release can only be achieved by interacting with the service provider in an intranet environment.

[0005] According to one aspect of the present application, a method for grayscale release of a software product is provided, comprising:

[0006] Determine whether the obtained HTTP publishing request contains grayscale flag information;

[0007] Extracting the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to the preset rules; the grayscale judgment field includes: software product ID;

[0008] Determine the grayscale status of the HTTP publishing request that does not contain grayscale flag information according to the grayscale judgment field;

[0009] Release the software product based on the grayscale status of the HTTP release request.

[0010] In one embodiment, determining the grayscale status of an HTTP publishing request that does not include grayscale flag information according to the grayscale determination field includes:

[0011] According to the grayscale judgment field, the corresponding grayscale rule information is searched from the information base; the grayscale rule information is pre-stored in the information base;

[0012] Find out whether the grayscale rule information contains the content of the grayscale judgment field;

[0013] If yes, then add a positive grayscale flag to the HTTP post request, otherwise, add a negative grayscale flag to the HTTP post request.

[0014] In one embodiment, publishing a software product according to the grayscale status of an HTTP publishing request includes:

[0015] Get the ID of the HTTP post request;

[0016] The response message corresponding to the ID is returned to the requester by redirection for product release. The response message includes the grayscale flag of the HTTP release request.

[0017] In one embodiment, the method for grayscale release of a software product further includes:

[0018] When the acquired HTTP publishing request contains grayscale flag information, the software product corresponding to the HTTP publishing request is grayscale published.

[0019] According to another aspect of the present application, there is also provided a device for grayscale release of a software product, including:

[0020] A grayscale flag determination unit, used to determine whether the acquired HTTP publishing request contains grayscale flag information;

[0021] The grayscale judgment field extraction unit is used to extract the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule; the grayscale judgment field includes: software product ID;

[0022] A grayscale state determination unit, used to determine the grayscale state of the HTTP publishing request that does not contain grayscale flag information according to the grayscale judgment field;

[0023] The product release unit is used to release the software product according to the grayscale status of the HTTP release request.

[0024] In one embodiment, the gray state determining unit includes:

[0025] The grayscale rule information extraction module searches for the corresponding grayscale rule information from the information base according to the grayscale judgment field; the grayscale rule information is pre-stored in the information base;

[0026] A matching query module is used to find out whether the grayscale rule information contains the content of the grayscale judgment field;

[0027] The grayscale status marking module is used to add a positive grayscale mark to the HTTP publishing request if yes, and to add a negative grayscale mark to the HTTP publishing request otherwise.

[0028] In one embodiment, the product release unit includes:

[0029] ID acquisition module, used to obtain the ID of the HTTP publishing request;

[0030] The response returning module is used to return the response message corresponding to the ID to the requester for product release by redirection. The response message includes the grayscale mark of the HTTP release request.

[0031] In one embodiment, the device for grayscale release of a software product further includes:

[0032] The publishing module is used to perform grayscale publishing on the software product corresponding to the HTTP publishing request when the obtained HTTP publishing request contains grayscale flag information.

[0033] This application provides a solution for grayscale release of software products in third-party Internet interaction scenarios. It proposes a grayscale judgment mechanism based on the HTTP request line, and solves the problem of invalid use of HTTP cookies or HTTP headers by Internet third parties for grayscale judgment through request redirection strategies, making the adaptation scenarios of grayscale release of software products more comprehensive. This solution improves the comprehensiveness of grayscale release of software products, provides a stable and risk-controlled environment for the release of software products, enables products to be released quickly and safely, and lays a solid foundation for the comprehensive promotion of products in the market. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 A flowchart of a method for grayscale release of a software product provided in this application.

[0036] Figure 2 This is a flowchart of determining the grayscale status of a release request based on a grayscale judgment field in an embodiment of the present application.

[0037] Figure 3 This is a flowchart for publishing a software product according to a grayscale state in an embodiment of the present application.

[0038] Figure 4 This is a structural block diagram of a device for grayscale release of a software product provided in this application.

[0039] Figure 5 4 is a structural block diagram of a grayscale state determination unit in an embodiment of the present application.

[0040] Figure 6 This is a structural block diagram of the product release unit in an embodiment of the present application.

[0041] Figure 7 This is a specific implementation of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] Based on the problems existing in the background technology, a solution is needed to meet the demand for grayscale release of software products in third-party Internet interaction scenarios. Based on this, the present application provides a method for grayscale release of software products, such as Figure 1 As shown, including:

[0044] S101: Determine whether the acquired HTTP publishing request contains grayscale flag information.

[0045] In a specific embodiment, a third-party system (requester) uploads a product publishing request via HTTP protocol, and then determines whether there is grayscale flag information in the publishing request line. If there is grayscale flag information, the product can be directly published in grayscale.

[0046] S102: extracting the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule; the grayscale judgment field includes: a software product ID.

[0047] In a specific embodiment, a publishing request without grayscale flag information is subjected to a grayscale judgment again. First, the publishing request is initialized and assigned to a scheduling thread. Then, the scheduling thread sends the request message, parses the fields in the publishing request line according to preset configuration rules, extracts the field name and content used for grayscale judgment, such as APPID=XXX, and returns it to the scheduling thread.

[0048] S103: Determine the grayscale status of the HTTP publishing request that does not include grayscale flag information according to the grayscale judgment field.

[0049] In a specific embodiment, the grayscale status of the publishing request is determined according to the grayscale judgment field extracted in S102 in combination with the grayscale rule information stored in the information base, and the grayscale status includes: grayscale publishing and non-grayscale publishing.

[0050] S104: Publishing the software product according to the grayscale status of the HTTP publishing request.

[0051] In a specific embodiment, if the grayscale status of the release request is grayscale release, the software product is grayscale released. If the grayscale status of the release request is non-grayscale release, the software product is directly released without grayscale release.

[0052] In one embodiment, the grayscale status of the HTTP publishing request that does not include grayscale flag information is determined according to the grayscale judgment field, such as Figure 2 As shown, including:

[0053] S201: searching for corresponding grayscale rule information from an information base according to the grayscale judgment field; the grayscale rule information is pre-stored in the information base.

[0054] In a specific embodiment, assuming that the extracted grayscale judgment field is APPID=XXX, the grayscale rule information corresponding to the grayscale judgment field is retrieved from the information library, such as APPID grayscale whitelist information.

[0055] S202: Find whether the grayscale rule information contains the content of the grayscale judgment field.

[0056] In a specific embodiment, with respect to the grayscale judgment field APPID=XXX and the APPID grayscale whitelist information, if the extracted APPID is in the whitelist, the publishing request is considered to be a grayscale publishing, otherwise, it is a non-grayscale publishing request.

[0057] S203: If yes, add a positive grayscale flag to the HTTP publishing request; otherwise, add a negative grayscale flag to the HTTP publishing request.

[0058] In a specific embodiment, if the request is a grayscale release request, a grayscale flag of 1 is added to the request; if the request is not a grayscale release request, a grayscale flag of 0 is added to the request.

[0059] In one embodiment, the software product is published according to the grayscale status of the HTTP publishing request, such as Figure 3 As shown, including:

[0060] S301: Obtain the ID of the HTTP publishing request.

[0061] S302: Return the response message corresponding to the ID to the requester by redirection for product release. The response message includes a grayscale flag of the HTTP release request.

[0062] In a specific embodiment, the scheduling thread returns the grayscale flag to the response main thread, the main thread finds the corresponding request message ID, and returns the response message corresponding to this ID to the requester by redirection, so that the complete grayscale judgment process of an HTTP publishing request is completed.

[0063] In one embodiment, the method for grayscale release of a software product further includes:

[0064] When the acquired HTTP publishing request contains grayscale flag information, the software product corresponding to the HTTP publishing request is grayscale published.

[0065] Based on the same inventive concept, the embodiments of the present application also provide a device for grayscale release of a software product, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the device for grayscale release of a software product is similar to that of the method for grayscale release of a software product, the implementation of the device for grayscale release of a software product can refer to the implementation of the method for grayscale release of a software product, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0066] like Figure 4 As shown, the present application also provides a device for grayscale release of a software product, including:

[0067] A grayscale flag determination unit 401 is used to determine whether the acquired HTTP publishing request contains grayscale flag information;

[0068] The grayscale judgment field extraction unit 402 is used to extract the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule; the grayscale judgment field includes: software product ID;

[0069] A grayscale state determining unit 403, configured to determine the grayscale state of the HTTP publishing request that does not include grayscale flag information according to the grayscale determination field;

[0070] The product publishing unit 404 is used to publish the software product according to the grayscale status of the HTTP publishing request.

[0071] In one embodiment, if Figure 5 As shown, the gray state determining unit 403 includes:

[0072] Grayscale rule information extraction module 501 searches for corresponding grayscale rule information from an information base according to the grayscale judgment field; the grayscale rule information is pre-stored in the information base;

[0073] A matching query module 502 is used to find out whether the grayscale rule information contains the content of the grayscale judgment field;

[0074] The grayscale status marking module 503 is used to add a positive grayscale mark to the HTTP publishing request if yes, and to add a negative grayscale mark to the HTTP publishing request otherwise.

[0075] In one embodiment, if Figure 6 As shown, the product release unit 404 includes:

[0076] ID acquisition module 601, used to obtain the ID of the HTTP publishing request;

[0077] The response returning module 602 is used to return the response message corresponding to the ID to the requester by redirection for product release. The response message includes the grayscale mark of the HTTP release request.

[0078] In one embodiment, the device for grayscale release of a software product further includes:

[0079] The publishing module is used to perform grayscale publishing on the software product corresponding to the HTTP publishing request when the obtained HTTP publishing request contains grayscale flag information.

[0080] It should be noted that the method for grayscale release of software products provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The present invention does not limit the application field of the method for grayscale release of software products.

[0081] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0082] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0083] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0084] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0085] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

[0086] The embodiments of the present application also provide a specific implementation of an electronic device that can implement all the steps in the method in the above embodiments, see Figure 7 , the electronic device specifically includes the following contents:

[0087] Processor 701, memory 702, communication interface 703, bus 704 and non-volatile memory 705;

[0088] The processor 701, memory 702, and communication interface 703 communicate with each other via the bus 704;

[0089] The processor 701 is used to call the computer program in the memory 702 and the non-volatile memory 705. When the processor executes the computer program, all the steps in the method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0090] S101: Determine whether the acquired HTTP publishing request contains grayscale flag information.

[0091] S102: extracting the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule; the grayscale judgment field includes: a software product ID.

[0092] S103: Determine the grayscale status of the HTTP publishing request that does not include grayscale flag information according to the grayscale judgment field.

[0093] S104: Publishing the software product according to the grayscale status of the HTTP publishing request.

[0094] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps of the method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the method in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0095] S101: Determine whether the acquired HTTP publishing request contains grayscale flag information.

[0096] S102: extracting the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule; the grayscale judgment field includes: a software product ID.

[0097] S103: Determine the grayscale status of the HTTP publishing request that does not include grayscale flag information according to the grayscale judgment field.

[0098] S104: Publishing the software product according to the grayscale status of the HTTP publishing request.

[0099] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Although the embodiment of this specification provides the method operation steps described in the embodiment or flow chart, more or less operation steps can be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way of executing the order of many steps, and does not represent the only execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment). The term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same one or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The present invention is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the process and / or box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0100] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts refer to the partial description of the method embodiment. In the description of this specification, the description of the reference term "one embodiment", "a specific embodiment", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification.

[0101] In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradicting each other. The above is only an embodiment of the embodiment of this specification and is not intended to limit the embodiment of this specification. For those skilled in the art, the embodiment of this specification may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiment of this specification shall be included in the scope of the claims of the embodiment of this specification.

Claims

1. A method for grayscale release of a software product, characterized in that: include: Determine whether the obtained HTTP publishing request contains grayscale flag information; Extract the grayscale judgment field in the HTTP publishing request that does not contain grayscale flag information according to the preset rules; The grayscale judgment field includes: software product ID; Determine the grayscale status of the HTTP publishing request that does not include grayscale flag information according to the grayscale judgment field; Publishing the software product according to the grayscale status of the HTTP publishing request; The step of extracting the grayscale determination field in the HTTP publishing request that does not contain the grayscale flag information according to the preset rules includes: First, the HTTP publishing request is initialized and assigned to the scheduling thread. Then the scheduling thread sends the HTTP request message, parses the fields in the HTTP publishing request line according to the preset configuration rules, extracts the field name and content used for grayscale judgment, and then returns it to the scheduling thread; The step of determining the grayscale status of the HTTP publishing request that does not include grayscale flag information according to the grayscale judgment field includes: According to the grayscale judgment field, corresponding grayscale rule information is searched from the information base; the grayscale rule information is pre-stored in the information base; Find out whether the grayscale rule information contains the content of the grayscale judgment field; If yes, a positive grayscale flag is added to the HTTP publishing request; otherwise, a negative grayscale flag is added to the HTTP publishing request.

2. The method for grayscale release of a software product according to claim 1, characterized in that: The step of publishing the software product according to the grayscale status of the HTTP publishing request includes: Get the ID of the HTTP post request; The response message corresponding to the ID is returned to the requester by redirection for product release, and the response message includes the grayscale mark of the HTTP release request.

3. The method for grayscale release of a software product according to claim 1, characterized in that: Also includes: When the acquired HTTP publishing request contains grayscale flag information, the software product corresponding to the HTTP publishing request is grayscale published.

4. A device for grayscale release of a software product, characterized in that: include: A grayscale flag determination unit, used to determine whether the acquired HTTP publishing request contains grayscale flag information; A grayscale judgment field extraction unit, used to extract the grayscale judgment field in the HTTP publishing request that does not contain grayscale flag information according to a preset rule; The grayscale judgment field includes: software product ID; A grayscale state determining unit, configured to determine the grayscale state of the HTTP publishing request that does not contain grayscale flag information according to the grayscale judgment field; A product publishing unit, used to publish the software product according to the grayscale status of the HTTP publishing request; The grayscale judgment field extraction unit extracts the grayscale judgment field in the HTTP publishing request that does not contain the grayscale flag information according to a preset rule, including: First, the HTTP publishing request is initialized and assigned to the scheduling thread. Then the scheduling thread sends the HTTP request message, parses the fields in the HTTP publishing request line according to the preset configuration rules, extracts the field name and content used for grayscale judgment, and then returns it to the scheduling thread; The gray state determination unit comprises: A grayscale rule information extraction module searches for corresponding grayscale rule information from an information base according to the grayscale judgment field; the grayscale rule information is pre-stored in the information base; A matching query module, used for searching whether the grayscale rule information contains the content of the grayscale judgment field; The grayscale status marking module is used to add a positive grayscale mark to the HTTP publishing request if yes, and to add a negative grayscale mark to the HTTP publishing request otherwise.

5. The device for grayscale release of a software product according to claim 4, characterized in that: The product release unit comprises: ID acquisition module, used to obtain the ID of the HTTP publishing request; The response returning module is used to return the response message corresponding to the ID to the requesting party for product release by redirection, and the response message includes the grayscale mark of the HTTP release request.

6. The device for grayscale release of software products according to claim 5, characterized in that: Also includes: The publishing module is used to perform grayscale publishing on the software product corresponding to the HTTP publishing request when the obtained HTTP publishing request contains grayscale flag information.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for grayscale release of a software product described in any one of claims 1 to 3 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for grayscale release of a software product described in any one of claims 1 to 3 is implemented.