Business logic gray scale control method, device and equipment and storage medium

By uniformly adjusting and distributing gray-scale strategies at the management end, and then performing logical identification at the agent end, the problems of inconsistent gray-scale strategy management and high resource consumption in existing technologies are solved, achieving unified and efficient adjustment of gray-scale logic.

CN115480824BActive Publication Date: 2026-06-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2021-05-31
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing configuration file-based grayscale strategy management suffers from problems such as repetitive development of grayscale logic, inconsistent implementation, low timeliness of adjustments, and high resource consumption.

Method used

The gray-scale strategy is uniformly adjusted by the management end and distributed to the agent end for logic recognition. The agent end then sends the recognition results to the business server for control, thereby achieving unified management and recognition of gray-scale logic.

Benefits of technology

It improves the timeliness of gray-scale strategy adjustments, reduces system resource consumption, ensures the uniformity and consistency of gray-scale logic, and reduces resource consumption from redundant development and frequent configuration file management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115480824B_ABST
    Figure CN115480824B_ABST
Patent Text Reader

Abstract

The application provides a service logic gray scale control method and device, equipment and a storage medium, and the method comprises the following steps: receiving an adjusted gray scale policy sent by a management end, wherein the adjusted gray scale policy is obtained by adjusting the gray scale policy of a to-be-adjusted service in response to a gray scale policy adjustment instruction of the management end; the adjusted gray scale policy comprises a service gray scale parameter and at least one logic information of the to-be-adjusted service; any logic information represents the logic meaning of the to-be-adjusted service under a corresponding gray scale logic; performing logic identification on the corresponding gray scale logic based on the logic meaning corresponding to the service gray scale parameter and the at least one logic information, to obtain a corresponding gray scale logic identification result; and sending the gray scale logic identification result to a service server, so that the service server performs service logic gray scale control according to the gray scale logic identification result. The application is beneficial to the unity and consistency of the gray scale logic, and the timeliness of the gray scale policy generation is high, and the system resource consumption is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of Internet technology, specifically relating to a business logic grayscale control method, device, equipment, and storage medium. Background Technology

[0002] During the deployment of business logic functions, it is necessary to implement canary rollout control for certain functions. Canary rollout control is a method to control the gradual release of business logic functions. That is, after the business logic function is developed, it is not immediately implemented, but rather a certain percentage is released to observe whether the business logic function is normal, so as to avoid serious problems after the business logic function is launched.

[0003] Figure 1 This is a flowchart illustrating the process of grayscale control of business logic in existing technologies. For example... Figure 1 As shown, existing methods for canary deployment control of business logic typically manage it through configuration files for each business service and canary deployment configuration items for various business logic within those files. Each service responds to the relevant code logic written for each configuration item in its respective configuration file to perform canary deployment control logic. When subsequent configuration logic needs to be adjusted, each service responds to the modification operation for each configuration item in its respective configuration file, thereby adjusting the canary deployment logic control. However, configuration file-based canary deployment strategy management suffers from a large amount of repetitive development of canary deployment logic and is prone to inconsistencies in logic implementation. In addition, each adjustment to the canary deployment strategy requires publishing the configuration file and restarting the business service, resulting in low timeliness of canary deployment strategy adjustments and significant consumption of system resources. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides a business logic grayscale control method, apparatus, device, and storage medium.

[0005] On the one hand, this application proposes a business logic grayscale control method, the method comprising:

[0006] The system receives an adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0007] Based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, the grayscale logic corresponding to the at least one logical information is logically identified to obtain the grayscale logic identification result corresponding to the at least one logical information.

[0008] The grayscale logic recognition result is sent to the business server so that the business server can perform grayscale control of business logic based on the grayscale logic recognition result.

[0009] On the other hand, this application proposes a business logic grayscale control method, the method comprising:

[0010] In response to the grayscale strategy adjustment instruction of the service to be adjusted, the grayscale strategy of the service to be adjusted is adjusted to obtain the adjusted grayscale strategy; the adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted, and any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0011] The adjusted grayscale strategy is sent to the proxy end, so that the proxy end can perform logical recognition on the grayscale logic corresponding to the at least one logical information based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtain the grayscale logic recognition result corresponding to the at least one logical information; and so that the proxy end can send the grayscale logic recognition result to the business server end; and so that the business server end can perform business logic grayscale control according to the grayscale logic recognition result.

[0012] On the other hand, embodiments of this application provide a business logic grayscale control device, the device comprising:

[0013] The receiving module is used to receive the adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0014] The logic recognition module is used to perform logic recognition on the gray logic corresponding to the at least one logical information based on the business grayscale parameter and the logical meaning corresponding to the at least one logical information, and obtain the grayscale logic recognition result corresponding to the at least one logical information.

[0015] The first sending module is used to send the grayscale logic recognition result to the business server so that the business server can perform business logic grayscale control based on the grayscale logic recognition result.

[0016] On the other hand, embodiments of this application provide a business logic grayscale control device, the device comprising:

[0017] The response module is used to respond to the grayscale strategy adjustment instruction of the service to be adjusted, and adjust the grayscale strategy of the service to be adjusted to obtain the adjusted grayscale strategy. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0018] The second sending module is configured to send the adjusted grayscale strategy to the agent, so that the agent can perform logical recognition on the grayscale logic corresponding to the at least one logical information based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtain the grayscale logic recognition result corresponding to the at least one logical information; and to send the grayscale logic recognition result to the business server; and to enable the business server to perform business logic grayscale control according to the grayscale logic recognition result.

[0019] On the other hand, this application proposes an electronic device for business logic grayscale control, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded and executed by the processor to implement the business logic grayscale control method as described above.

[0020] On the other hand, this application proposes a computer-readable storage medium storing at least one instruction or at least one program, wherein the at least one instruction or the at least one program is loaded and executed by a processor to implement the business logic grayscale control method as described above.

[0021] The business logic grayscale control method, apparatus, device, and storage medium proposed in this application embodiment involve the management end responding to a grayscale strategy adjustment instruction for a business to be adjusted, adjusting the grayscale strategy of the business to be adjusted, obtaining the adjusted grayscale strategy, and then sending the adjusted grayscale strategy to the agent end. The agent end then performs logic recognition on the grayscale logic corresponding to at least one logical information contained in the grayscale strategy, obtaining the grayscale logic recognition result corresponding to at least one logical information, and sending the grayscale logic recognition result to the business server. Finally, the business server performs business logic grayscale control based on the grayscale logic recognition result. It can be seen that this application embodiment uniformly manages and distributes the business grayscale strategy in response to the grayscale strategy adjustment instruction, and uniformly performs grayscale logic recognition by the agent end. This ensures that the same grayscale logic only needs to be maintained in one place, which is beneficial to the uniformity and consistency of grayscale logic. In addition, it can improve the timeliness of grayscale strategy adjustment, reduce the system resource consumption of grayscale strategy adjustment and grayscale logic recognition, thereby reducing the system resource consumption of business logic grayscale control. Attached Figure Description

[0022] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a flowchart illustrating the process of grayscale control of business logic in existing technologies.

[0024] Figure 2 This is a schematic diagram illustrating the implementation environment of a business logic grayscale control method according to an exemplary embodiment.

[0025] Figure 3 This is a flowchart illustrating a business logic grayscale control method according to an exemplary embodiment.

[0026] Figure 4 This is a schematic diagram illustrating logical information according to an exemplary embodiment.

[0027] Figure 5 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment.

[0028] Figure 6 This is a schematic diagram illustrating a process for a client to obtain grayscale logic recognition results according to an exemplary embodiment.

[0029] Figure 7 This is a schematic diagram illustrating a process for displaying distribution information on a client according to an exemplary embodiment.

[0030] Figure 8 This is a schematic diagram illustrating the distribution information of various grayscale logics under various logic branches according to an exemplary embodiment.

[0031] Figure 9 This is a schematic diagram illustrating the distribution information between different grayscale logical matching results according to an exemplary embodiment.

[0032] Figure 10 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment.

[0033] Figure 11 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment.

[0034] Figure 12This is a block diagram of a business logic grayscale control device according to an exemplary embodiment.

[0035] Figure 13 This is a block diagram of a business logic grayscale control device according to an exemplary embodiment.

[0036] Figure 14 This is a hardware structure block diagram of a server for a business logic grayscale control method according to an exemplary embodiment. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0039] Figure 2 This is a schematic diagram illustrating the implementation environment of a business logic grayscale control method according to an exemplary embodiment. For example... Figure 2 As shown, the implementation environment may include at least a client 01, a management terminal 02, a business server 03, and a proxy terminal 04. The client 01, management terminal 02, business server 03, and proxy terminal 04 may be directly or indirectly connected via wired or wireless communication. This embodiment of the application does not impose any limitations on this.

[0040] The client 01 can be any front-end server, which can send a request to the proxy 04 to obtain the grayscale logic recognition result of the target business, and receive the grayscale logic recognition result returned by the proxy 04. Optionally, the client 01 can also be a smartphone, tablet, laptop, desktop computer, smart TV, smartwatch, etc., but is not limited to these.

[0041] The management terminal 02 can be a grayscale component management terminal, which can be used to respond to the grayscale policy adjustment instruction of the service to be adjusted, adjust the grayscale policy of the service to be adjusted, and send the adjusted grayscale policy to the agent terminal 04. The management terminal 02 can also be used to receive the grayscale logic recognition result corresponding to at least one logical information reported by the agent terminal 04, determine the distribution information of the grayscale logic corresponding to at least one logical information, and display the distribution information. Optionally, the management terminal 02 can be a terminal such as a smartphone, tablet, laptop, desktop computer, or smart TV; optionally, the management terminal 02 can also be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0042] Specifically, the business server 03 can be used to perform business grayscale logic control based on the grayscale logic recognition results returned by the agent. Optionally, the business server 03 can be a terminal such as a smartphone, tablet, laptop, desktop computer, or smart TV; optionally, the business server 03 can also be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0043] The proxy terminal 04 can be a grayscale proxy component, which can receive the adjusted grayscale strategy sent by the management terminal, perform logical identification on the grayscale logic corresponding to at least one piece of logical information, and send the grayscale logic identification result to the business server terminal 03 and the management terminal 02. Optionally, the proxy terminal 04 can be a terminal such as a smartphone, tablet, laptop, desktop computer, or smart TV; optionally, the proxy terminal 04 can also be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0044] It should be noted that, Figure 2 This is merely one application environment for the business logic grayscale control method provided in this application embodiment. In practical applications, other application environments may also be included.

[0045] Figure 3 This is a flowchart illustrating a business logic grayscale control method according to an exemplary embodiment. The method can be used for... Figure 2 In the implementation environment described herein, the steps of the methods described in the embodiments or flowcharts are provided. However, based on conventional or non-inventive labor, more or fewer steps may be included. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual system or server product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment). Specifically, as shown in the embodiments or drawings... Figure 3 As shown, the method may include:

[0046] S101. The management terminal responds to the grayscale strategy adjustment instruction of the service to be adjusted and adjusts the grayscale strategy of the service to be adjusted to obtain the adjusted grayscale strategy. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0047] Optionally, when it is necessary to adjust the grayscale strategy, the user on the management end can open the management interface of the management end and trigger the grayscale strategy adjustment command. The management end responds to the grayscale strategy adjustment command and adjusts the grayscale strategy of the business to be adjusted to obtain the adjusted grayscale strategy.

[0048] The business to be adjusted can be either a business developed in the past or a newly developed business.

[0049] Among them, grayscale strategy can refer to the grayscale control scheme formulated to achieve the purpose of grayscale logic control of business.

[0050] Optionally, the aforementioned grayscale strategy adjustment instructions may include, but are not limited to: grayscale strategy registration addition instructions, grayscale strategy modification instructions, and grayscale strategy deletion instructions. Correspondingly, the aforementioned "adjustment" may include, but is not limited to: registration addition, modification, and deletion.

[0051] Optionally, the above-mentioned business grayscale parameters may include, but are not limited to: the user identity document (ID) corresponding to the business to be adjusted, the product ID corresponding to the business to be adjusted, the business type of the business to be adjusted, and the business ID to be adjusted.

[0052] Optionally, the user ID may include, but is not limited to, user account, ID card number, mobile phone number, or other information that can be used to uniquely identify the user. The product ID may be, for example, a product serial number or other information used to uniquely identify the product.

[0053] Specifically, grayscale logic can refer to the patterns and rules governing grayscale, such as regular expression rules. Optionally, grayscale logic can include two logical branches: yes or no. For example, in message template migration-related business, this grayscale logic could be: whether the user ID matches the reporting list or the last digit, or a yes / no grayscale switch configuration, etc.

[0054] Specifically, the logical meaning can refer to the logical meaning expressed by the corresponding grayscale logic. Optionally, the logical meaning can include two branches: yes or no. For example, in message template migration-related business, if the grayscale logic is "whether the user ID matches the registration list or last digit," then the corresponding logical meaning can be "whether the user uses the new message template." Another example is if the grayscale logic is "yes or no grayscale switch configuration," then the corresponding logical meaning can be "whether the code logic uses the new message sending interface."

[0055] Specifically, "at least one logical piece of information" refers to a quantity of one or more logical pieces of information. The quantity of "at least one logical piece of information" can be infinitely extended by the management end according to the actual situation, and this application embodiment does not limit this. Each piece of logical information represents the following two meanings: the gray-scale logic of the business to be adjusted and the logical meaning corresponding to the gray-scale logic.

[0056] It should be noted that at least one piece of logical information can be obtained by the management end through arbitrary combination of existing logical information according to the actual situation.

[0057] It should be noted that the number of services to be adjusted can be one or more. That is, the management terminal can also respond to the grayscale strategy adjustment instructions of one or more services to be adjusted at the same time, so as to adjust the grayscale strategy of the one or more services to be adjusted and obtain the adjusted grayscale strategy of the one or more services to be adjusted.

[0058] Optionally, the logical information corresponding to different services to be adjusted after unified adjustment by the management end can be completely different, completely the same, or partially the same. Taking partial similarity as an example, suppose that at least one logical information corresponding to service A to be adjusted is logical information 1 and logical information 2, and at least one logical information corresponding to service B to be adjusted is logical information 1 and logical information 3. Service A and service B to be adjusted share the same logical information 1. For logical information 1, it can be uniformly managed and maintained by the management end, avoiding the excessive resource consumption, inconsistent logical implementation, and the defects of needing to restart business services for each gray-scale strategy adjustment caused by managing and maintaining the same logical information in different places. This ensures the logical consistency of all pending tasks regarding a certain logical information and the timeliness of the logical information taking effect, while reducing system resource consumption.

[0059] The following explanation, using the "message template migration-related business" as an example, will illustrate the above logical information, gray-scale logic, and logical significance:

[0060] First, the management system pre-builds the canary deployment strategy corresponding to the service to be adjusted. The pre-built canary deployment strategy may include at least one piece of logical information and canary deployment service parameters. Figure 4 This is a schematic diagram illustrating logical information according to an exemplary embodiment. For example... Figure 4 As shown, this logical information can be a compressed data structure, that is, a logical flag bit of 0 or 1.

[0061] in, Figure 4 The specific construction process of the logical flag bits in the message template migration can be as follows: The management end can determine, based on actual conditions, that the number of logical flag bits corresponding to the relevant business of the message template migration is 8. Then, the management end can define each logical flag bit, that is, define the corresponding grayscale logic and logical meaning for each logical flag bit. For example, if the grayscale logic is "whether the user ID matches the reporting list or last digit," then the corresponding logical meaning can be "whether the user uses the new message template." Another example is "whether the grayscale switch is configured as yes or no," then the corresponding logical meaning can be "whether the code logic uses the new message sending interface." It should be noted that the grayscale logic can be stored in a preset database. When defining the grayscale logic for each logical flag bit, the management end can retrieve the corresponding grayscale logic from the preset database.

[0062] Next, when a gray-scale strategy adjustment is required, the management terminal can respond to the gray-scale strategy adjustment instruction for the service to be adjusted. If the gray-scale strategy adjustment is a new instruction, the new instruction can carry the identifier information of the logical information to be added, and the management terminal can respond to the new instruction by adding the logical information to be added to the pre-built logical flag bits; if the gray-scale strategy adjustment instruction is a delete instruction, the delete instruction can carry the identifier information of the logical information to be deleted, and the management terminal can respond to the delete instruction by deleting the logical information to be deleted from the pre-built logical flag bits; if the gray-scale strategy adjustment instruction is a modify instruction, the modify instruction can carry the identifier information of the logical information to be modified, and the management terminal can respond to the modify instruction by modifying the logical information to be modified in the pre-built logical flag bits.

[0063] For business canary parameters, adjustments can also be made by the management system. For example, the management system can respond to an add command carrying the identifier information of the business canary parameter to be added, adding the parameter to the pre-built business canary parameter set. Similarly, the management system can respond to a delete command carrying the identifier information of the business canary parameter to be deleted, deleting the parameter from the pre-built business canary parameter set. Furthermore, the management system can respond to a modify command carrying the identifier information of the business parameter to be modified, modifying the parameter from the pre-built business canary parameter set.

[0064] S103. The management terminal sends the adjusted grayscale strategy to the agent terminal.

[0065] In this embodiment of the application, after receiving the adjusted grayscale strategy, the management end can send the adjusted grayscale strategy to the agent end.

[0066] In an optional embodiment, after receiving the adjusted grayscale policy, the management terminal can also store the adjusted grayscale policy on a local drive. For example, the management terminal can... Figure 2 The grayscale management server in the middle stores the adjusted grayscale strategy. Figure 2 In the business grayscale database.

[0067] It should be noted that the business grayscale database not only stores the adjusted grayscale strategy (including business parameters and at least one logical piece of information), but also descriptions of the business grayscale parameters.

[0068] In this embodiment of the application, the adjusted grayscale strategy is stored on the ground, which can avoid the loss of the adjusted grayscale strategy, ensure the accuracy of subsequent logic recognition, and thus improve the accuracy of grayscale control of subsequent business logic.

[0069] S105. Based on the above business grayscale parameters and the logical meaning corresponding to the above at least one logical information, the above agent performs logical recognition on the grayscale logic corresponding to the above at least one logical information to obtain the grayscale logic recognition result corresponding to the above at least one logical information.

[0070] Here, logic recognition can refer to the process of logically matching the grayscale logic corresponding to each piece of logic information with the aforementioned business grayscale parameters.

[0071] In an optional embodiment, to improve the efficiency of grayscale logic recognition, the following steps are continued: Figure 4 As shown, the agent can perform parallel judgments on the grayscale logic corresponding to each piece of logical information and output the grayscale logic recognition result for each piece of logical information. Taking logical information as... Figure 4 Taking the logical flag bits in the code as an example, Figure 4If there are 8 logical flag bits, the agent can perform parallel logical judgments on the grayscale logic corresponding to these 8 logical flag bits and output the grayscale logic recognition results corresponding to each of the 8 logical flag bits.

[0072] Figure 5 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment. For example... Figure 5 As shown, in an optional embodiment, the above-described S105 may include:

[0073] S10501. The above-mentioned agent matches the above-mentioned business grayscale parameters with the grayscale logic corresponding to the above-mentioned at least one logical information to obtain the grayscale logic matching result corresponding to the above-mentioned at least one logical information.

[0074] S10503. The above-mentioned agent determines the gray-scale logic recognition result corresponding to the gray-scale logic matching result from the logical meaning corresponding to the above-mentioned at least one logical information according to the preset mapping information. The preset mapping information represents the mapping relationship between the gray-scale logic matching result and the gray-scale logic recognition result.

[0075] For example, the grayscale logic matching result can be directly "match successful" or "match failed"; the grayscale logic matching result can also be a matching probability. If the matching probability is greater than a preset matching threshold, it indicates a successful match; otherwise, it indicates a failed match. When the logic information is a logic flag bit, the grayscale logic matching result can also be a matching result of 0 or 1, where 1 indicates a match and 0 indicates a non-match.

[0076] Specifically, since "grayscale logic" includes two logical branches: yes or no, and "logical meaning" also includes two semantic branches: yes or no, we can predefine the mapping information between the two logical branches of "grayscale logic" (yes or no) and the two semantic branches of "logical meaning" (e.g., the "yes" logical branch in grayscale logic corresponds to the "yes" semantic branch in logical meaning, and the "no" logical branch in grayscale logic corresponds to the "no" semantic branch in logical meaning). After matching is completed, based on this mapping information, we can obtain the grayscale logic recognition result corresponding to the grayscale logic matching result from the logical meaning. This grayscale logic recognition result can be the "yes or no" semantic branch in the logical meaning.

[0077] When the logical information is a logical flag bit, continue with Figure 4 For example, the above S10501-S10503 will be explained in detail:

[0078] for Figure 4The first logical flag bit from right to left in the whitelist corresponds to the grayscale logic (i.e., grayscale rule) of "whether the user ID matches the whitelist | last digit", which means "whether the user uses the new message template". Therefore, the following preset mapping information can be established: when the user ID matches the whitelist | last digit, the match is considered successful, the logical flag bit is displayed as 1, and the corresponding logical meaning is "the user uses the new message template". When the user ID does not match the whitelist | last digit, the match is considered unsuccessful, the logical flag bit is displayed as 0, and the corresponding logical meaning is "the user does not use the new message template". The "|" symbol is a separator used to separate the whitelist and the last digit, and its meaning can be AND, OR, AND / OR.

[0079] During logic recognition, the agent can match the business grayscale parameters (e.g., user ID) issued by the management terminal with the grayscale logic corresponding to the logic flag (i.e., "whether the user ID matches the whitelist | last digit"). If the match is successful, the grayscale logic matching result is 1. Then, based on the preset mapping information mentioned above, the logical meaning corresponding to "grayscale logic matching result is 1" (i.e., "user uses new message template") can be obtained, and this "user uses new message template" can be used as the grayscale logic recognition result. If the match is unsuccessful, the grayscale logic matching result is 0. Then, based on the preset mapping information mentioned above, the logical meaning corresponding to "grayscale logic matching result is 0" can be obtained (i.e., "user does not use new message template"), and this "user does not use new message template" can be used as the grayscale logic recognition result.

[0080] for Figure 4 The second logical flag bit from right to left corresponds to the rule "Yes or No Gray-scale Switch Configuration," meaning "Whether the code logic uses the new message sending interface." Therefore, the following preset mapping information can be established: When the gray-scale switch is configured as "Yes," a successful match is considered, and the logical flag bit is displayed as 1, with the corresponding logical meaning "The code logic uses the new message sending interface." When the gray-scale switch is configured as "No," a failed match is considered, and the logical flag bit is displayed as 0, with the corresponding logical meaning "The code logic does not use the new message sending interface." Here, "Yes" for gray-scale switch configuration can mean that the gray-scale switch configuration option is "Yes," i.e., gray-scale control is enabled. "No" for gray-scale switch configuration can mean that the gray-scale switch configuration option is "No," i.e., gray-scale control is not enabled.

[0081] During logic identification, the agent can match the relevant business grayscale parameters issued by the management terminal with the grayscale logic corresponding to the logic flag (i.e., the "yes or no grayscale switch configuration"). If the match is successful, the grayscale logic matching result is 1. Then, based on the preset mapping information mentioned above, the agent can obtain the logical meaning corresponding to "grayscale logic matching result is 1" (i.e., "code logic uses the new message sending interface"), and use this "code logic uses the new message sending interface" as the grayscale logic identification result. If the match is unsuccessful, the grayscale logic matching result is 0. Then, based on the preset mapping information mentioned above, the agent can obtain the logical meaning corresponding to "grayscale logic matching result is 0" (i.e., "code logic does not use the new message sending interface"), and use this "code logic does not use the new message sending interface" as the grayscale logic identification result.

[0082] In this embodiment, the management end responds to grayscale policy adjustment commands to manage and distribute grayscale policies for services. All grayscale logic identification for all services is highly centralized at the agent end, which performs unified grayscale logic identification. This ensures that identical grayscale logic identification only needs to be maintained in one place, avoiding redundant development and promoting the uniformity and consistency of grayscale logic. It effectively avoids the problem of redundant and inconsistent grayscale logic across services inherent in configuration file-based grayscale policy management methods. Furthermore, it avoids the problems of poor timeliness of grayscale logic activation and high system resource consumption caused by frequent configuration file management and long configuration file release cycles. This ensures the timeliness of grayscale policy generation, reduces the system resource consumption of grayscale policy adjustments and grayscale logic identification, and ultimately reduces the system resource consumption of business logic grayscale control.

[0083] S107. The above-mentioned agent sends the grayscale logic recognition result to the business server.

[0084] For example, continue as follows Figure 2 As shown, the aforementioned agent can send the grayscale logic recognition results to the business server through the grayscale component protocol application programming interface (API).

[0085] S109. The above-mentioned business server performs business logic grayscale control based on the above-mentioned grayscale logic recognition results.

[0086] In this embodiment of the application, after the business server receives the grayscale logic recognition result, it can control the grayscale of the business logic based on the grayscale logic recognition result.

[0087] For example, a preset mapping relationship between grayscale logic recognition results and business logic grayscale control can be established in advance. The business server can obtain business grayscale logic control information according to the preset mapping relationship and perform corresponding business logic grayscale control according to the business grayscale logic control information.

[0088] Figure 6 This is a schematic diagram illustrating a process for a client to obtain grayscale logic recognition results, according to an exemplary embodiment. For example... Figure 6 As shown, in an optional embodiment, the above-described business logic canary control method may further include:

[0089] S201. The client sends a request to the aforementioned agent to obtain the grayscale logic recognition result of the target service, the request carrying the identification information of the target service; the service to be adjusted includes the target service.

[0090] S203. The above-mentioned agent obtains the grayscale logic recognition result corresponding to the above-mentioned identification information.

[0091] S205. The aforementioned agent sends the grayscale logic recognition result corresponding to the aforementioned identification information to the aforementioned client.

[0092] The target service can be any one of the services mentioned above that need to be adjusted. The request can be an HTTP request; HTTP is a network transmission protocol based on the Transmission Control Protocol (TCP) / Internet Protocol (IP) communication protocol for transmitting data.

[0093] For example, the client can determine the target service for which it needs to obtain grayscale logic recognition results based on actual needs, and send a request to obtain the identification information of the target service to the proxy. After receiving the request, the proxy can obtain the grayscale logic recognition result corresponding to the identification information and return the grayscale logic recognition result to the client through the business grayscale interface.

[0094] In this embodiment, the client obtains the grayscale logic recognition result of the target service according to actual needs. This avoids the drawback of the large network transmission and client storage resource consumption caused by the proxy sending the grayscale logic recognition results of all services directly to the client, thus reducing system resource consumption. Moreover, the corresponding grayscale logic recognition result is only returned according to the acquisition request sent by the client when the client has a need, which can reduce the interaction between the client and the proxy.

[0095] In an optional embodiment, after the management terminal adjusts the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted, and obtains the adjusted grayscale strategy, the method may further include: the management terminal displays at least one piece of logical information corresponding to the service to be adjusted in response to the logical information display instruction of the service to be adjusted.

[0096] Optionally, the management terminal can provide a unified management view of the logical information of the service to be adjusted. Responding to a command to display the logical information of the service to be adjusted, the management terminal displays at least one piece of logical information corresponding to the service to be adjusted through this unified management view. This allows the display of all logical information used by the current service (i.e., the service to be adjusted).

[0097] When there are multiple services to be adjusted, the management terminal can also respond to a query command for the logical information of a specific service to be adjusted, retrieve the logical information of that specific service, and display the logical information of that specific service.

[0098] This application embodiment displays all logical information used by the current business through a unified management view, realizing the current grayscale status of various business logics through a global view. This avoids the problems of high management costs and large management resource consumption caused by various grayscale strategies being scattered in their respective services, and further reduces the consumption of system resources during the grayscale strategy adjustment process.

[0099] Figure 7 This is a schematic diagram illustrating a process for displaying distribution information on a client, according to an exemplary embodiment. For example... Figure 7 As shown, in an optional embodiment, after the agent performs logical recognition on the grayscale logic corresponding to the at least one logical information based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtains the grayscale logic recognition result corresponding to the at least one logical information, the method may further include:

[0100] S301. The above-mentioned agent sends the grayscale logic matching result corresponding to at least one of the above-mentioned logical information to the above-mentioned management terminal.

[0101] S303. The management terminal determines the distribution information of the grayscale logic corresponding to the at least one logical information based on the grayscale logic corresponding to the at least one logical information and the corresponding grayscale logic matching result.

[0102] S305. The above-mentioned management terminal responds to the grayscale logical distribution information display instruction and displays the above-mentioned distribution information.

[0103] For example, since grayscale logic includes two logical branches of yes or no, the grayscale logic matching result should also include two matching result branches of yes or no. Then, the "distribution information of grayscale logic corresponding to at least one logical information" in S303 can be used to characterize the distribution of each grayscale logic in different logical branches.

[0104] For example, the "distribution information of grayscale logic corresponding to at least one logical information" in S303 above can also characterize the distribution between grayscale logic whose grayscale logic matching results are all "yes" and grayscale logic whose grayscale logic matching results are all "no".

[0105] For example, the management console can respond to the grayscale logic distribution information display command and display the aforementioned distribution information through a monitoring view. Displaying the distribution information through the management console not only provides a clear view of the distribution of grayscale logic but also facilitates unified global management of grayscale logic, avoiding the drawback of high system management resource consumption caused by grayscale logic being scattered across individual services.

[0106] In practical applications, there may be at least two types of business operations to be adjusted and two types of gray-scale strategies after adjustment. There may be cases where gray-scale logic under some adjusted gray-scale strategies does not participate in logic recognition. The management end can also display the gray-scale logic that does not participate in logic recognition through the monitoring view, thereby guiding the business to take offline some gray-scale logic and its corresponding gray-scale strategy that did not participate in logic recognition. This not only improves the flexibility of gray-scale control of business logic, but also reduces the management burden on the management end and reduces the resource consumption of the management end.

[0107] The following continues as follows Figure 4 For example, let's explain S301-S305 above:

[0108] Figure 4 The grayscale strategy in the code includes 8 logical flag bits, which correspond to 8 grayscale logics. The grayscale logic matching results of these 8 grayscale logics are 0, 1, 1, 0, 0, 1, 0, 1 from left to right.

[0109] Figure 8 This is a schematic diagram illustrating the distribution information of various grayscale logics under various logic branches according to an exemplary embodiment. The management terminal can construct, based on these eight grayscale logics and the aforementioned grayscale logic matching results (i.e., 0, 1, 1, 0, 0, 1, 0, 1), as shown below. Figure 8 The distribution information shown (e.g., distribution curve) is displayed through the monitoring view described above.

[0110] Figure 9 This is a schematic diagram illustrating the distribution information between different grayscale logical matching results according to an exemplary embodiment. For example... Figure 9 As shown, the management terminal can also determine the number of gray logics with a gray logic matching result of 1 as 3 and the number of gray logics with a gray logic matching result of 0 as 5, based on the 8 gray logics and the gray logic matching results mentioned above (i.e., 0, 1, 1, 0, 0, 1, 0, 1). Then, the distribution information of these 8 gray logics under 0 or 1 (e.g., a distribution diagram) can be constructed and displayed through the monitoring view mentioned above.

[0111] The following section describes the gray-scale control method for this business, using the agent as the execution entity. Figure 10 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment. For example... Figure 10 As shown, the business logic grayscale control method may include:

[0112] S401. Receive the adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal in response to the grayscale strategy adjustment instruction of the service to be adjusted, and the adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0113] S403. Based on the above business grayscale parameters and the logical meaning corresponding to the above at least one logical information, perform logical recognition on the grayscale logic corresponding to the above at least one logical information to obtain the grayscale logic recognition result corresponding to the above at least one logical information.

[0114] S405. Send the above grayscale logic recognition result to the business server so that the business server can perform grayscale control of business logic based on the above grayscale logic recognition result.

[0115] In an optional embodiment, S403 described above may include:

[0116] The above-mentioned business grayscale parameters are matched with the grayscale logic corresponding to at least one of the above-mentioned logical information to obtain the grayscale logic matching result corresponding to at least one of the above-mentioned logical information.

[0117] Based on the preset mapping information, the grayscale logic recognition result corresponding to the grayscale logic matching result is determined from the logical meaning corresponding to at least one of the above logical information. The preset mapping information represents the mapping relationship between the grayscale logic matching result and the grayscale logic recognition result.

[0118] In an optional embodiment, after performing logical recognition on the grayscale logic corresponding to the at least one logical information based on the above-mentioned business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtaining the grayscale logic recognition result corresponding to the at least one logical information, the above method further includes:

[0119] The grayscale logic matching result corresponding to at least one of the above logical information is sent to the management terminal, so that the management terminal determines the distribution information of the grayscale logic corresponding to at least one of the above logical information based on the grayscale logic corresponding to the at least one logical information and the corresponding grayscale logic matching result; and so that the management terminal displays the distribution information in response to the grayscale logic distribution information display instruction.

[0120] In an optional embodiment, the above method may further include:

[0121] The system receives a request from the client to obtain the grayscale logic recognition result of the target service, and the request carries the identification information of the target service; the service to be adjusted includes the target service.

[0122] Obtain the grayscale logic recognition result corresponding to the above identification information.

[0123] The grayscale logic recognition result corresponding to the above identification information is sent to the above client.

[0124] The following section describes the gray-scale control method for this business, focusing on the management side as the implementing entity. Figure 11 This is a flowchart illustrating another business logic grayscale control method according to an exemplary embodiment. For example... Figure 11 As shown, the business logic grayscale control method may include:

[0125] S501. In response to the grayscale strategy adjustment instruction of the service to be adjusted, the grayscale strategy of the service to be adjusted is adjusted to obtain the adjusted grayscale strategy; the adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted, and any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0126] S503. The adjusted grayscale strategy is sent to the agent, so that the agent performs logical recognition on the grayscale logic corresponding to the at least one logical information based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtains the grayscale logic recognition result corresponding to the at least one logical information; and the agent sends the grayscale logic recognition result to the business server; and the business server performs business logic grayscale control based on the grayscale logic recognition result.

[0127] In an optional embodiment, after adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted, and obtaining the adjusted grayscale strategy, the method may further include: displaying at least one piece of logical information corresponding to the service to be adjusted in response to the logical information display instruction of the service to be adjusted.

[0128] This disclosure also provides a business logic grayscale control system, which may include at least a management terminal, an agent terminal, and a business server terminal;

[0129] The management terminal is used to respond to the grayscale strategy adjustment instruction of the service to be adjusted, adjust the grayscale strategy of the service to be adjusted, and obtain the adjusted grayscale strategy. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted, wherein any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic. The management terminal is also used to send the adjusted grayscale strategy to the agent terminal.

[0130] The proxy is used to perform logical recognition on the gray logic corresponding to the above-mentioned at least one logical information based on the above-mentioned business gray parameters and the logical meaning corresponding to the above-mentioned at least one logical information, and to obtain the gray logic recognition result corresponding to the above-mentioned at least one logical information; and to send the gray logic recognition result to the business server.

[0131] This business server is used to perform grayscale control of business logic based on the grayscale logic recognition results mentioned above.

[0132] Figure 12 This is a block diagram illustrating a business logic grayscale control device according to an exemplary embodiment. For example... Figure 12 As shown, the device may include at least:

[0133] The receiving module 601 can be used to receive the adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0134] The logic recognition module 603 can be used to perform logic recognition on the grayscale logic corresponding to the above-mentioned business grayscale parameters and the logical meaning corresponding to the above-mentioned at least one logical information, and obtain the grayscale logic recognition result corresponding to the above-mentioned at least one logical information.

[0135] The first sending module 605 can be used to send the above-mentioned grayscale logic recognition result to the business server so that the business server can perform business logic grayscale control based on the above-mentioned grayscale logic recognition result.

[0136] In one specific embodiment, the above-mentioned logic identification module 603 may include:

[0137] The matching unit can be used to match the above-mentioned business grayscale parameters with the grayscale logic corresponding to at least one of the above-mentioned logical information to obtain the grayscale logic matching result corresponding to at least one of the above-mentioned logical information.

[0138] The grayscale logic recognition result determination unit can be used to determine the grayscale logic recognition result corresponding to the grayscale logic matching result from the logical meaning corresponding to at least one of the above-mentioned logical information based on preset mapping information. The preset mapping information represents the mapping relationship between the grayscale logic matching result and the grayscale logic recognition result.

[0139] In an optional embodiment, the above-described apparatus may further include:

[0140] The grayscale logic matching result sending module is used to send the grayscale logic matching result corresponding to the at least one logical information to the management terminal, so that the management terminal determines the distribution information of the grayscale logic corresponding to the at least one logical information based on the grayscale logic corresponding to the at least one logical information and the corresponding grayscale logic matching result; and so that the management terminal displays the distribution information in response to the grayscale logic distribution information display instruction.

[0141] In an optional embodiment, the above-described apparatus may further include:

[0142] The request sending module can be used to receive a request from the client to obtain the grayscale logic recognition result of the target service. The request carries the identification information of the target service. The service to be adjusted includes the target service.

[0143] The grayscale logic recognition result acquisition module can be used to obtain the grayscale logic recognition result corresponding to the above-mentioned identification information.

[0144] The grayscale logic recognition result sending module can be used to send the grayscale logic recognition result corresponding to the above-mentioned identification information to the above-mentioned client.

[0145] Figure 13 This is a block diagram illustrating a business logic grayscale control device according to an exemplary embodiment. For example... Figure 13 The device may include at least the following:

[0146] The response module 701 can be used to respond to the grayscale strategy adjustment instruction of the service to be adjusted, adjust the grayscale strategy of the service to be adjusted, and obtain the adjusted grayscale strategy. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic.

[0147] The second sending module 703 can be used to send the adjusted grayscale strategy to the agent, so that the agent can perform logical recognition on the grayscale logic corresponding to the at least one logical information based on the business grayscale parameters and the logical meaning corresponding to the at least one logical information, and obtain the grayscale logic recognition result corresponding to the at least one logical information; and so that the agent can send the grayscale logic recognition result to the business server; and so that the business server can perform business logic grayscale control according to the grayscale logic recognition result.

[0148] In an optional embodiment, the above-described apparatus may further include:

[0149] The grayscale strategy display module can be used to respond to the above-mentioned logical information display instructions for the business to be adjusted and display at least one piece of logical information corresponding to the business to be adjusted.

[0150] It should be noted that the device embodiments provided in this application are based on the same inventive concept as the method embodiments described above.

[0151] This application also provides an electronic device for business logic grayscale control. The electronic device includes a processor and a memory. The memory stores at least one instruction or at least one program. The processor loads and executes the at least one instruction or at least one program to implement the business logic grayscale control method provided in the above method embodiments.

[0152] This application embodiment also provides a computer-readable storage medium that can be disposed in a terminal to store at least one instruction or at least one program related to implementing a business logic grayscale control method in the method embodiment. The at least one instruction or at least one program is loaded and executed by a processor to implement the business logic grayscale control method provided in the above method embodiment.

[0153] Optionally, in the embodiments of this specification, the storage medium may be located in multiple network servers among multiple network servers in a computer network. Optionally, in this embodiment, the above-mentioned storage medium may include, but is not limited to, various media capable of storing program code such as: USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk or optical disk.

[0154] The memory described in this specification can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system, applications required for functions, etc.; the data storage area may store data created based on the use of the device, etc. Furthermore, the memory may include high-speed random access memory, and may also include non-volatile memory, such as multiple disk storage devices, flash memory devices, or other volatile solid-state storage devices. Accordingly, the memory may also include a memory controller to provide the processor with access to the memory.

[0155] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the business logic grayscale control method provided in the above-described method embodiments.

[0156] The business logic grayscale control method, apparatus, electronic device, storage medium, and computer program product provided in this application have the following beneficial effects:

[0157] 1) In this embodiment, the management end responds to the gray-scale policy adjustment command to manage and distribute the gray-scale policies of the business. The gray-scale logic identification of all businesses is highly cohesive to the agent end, which performs gray-scale logic identification uniformly. This means that the same gray-scale logic identification only needs to be maintained in one place, which avoids redundant development and promotes the uniformity and consistency of gray-scale logic. It effectively avoids the problem of redundancy and inconsistency of gray-scale logic in various services that exists in the gray-scale policy management method based on configuration files. In addition, it can also avoid the problems of poor timeliness of gray-scale logic activation and large system resource consumption caused by frequent configuration file management and long configuration file release cycle. It ensures the timeliness of gray-scale policy generation, reduces the system resource consumption of gray-scale policy adjustment and gray-scale logic identification, and thus reduces the system resource consumption of business logic gray-scale control.

[0158] 2) In this embodiment, the client obtains the grayscale logic recognition result of the target service according to the actual needs, which avoids the defects of large network transmission resources and client storage resources consumption caused by the proxy sending all the grayscale logic recognition results of the services directly to the client, thus reducing system resource consumption; and the corresponding grayscale logic recognition result is only returned according to the acquisition request sent by the client when the client has a need, which can reduce the interaction between the client and the proxy.

[0159] 3) This application embodiment displays all logical information used by the current business through a unified management view and displays the distribution information of gray-scale logic through a monitoring view. It realizes the display of the current gray-scale status of various business logics through a global view, avoiding the problems of high management costs and large management resource consumption caused by various gray-scale strategies being scattered in their respective services, and further reducing the consumption of system resources during the gray-scale strategy adjustment process.

[0160] The business logic grayscale control method embodiments provided in this application can be executed on a terminal, computer terminal, server, or similar computing device. Taking running on a server as an example, Figure 14 This is a hardware structure block diagram of a server illustrating a business logic grayscale control method according to an exemplary embodiment. For example... Figure 14 As shown, the server 800 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 810 (CPUs 810 may include, but are not limited to, microprocessors (MCUs) or programmable logic devices (FPGAs), a memory 830 for storing data, and one or more storage media 820 (e.g., one or more mass storage devices) for storing application programs 823 or data 822. The memory 830 and storage media 820 may be temporary or persistent storage. The program stored in the storage media 820 may include one or more modules, each module including a series of instruction operations on the server. Furthermore, the CPU 810 may be configured to communicate with the storage media 820 and execute a series of instruction operations stored in the storage media 820 on the server 800. The server 800 may also include one or more power supplies 860, one or more wired or wireless network interfaces 850, one or more input / output interfaces 840, and / or one or more operating systems 821, such as Windows Server. TM Mac OS X TM Unix TM Linux TM FreeBSD TM etc.

[0161] The input / output interface 840 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of server 800. In one example, the input / output interface 840 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 840 may be a radio frequency (RF) module for wireless communication with the Internet.

[0162] Those skilled in the art will understand that Figure 14 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, server 800 may also include... Figure 14 The more or fewer components shown, or having the same Figure 14 The different configurations shown.

[0163] It should be noted that the order of the embodiments described above is merely for descriptive purposes and does not represent the superiority or inferiority of the embodiments. Furthermore, specific embodiments have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than that shown in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0164] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and server embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0165] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0166] The above are merely preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A business logic grayscale control method, characterized in that, Applied to the proxy side, the method includes: The system receives an adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic. The logical information is a logical flag bit. The business grayscale parameter is matched with the grayscale logic corresponding to each logical flag bit to obtain the grayscale logic matching result corresponding to each logical flag bit. For each logical flag bit corresponding to the grayscale logical matching result, based on preset mapping information, the grayscale logical recognition result corresponding to the grayscale logical matching result is determined from the logical meaning corresponding to the at least one logical information; the preset mapping information represents the mapping relationship between the grayscale logical matching result and the grayscale logical recognition result. The grayscale logic recognition result is sent to the business server so that the business server can perform grayscale control of business logic based on the grayscale logic recognition result.

2. The business logic grayscale control method according to claim 1, characterized in that, The method further includes: The grayscale logic matching result corresponding to the at least one logical information is sent to the management terminal, so that the management terminal determines the distribution information of the grayscale logic corresponding to the at least one logical information based on the grayscale logic corresponding to the at least one logical information and the corresponding grayscale logic matching result; and so that the management terminal displays the distribution information in response to the grayscale logic distribution information display instruction.

3. The business logic grayscale control method according to claim 1, characterized in that, The method further includes: The system receives a request from a client to obtain the grayscale logic recognition result of a target service, the request carrying the identification information of the target service; the service to be adjusted includes the target service. Obtain the grayscale logic recognition result corresponding to the identification information; The grayscale logic recognition result corresponding to the identification information is sent to the client.

4. A business logic grayscale control method, characterized in that, The method includes: In response to the grayscale strategy adjustment instruction of the service to be adjusted, the grayscale strategy of the service to be adjusted is adjusted to obtain the adjusted grayscale strategy; the adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted, and any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic. The adjusted grayscale strategy is sent to the proxy, so that the proxy matches the business grayscale parameters with the grayscale logic corresponding to each logical flag bit to obtain the grayscale logic matching result corresponding to each logical flag bit. For each grayscale logic matching result corresponding to the logical flag bit, the proxy determines the grayscale logic recognition result corresponding to the grayscale logic matching result from the logical meaning corresponding to the at least one logical information according to the preset mapping information. The proxy then sends the grayscale logic recognition result to the business server, and the business server performs business logic grayscale control based on the grayscale logic recognition result. The preset mapping information represents the mapping relationship between the grayscale logic matching result and the grayscale logic recognition result.

5. The business logic grayscale control method according to claim 4, characterized in that, After adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted, and obtaining the adjusted grayscale strategy, the method further includes: In response to the instruction to display the logical information of the service to be adjusted, at least one piece of logical information corresponding to the service to be adjusted is displayed.

6. A business logic grayscale control device, characterized in that, The device, applied to the agent end, includes: The receiving module is used to receive the adjusted grayscale strategy sent by the management terminal. The adjusted grayscale strategy is obtained by the management terminal adjusting the grayscale strategy of the service to be adjusted in response to the grayscale strategy adjustment instruction of the service to be adjusted. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic; the logical information is a logical flag bit. The logic recognition module is used to match the business grayscale parameters with the grayscale logic corresponding to each logic marker bit to obtain the grayscale logic matching result corresponding to each logic marker bit; for each grayscale logic matching result corresponding to a logic marker bit, based on preset mapping information, the grayscale logic recognition result corresponding to the grayscale logic matching result is determined from the logical meaning corresponding to the at least one logic information; the preset mapping information represents the mapping relationship between the grayscale logic matching result and the grayscale logic recognition result. The first sending module is used to send the grayscale logic recognition result to the business server so that the business server can perform business logic grayscale control based on the grayscale logic recognition result.

7. The apparatus according to claim 6, characterized in that, The device further includes: A grayscale logic matching result sending module is used to send the grayscale logic matching result corresponding to the at least one logical information to the management terminal, so that the management terminal determines the distribution information of the grayscale logic corresponding to the at least one logical information based on the grayscale logic corresponding to the at least one logical information and the corresponding grayscale logic matching result; and so that the management terminal displays the distribution information in response to the grayscale logic distribution information display instruction.

8. The apparatus according to claim 6, characterized in that, The device further includes: The request sending module is used to receive a request from the client to obtain the grayscale logic recognition result of the target service, wherein the request carries the identification information of the target service; the service to be adjusted includes the target service. The grayscale logic recognition result acquisition module is used to acquire the grayscale logic recognition result corresponding to the identification information; The grayscale logic recognition result sending module is used to send the grayscale logic recognition result corresponding to the identification information to the client.

9. A business logic grayscale control device, characterized in that, The device includes: The response module is used to respond to the grayscale strategy adjustment instruction of the service to be adjusted, and adjust the grayscale strategy of the service to be adjusted to obtain the adjusted grayscale strategy. The adjusted grayscale strategy includes the service grayscale parameters of the service to be adjusted and at least one logical information corresponding to the service to be adjusted. Any logical information represents the logical meaning of the service to be adjusted under the corresponding grayscale logic. The second sending module is configured to send the adjusted grayscale strategy to the proxy end, so that the proxy end matches the business grayscale parameters with the grayscale logic corresponding to each logical flag bit to obtain the grayscale logic matching result corresponding to each logical flag bit, and for each grayscale logic matching result corresponding to the logical flag bit, determines the grayscale logic recognition result corresponding to the grayscale logic matching result from the logical meaning corresponding to the at least one logical information according to preset mapping information; and so that the proxy end sends the grayscale logic recognition result to the business server end; and so that the business server end performs business logic grayscale control according to the grayscale logic recognition result; the preset mapping information represents the mapping relationship between the grayscale logic matching result and the grayscale logic recognition result.

10. The apparatus according to claim 9, characterized in that, The device further includes: The grayscale strategy display module is used to respond to the logical information display instruction of the service to be adjusted and display at least one piece of logical information corresponding to the service to be adjusted.

11. An electronic device for business logic grayscale control, characterized in that, The electronic device includes a processor and a memory, the memory storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by the processor to implement the business logic grayscale control method as described in any one of claims 1 to 5.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one instruction or at least one program, which is loaded and executed by a processor to implement the business logic grayscale control method as described in any one of claims 1 to 5.