A method and apparatus for service degradation

By configuring degradation conditions and rules, the business nodes to be degraded are identified, and refined degradation processing is carried out. This solves the user experience and revenue problems caused by the one-size-fits-all business degradation in the existing technology, realizes refined degradation at the business node level, improves user experience and reduces risks.

CN114528140BActive Publication Date: 2026-04-14JINGDONG TECH HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

The one-size-fits-all approach to business downgrading in existing technologies renders normal users unable to use the service, reduces user experience, and impacts business revenue.

Method used

By configuring degradation conditions and rules, the business nodes to be degraded are identified, and fine-grained degradation processing is carried out. This includes configuring degradation authorization, switches, conditions and rules, and using the management and maintenance interface to uniformly manage degradation switches, thereby achieving fine-grained degradation at the business node level.

Benefits of technology

This improved the user experience, avoided the risk of business revenue being affected by business downgrades, and reduced the scope of the impact of business downgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528140B_ABST
    Figure CN114528140B_ABST
Patent Text Reader

Abstract

The application discloses a service degradation method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: obtaining degradation configuration information of a service according to a service request, wherein the degradation configuration information comprises degradation conditions and degradation rules, the degradation rules comprise a degradation service field, a field value and a rule type, and the rule type indicates a relationship between the degradation service field and the field value; judging whether the service needs to be degraded according to the degradation conditions; in the case that the service needs to be degraded, determining service nodes to be degraded according to the degradation service field, the field value and the rule type, wherein the service comprises no less than one service node; and performing degradation processing on the service nodes to be degraded according to the degradation rules. The embodiment not only realizes a degradation method that is fine to service nodes, but also improves the experience of users and reduces the influence of service degradation to a minimum range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and apparatus for business downgrading. Background Technology

[0002] With the widespread application of internet information technology, online services have developed rapidly. When online services encounter business anomalies or system problems, it directly affects the normal processing flow, causing temporary service interruptions.

[0003] To mitigate the impact of sudden business anomalies or system issues on online operations, a common approach is to embed degradation switches at critical points in the business process for a blanket degradation, enabling rapid business recovery. However, this blanket degradation can prevent other users from accessing the service, negatively impacting user experience, causing user churn, and potentially directly affecting business revenue. Summary of the Invention

[0004] In view of this, embodiments of the present invention provide a method and apparatus for business degradation. Based on configured degradation conditions and rules, the method determines the business nodes to be degraded, and performs refined degradation processing on the business nodes to be degraded according to the degradation rules. This not only completes refined degradation at the business node level, but also improves the user experience, avoids the risk of affecting business revenue due to business degradation, and minimizes the impact of business degradation.

[0005] To achieve the aforementioned objective, according to one aspect of the present invention, a method for service degradation is provided, comprising:

[0006] The service degradation configuration information is obtained according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and field values.

[0007] Determine whether the service needs to be downgraded based on the downgrade conditions;

[0008] When the service needs to be downgraded, the service node to be downgraded is determined according to the downgraded service field, field value and rule type, and the service includes no less than one service node;

[0009] The service nodes to be downgraded are downgraded according to the downgrade rules.

[0010] Optionally, the degradation condition includes the business method name; determining whether the business needs to be downgraded based on the degradation condition includes: obtaining the business method name from the business program of the business; matching the business method name with the degradation condition; and determining that the business needs to be downgraded if the match is successful.

[0011] Optionally, determining the business node to be downgraded based on the downgraded business field, field value, and rule type includes: obtaining a first set of business nodes related to the downgraded business field based on the downgraded business field; and selecting the business node to be downgraded from the first set of business nodes based on the field value and rule type.

[0012] Optionally, when the degradation rule is composed of multiple sub-rules, the degradation rule further includes: the relationship between the sub-rules; the method further includes: determining the business node to be degraded based on the relationship between the degradation business field, field value, rule type and sub-rules.

[0013] Optionally, determining the business node to be downgraded based on the relationship between the downgraded business fields, field values, rule types, and sub-rules includes: for each sub-rule, determining a second set of business nodes based on the downgraded business fields, field values, and rule types; and determining the business node to be downgraded based on the relationship between the sub-rules and the second set of business nodes corresponding to each sub-rule.

[0014] Optionally, before obtaining the service degradation configuration information according to the service request, the following steps are included: configuring the service degradation configuration information based on the management and maintenance interface of the management terminal, and the degradation configuration includes: degradation authorization configuration, degradation switch configuration, degradation condition configuration and degradation rule configuration.

[0015] Optionally, before obtaining the service degradation configuration information according to the service request, the method further includes: determining that the service degradation switch has been turned on; the activation method of the service degradation switch includes: automatic activation and manual activation; the automatic activation includes: activating the service degradation switch according to a preset activation time.

[0016] Optionally, the service request includes an authorization key; before obtaining the service degradation configuration information according to the service request, the method further includes: obtaining the first authorization key of the client from the database according to the client identifier corresponding to the service request; and performing authorization verification on the client according to the first authorization key and the authorization key.

[0017] Optionally, after performing downgrade processing on the business node to be downgraded according to the downgrade rules, the method further includes: notifying the management terminal of the downgrade information of each business node, and storing the downgrade information of the business node in the information storage unit via data service.

[0018] According to a second aspect of the present invention, a service degradation apparatus is provided, comprising:

[0019] The configuration information acquisition module is used to acquire the degradation configuration information of the service according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and field values.

[0020] The judgment module is used to determine whether the service needs to be downgraded based on the downgrade conditions;

[0021] The module for obtaining the node to be downgraded is used to determine the business node to be downgraded based on the downgraded business field, field value, and rule type when the business needs to be downgraded, wherein the business includes at least one business node;

[0022] The degradation module is used to perform degradation processing on the service node to be downgraded according to the degradation rules.

[0023] According to a third aspect of the present invention, an electronic device for service degradation is provided, characterized in that it comprises:

[0024] One or more processors;

[0025] Storage device for storing one or more programs.

[0026] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiments of the present invention.

[0027] According to a fourth aspect of the present invention, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first aspect of the present invention.

[0028] One embodiment of the invention has the following advantages or beneficial effects: By obtaining the service degradation configuration information according to the service request, the degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values, and rule types. The rule type indicates the relationship between the degradation service fields and field values. The system determines whether the service needs to be degraded based on the degradation conditions. If the service needs to be degraded, the system determines the service node to be degraded based on the degradation service fields, field values, and rule types. The service includes at least one service node. The technical solution of degrading the service node to be degraded according to the degradation rules achieves the determination of the service node to be degraded based on the configured degradation conditions and rules, and performs refined degradation processing on the service node to be degraded according to the degradation rules. This not only completes refined degradation at the service node level but also improves the user experience, avoids the risk of affecting service revenue due to service degradation, and minimizes the impact of service degradation. Attached Figure Description

[0029] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0030] Figure 1 This is a schematic diagram of the main process of the service degradation method according to an embodiment of the present invention;

[0031] Figure 2 This is a schematic diagram illustrating the principle of service degradation in an embodiment of the present invention;

[0032] Figure 3 This is a schematic diagram of the main modules of the service degradation device according to an embodiment of the present invention;

[0033] Figure 4 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0034] Figure 5 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0035] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0036] Downgrading services using existing technology in a one-size-fits-all manner prevents other normal users from accessing the service, which not only reduces user experience and causes user churn but may also directly impact business revenue, failing to meet practical application needs.

[0037] To address the aforementioned problems in existing technologies, this invention proposes a business degradation method. Based on configured degradation conditions and rules, the method identifies the business nodes to be degraded and performs refined degradation processing on these nodes according to the degradation rules. This not only achieves refined degradation at the business node level but also improves the user experience, avoids the risk of impacting business revenue due to business degradation, and minimizes the impact of business degradation.

[0038] In the description of the embodiments of the present invention, the terms involved and their meanings are as follows:

[0039] MySQL: A relational database.

[0040] JES: A distributed full-text search cluster, which in this invention provides a distributed, multi-user-capable full-text search engine;

[0041] DUCC: A dynamic distributed configuration center that enables centralized management of configurations in this invention, and pushes configuration changes to the application in near real-time.

[0042] Schedule: A distributed task scheduling system based on the Quartz task scheduling framework;

[0043] CGLIB: A powerful, high-performance, high-quality code generation library that can extend Java classes and implement Java interfaces at runtime. Hibernate (an open-source object-relational mapping framework) supports it to dynamically generate PO (Persistent Object) bytecode.

[0044] JMQ: A message queue that provides a reliable message middleware platform for delivering messages and data in this invention, with high availability, scalability, and maintainability.

[0045] Figure 1 This is a schematic diagram of the main flow of the service degradation method according to an embodiment of the present invention, as shown below. Figure 1 As shown, the service degradation method of this embodiment includes the following steps S101 to S104.

[0046] Step S101: Obtain the service degradation configuration information according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and field values.

[0047] Specifically, the business degradation method of the present invention can be used to actively degrade some business nodes due to business-level reasons, or to passively degrade some business nodes due to system anomalies or other problems. Before the client business request begins processing, degradation configuration information issued by the configuration center of the management end is obtained. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include the business fields involved in the degradation, the corresponding business field values, and the rule type. The rule type indicates the relationship between the business fields involved in the degradation and the corresponding business field values, such as: equal, contain, not contain, etc.

[0048] According to one embodiment of the present invention, before obtaining the service degradation configuration information according to the service request, the method includes: configuring the service degradation configuration information based on the management and maintenance interface of the management terminal, and the degradation configuration includes: degradation authorization configuration, degradation switch configuration, degradation condition configuration and degradation rule configuration.

[0049] Specifically, in actual business degradation processing, business degradation is implemented through business switches. Since a business involves at least one business node, multiple degradation switches need to be created in each business process. These switches are scattered throughout the business system program. With business updates, nesting, or changes in developers, the lack of management of degradation switches can easily lead to oversights or omissions, hindering later maintenance and use. To solve this technical problem, this invention uses a unified management and maintenance interface on the management side to create and maintain business degradation switches. The business system only needs to connect and use them, eliminating the need for repeated development and maintenance. Business degradation configuration is performed through the management and maintenance interface created on the management side, including degradation authorization configuration, degradation switch configuration, degradation condition configuration, and degradation rule configuration. The management and maintenance interface also supports querying business degradation results.

[0050] The downgrade authorization configuration includes: configuring basic information of the service and authorized members for the service downgrade operation; generating the usage key of the authorized members and persisting the key to the database.

[0051] Specifically, in the access application management module of the management and maintenance interface, the downgrade authorization configuration is performed. The specific configuration includes: filling in the business type code, configuring the authorized members for business downgrade operations, and only the authorized members can operate the downgrade switch under the business application to ensure the safe and standardized use of the business downgrade switch; then, the management end uses an algorithm to randomly generate the usage key of the client authorized members according to the authorized members, and persistently saves the key to the MySQL relational database.

[0052] Through the above-mentioned downgrade authorization configuration, the management end can record basic information of business applications, authorize users for downgraded business applications, and manage the ownership of business downgrade switches.

[0053] In addition, after completing the above-mentioned downgrade authorization configuration, it is also necessary to configure the downgrade conditions and downgrade switches in the management and maintenance interface. The downgrade conditions configuration is used to determine whether the service needs to be downgraded. The downgrade switch configuration is done by creating a downgrade switch in the downgrade switch management module of the management and maintenance interface and filling in the basic configuration description information, including: the business line to which it belongs, the business application, the impact and other necessary information for later maintenance.

[0054] Accordingly, in the degradation switch created by the degradation switch management module of the above management and maintenance interface, business degradation rules are configured. The degradation rule configuration includes: configuring the business fields, field values, and rule types involved in the degradation rule; configuring the relationship between the sub-rules when the degradation rule is composed of multiple sub-rules; and configuring the default response result after business degradation to facilitate subsequent querying of the degradation results of business nodes.

[0055] Additionally, the degradation rule configuration includes configuring the activation method of the service degradation switch, which includes automatic activation and manual activation. For service degradation that needs to be automatically activated, the activation time of the service degradation switch is configured in the aforementioned management and maintenance interface; when the activation time is met, the status of the aforementioned degradation switch is automatically changed to activated; the client's configuration center sends the configured service degradation information to the client. For service degradation that needs to be manually activated, after creating and publishing the service degradation switch in the aforementioned management and maintenance interface, the status of the degradation switch is activated; similarly, the client's configuration center sends the configured service degradation information to the client.

[0056] The unified management and maintenance interface enables the maintenance and management of the business degradation switch, solving the problem of lack of unified maintenance and management of degradation switches in existing technologies, and reducing the development and maintenance costs of business degradation.

[0057] According to another embodiment of the present invention, before obtaining the service degradation configuration information according to the service request, the method further includes: determining that the service degradation switch has been turned on; the method of turning on the service degradation switch includes: automatic turning on and manual turning on; the automatic turning on includes: turning on the service degradation switch according to a preset turning time.

[0058] Specifically, before a business requests the degraded configuration information for that business, it needs to determine whether the business degrade switch has been turned on. Only when the business degrade switch is turned on can the configuration information from the management and maintenance interface be sent to the client via the configuration center, allowing the business degrade configuration information to be obtained. Depending on the business needs, the business degrade switch can be turned on automatically or manually. When the business degrade switch is turned on automatically, the management end creates a scheduled task through the task scheduling platform Schedule based on the pre-set start time. When the task is triggered, it checks whether the start time has arrived. If the start time has arrived, the switch is turned on, and the configuration information is sent to the client via the configuration center. When the business degrade switch is turned on manually, the switch is turned on after the degrade switch is published, and the configuration information is sent to the client via the configuration center.

[0059] According to another embodiment of the present invention, the service request includes an authorization key; before obtaining the service degradation configuration information according to the service request, the method further includes: obtaining the first authorization key of the client from the database according to the client identifier corresponding to the service request; and performing authorization verification on the client according to the first authorization key and the authorization key.

[0060] Specifically, since service degradation has personalized degradation schemes, different client members have different service degradation schemes. The authorization configuration information can be obtained through the authorization configuration of the management and maintenance interface. Before obtaining the service degradation configuration information according to the service request, the management terminal obtains the authorization key and client identifier in the service request, and retrieves the first authorization key corresponding to the client identifier from the key storage database. The authorization key in the service request is verified according to the first authorization key. If the verification is successful, the client has the corresponding service degradation usage permission.

[0061] Step S102: Determine whether the service needs to be downgraded based on the downgrade conditions.

[0062] According to one embodiment of the present invention, the degradation condition includes a business method name; determining whether the business needs to be downgraded based on the degradation condition includes: obtaining the business method name from the business program of the business; matching the business method name with the degradation condition; and determining that the business needs to be downgraded if the match is successful.

[0063] Specifically, the degradation conditions include the business method name. Before the business is executed, its program is intercepted to obtain the business method name, such as the getGoodsInfo method name. The intercepted business method name is then matched with the degradation conditions. If a match is found, the business needs to be downgraded. If no match is found, the business does not need to be downgraded and can be executed according to the normal business execution process.

[0064] Step S103: If the service needs to be downgraded, determine the service node to be downgraded based on the downgraded service field, field value and rule type. The service includes at least one service node.

[0065] According to one embodiment of the present invention, determining the business node to be downgraded based on the downgraded business field, the field value, and the rule type includes: obtaining a first set of business nodes related to the downgraded business field based on the downgraded business field; and selecting the business node to be downgraded from the first set of business nodes based on the field value and the rule type.

[0066] Specifically, a service includes multiple service nodes. When it is determined that the service needs to be downgraded, based on the downgrade rules in the configuration information, according to the service fields in the downgrade rules, a first set of service nodes related to the downgraded service fields is obtained. This first set of service nodes includes the service nodes to be downgraded. According to the field value and rule type of the downgrade rule (EQUAL: equal, IN: contains, NOT IN: does not contain, etc.), the service nodes that meet the requirements of the field value and rule type are selected from the first set of service nodes to obtain the service nodes to be downgraded.

[0067] According to another embodiment of the present invention, when the degradation rule is composed of multiple sub-rules, the degradation rule further includes: the relationship between the sub-rules; the method further includes: determining the business node to be degraded based on the relationship between the degradation business field, field value, rule type and sub-rules.

[0068] According to another embodiment of the present invention, determining the business node to be downgraded based on the relationship between the downgraded business field, field value, rule type, and sub-rule includes: for each sub-rule, determining a second set of business nodes based on the downgraded business field, field value, and rule type; and determining the business node to be downgraded based on the relationship between the sub-rules and the second set of business nodes corresponding to each sub-rule.

[0069] Specifically, a degradation rule can be a single rule or a collection of multiple sub-rules. When the degradation rule is composed of multiple sub-rules, it further includes logical relationships between the sub-rules, such as AND or OR. Correspondingly, the method for determining the business node to be downgraded includes: for each sub-rule, determining a set of second business nodes that satisfy the degradation business field, field value, and rule type requirements of the degradation sub-rule; and determining the business node to be downgraded based on the logical relationships between the sub-rules and the set of second business nodes corresponding to each sub-rule. For example, the proposed degradation rule is: ShopId is a field value of 1 and product S... If KU is field value 2, the degradation switch is triggered. This rule contains two sub-rules, and the main configurations are as follows: Rule 1: Product SKU -> IN -> Field value 1; Rule 2: ShopId -> IN -> Field value 2. The relationship between Rule 1 and Rule 2 is AND. Product SKU and ShopId are the degradation business fields, and IN is the rule type. This example rule can be used to filter out the problematic product when business operations find that there is a problem with the product information of a certain product. This can be achieved by setting the degradation rule of the product SKU of ShopId, without affecting the business of other products of ShopId, thus realizing refined business degradation.

[0070] Step S104: Perform downgrade processing on the service node to be downgraded according to the downgrade rules.

[0071] Specifically, based on the business nodes to be downgraded as determined above, the business downgrade program or business downgrade logic is invoked to perform downgrade processing. The downgrade program / logic can be to restore the business node initialization or to set the business node to be downgraded to null, etc. The specific downgrade program / logic is designed according to the downgrade requirements and is not limited here.

[0072] According to one embodiment of the present invention, after performing degradation processing on the business node to be downgraded according to the degradation rules, the method further includes: notifying the management terminal of the degradation information of each business node, and storing the degradation information of the business node in the information storage unit via data service.

[0073] Specifically, after the business node degradation is completed, the client notifies each business node of the management terminal of the business node degradation information through the data interaction interface or MQ message, and stores the business degradation information in the information storage unit ES (JES) via the data service so that the management terminal can monitor the actual business node degradation effect.

[0074] In addition, the service degradation method described in this invention is implemented as a client-specific software toolkit.

[0075] Specifically, the configuration items of the client JAR package are configured, including the switch for accessing business applications, the ID of the access application, and the key, so that the management end can distinguish the client's access to business applications and authorize the use of members; the client JAR package uses CGLIB dynamic proxy to implement the above-mentioned specific business degradation processing method.

[0076] By referencing a proprietary client JAR package, the JAR package intercepts the business programs of the business system according to the configured rule values. If the degradation conditions are matched, fine-grained business degradation is performed at the business node level according to the degradation rules. The business system only needs to connect and use it, without having to repeatedly develop and maintain related logic, thus reducing the development and maintenance costs of business degradation.

[0077] Figure 2 This is a schematic diagram illustrating the principle of service degradation in this embodiment of the invention. The data interaction interface, data service, management and maintenance interface, configuration center, task scheduling platform, information storage, and configuration storage are all located on the management side. Client access is an access application referencing a client JAR package. Before executing service degradation, an access application needs to be created in the management and maintenance interface for degradation authorization configuration. This configuration is persisted to the MySQL database in the configuration storage via the data service, facilitating subsequent reading of configuration information during service degradation. A degradation switch is created through the management and maintenance interface, and degradation rules are configured within this switch. When the degradation switch is set to automatic, the backend application creates a scheduled task through the task scheduling platform. When the service execution time meets the scheduled time, the degradation switch is activated, and then the configuration center is called to send degradation configuration information to the client access. When the degradation switch is set to manual, the management... Once the degradation switch is published in the operation and maintenance interface, it takes effect immediately. The configuration center sends degradation configuration information to the client access. After the client access obtains the service degradation configuration information, it performs fine-grained degradation of the service node according to the degradation rules in the degradation configuration information, provided that the set degradation conditions are met. After the degradation is completed, the degradation information is sent to the information storage (JES) by calling the data interaction interface of the management terminal. At the same time, when the management and operation and maintenance interface needs to query the degradation result of the configured service degradation switch, it obtains the degradation effect status of the service node by reading the degradation information in the information storage (JES).

[0078] Figure 3 This is a schematic diagram of the main modules of a service degradation device according to an embodiment of the present invention. Figure 3 As shown, the service degradation device 300 mainly includes a configuration information acquisition module 301, a judgment module 302, a node to be downgraded acquisition module 303, and a degradation module 304.

[0079] The configuration information acquisition module 301 is used to acquire the degradation configuration information of the service according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and field values.

[0080] The judgment module 302 is used to determine whether the service needs to be downgraded based on the downgrade conditions;

[0081] The module 303 for obtaining the node to be downgraded is used to determine the business node to be downgraded based on the downgraded business field, field value and rule type when the business needs to be downgraded, wherein the business includes at least one business node;

[0082] The downgrade module 304 is used to downgrade the service node to be downgraded according to the downgrade rules.

[0083] Specifically, the downgrade conditions include the business method name; the judgment module 302 is used to: obtain the business method name from the business program of the business; match the business method name with the downgrade conditions; and if the match is successful, determine that the business needs to be downgraded.

[0084] Specifically, the node acquisition module 303 is used to: acquire a first set of business nodes related to the downgrade business field according to the downgrade business field; and select a business node to be downgraded from the first set of business nodes according to the field value and rule type.

[0085] Specifically, when the degradation rule is composed of multiple sub-rules, the degradation rule also includes: the relationship between the sub-rules; the business degradation device 300 also includes a node acquisition sub-module (not shown in the figure) for: determining the business node to be degraded based on the relationship between the degradation business field, field value, rule type and sub-rules.

[0086] Specifically, the submodule for obtaining the node to be downgraded (not shown in the figure) is used to: determine a second set of business nodes for each sub-rule based on the downgraded business field, field value, and rule type; and determine the business node to be downgraded based on the relationship between the sub-rules and the second set of business nodes corresponding to each sub-rule.

[0087] Specifically, the service degradation device 300 further includes a configuration module (not shown in the figure) for configuring service degradation configuration information based on the management and maintenance interface of the management terminal before obtaining service degradation configuration information according to the service request, and the degradation configuration includes: degradation authorization configuration, degradation switch configuration, degradation condition configuration and degradation rule configuration.

[0088] Specifically, the service degradation device 300 further includes a degradation switch activation module (not shown in the figure) for: determining that the service degradation switch has been activated before obtaining the service degradation configuration information according to the service request; the activation mode of the service degradation switch includes: automatic activation and manual activation; the automatic activation includes: activating the service degradation switch according to a preset activation time.

[0089] Specifically, the service degradation device 300 further includes an authorization verification module (not shown in the figure) for: obtaining the first authorization key of the client from the database according to the client identifier corresponding to the service request before obtaining the service degradation configuration information according to the service request; and performing authorization verification on the client according to the first authorization key and the authorization key.

[0090] Specifically, the service degradation device 300 further includes a result storage module (not shown in the figure) for: after performing degradation processing on the service node to be degraded according to the degradation rules, notifying the management terminal of the degradation information of each service node, and storing the degradation information of the service node in the information storage unit via data service.

[0091] Figure 4 This is an exemplary system architecture diagram 400 in which embodiments of the present invention can be applied.

[0092] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, and 403, a network 404, and a server 405. Network 404 serves as the medium for providing communication links between terminal devices 401, 402, and 403 and server 405. Network 404 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0093] Users can use terminal devices 401, 402, and 403 to interact with server 405 via network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, and 403, such as service degradation applications and fine-grained service degradation applications (for example only).

[0094] Terminal devices 401, 402, and 403 can be various electronic devices with displays that support web browsing, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0095] Server 405 can be a server providing various services, such as a backend management server supporting service degradation performed by users using terminal devices 401, 402, and 403 (this is just an example). The backend management server can obtain service degradation configuration information based on service requests. This degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values, and rule types. The rule type indicates the relationship between the degradation service fields and field values. The server determines whether the service needs to be degraded based on the degradation conditions. If the service needs to be degraded, it determines the service node to be degraded based on the degradation service fields, field values, and rule types. The service includes at least one service node. The server performs degradation processing on the service node to be degraded according to the degradation rules and feeds back the processing results (e.g., service degradation information – this is just an example) to the terminal device.

[0096] It should be noted that the service degradation method provided in this embodiment of the invention is generally executed by server 405, and correspondingly, the service degradation device is generally set in server 405.

[0097] It should be understood that Figure 4 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0098] The following is for reference. Figure 5 It shows a schematic diagram of the structure of a computer system 500 suitable for implementing terminal devices or servers of the present invention. Figure 5 The terminal device or server shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.

[0099] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 502 or programs loaded from storage section 508 into random access memory (RAM) 503. The RAM 503 also stores various programs and data required for the operation of the system 500. The CPU 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0100] The following components are connected to I / O interface 505: an input section 506 including a keyboard, mouse, etc.; an output section 507 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to I / O interface 505 as needed. A removable medium 511, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 510 as needed so that computer programs read from it can be installed into storage section 508 as needed.

[0101] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 509, and / or installed from removable medium 511. When the computer program is executed by central processing unit (CPU) 501, it performs the functions defined above in the system of this invention.

[0102] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0104] The units described in the embodiments of the present invention can be implemented in software or in hardware. The described units can also be housed in a processor; for example, a processor can be described as including: a configuration information acquisition module, a judgment module, a node to be downgraded acquisition module, and a downgrade module.

[0105] In some cases, the names of these modules do not constitute a limitation on the module itself. For example, a degradation module can also be described as "a module for performing degradation processing on the service node to be degraded according to the degradation rules".

[0106] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs, which, when executed by the device, cause the device to include: obtaining service degradation configuration information according to a service request, the degradation configuration information including degradation conditions and degradation rules, the degradation rules including degradation service fields, field values, and rule types, the rule type indicating the relationship between the degradation service fields and the fields; determining whether the service needs to be degraded according to the degradation conditions; if the service needs to be degraded, determining the service node to be degraded according to the degradation service fields, field values, and rule types, the service including at least one service node; and performing degradation processing on the service node to be degraded according to the degradation rules.

[0107] The technical solution of the present invention has the following advantages or beneficial effects: by obtaining the degradation configuration information of the service according to the service request, the degradation configuration information includes degradation conditions and degradation rules, the degradation rules include degradation service fields, field values ​​and rule types, and the rule type indicates the relationship between the degradation service fields and field values; it is determined whether the service needs to be degraded according to the degradation conditions; if the service needs to be degraded, the service node to be degraded is determined according to the degradation service fields, field values ​​and rule types, the service includes at least one service node; the technical solution of degrading the service node to be degraded according to the degradation rules realizes the determination of the service node to be degraded based on the configured degradation conditions and rules, and the fine-grained degradation processing of the service node to be degraded according to the degradation rules, which not only completes the fine-grained degradation at the service node level, but also improves the user experience, avoids the risk of affecting service revenue due to service degradation, and minimizes the impact of service degradation. The specific implementation method described does not constitute a limitation on the scope of protection of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention shall be included within the scope of protection of this invention.

Claims

1. A method for business degradation, characterized in that, include: The service degradation configuration information is obtained according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and the fields. Determine whether the service needs to be downgraded based on the downgrade conditions; When the service needs to be downgraded, the service node to be downgraded is determined according to the downgraded service field, field value and rule type, and the service includes no less than one service node; The step of determining the business node to be downgraded based on the downgraded business field, field value, and rule type includes: obtaining a first set of business nodes related to the downgraded business field based on the downgraded business field; and selecting the business node to be downgraded from the first set of business nodes based on the field value and rule type. When the degradation rule is composed of multiple sub-rules, the degradation rule also includes: the relationship between the sub-rules; When the business needs to be downgraded, the business nodes to be downgraded are determined based on the relationship between the downgraded business fields, field values, rule types, and sub-rules, including: for each sub-rule, determining a second set of business nodes based on the downgraded business fields, field values, and rule types; and determining the business nodes to be downgraded based on the relationship between the sub-rules and the second set of business nodes corresponding to each sub-rule. The service node to be downgraded is downgraded according to the downgrade rules; the service downgrade method is implemented as a client-specific software toolkit. The downgrade process for the business node to be downgraded according to the downgrade rules includes: calling a business downgrade program or business downgrade logic to perform downgrade processing based on the business node to be downgraded, wherein the downgrade program or business downgrade logic is to initialize the business node to be downgraded or to set the business node to be downgraded to null.

2. The method according to claim 1, characterized in that, The downgrade conditions include the business method name; Determining whether the service needs to be downgraded based on the aforementioned downgrade conditions includes: Obtain the business method name from the business procedure of the business; Match the business method name with the degradation condition; If a match is found, it is determined that the service needs to be downgraded.

3. The method according to claim 1, characterized in that, Before obtaining the service degradation configuration information based on the service request, the following is included: The management and maintenance interface of the management terminal configures the service degradation configuration information, and the degradation configuration includes: degradation authorization configuration, degradation switch configuration, degradation condition configuration and degradation rule configuration.

4. The method according to claim 1, characterized in that, Before obtaining the downgrade configuration information for the service based on the service request, the process also includes: It has been confirmed that the business degradation switch has been turned on; The service degradation switch can be activated in two ways: automatic activation and manual activation. The automatic activation includes: activating the service degradation switch according to a preset activation time.

5. The method according to claim 1, characterized in that, The service request includes an authorization key; Before obtaining the downgrade configuration information for the service based on the service request, the process also includes: The first authorization key of the client is obtained from the database based on the client identifier corresponding to the service request; The client is authorized and verified based on the first authorization key and the authorization key.

6. The method according to claim 1, characterized in that, After performing degradation processing on the service node to be downgraded according to the degradation rules, the process further includes: The management terminal is notified of the degradation information of each business node, and the degradation information of the business nodes is stored in the information storage unit via data service.

7. A service degradation device, characterized in that, include: The configuration information acquisition module is used to acquire the degradation configuration information of the service according to the service request. The degradation configuration information includes degradation conditions and degradation rules. The degradation rules include degradation service fields, field values ​​and rule types. The rule type indicates the relationship between the degradation service fields and field values. The judgment module is used to determine whether the service needs to be downgraded based on the downgrade conditions; The module for obtaining the node to be downgraded is used to determine the business node to be downgraded based on the downgraded business field, field value, and rule type when the business needs to be downgraded, wherein the business includes at least one business node; The module for obtaining nodes to be downgraded is further configured to obtain a first set of business nodes related to the downgrade business field based on the downgrade business field; and select business nodes to be downgraded from the first set of business nodes based on the field value and rule type. When the degradation rule is composed of multiple sub-rules, the degradation rule also includes: the relationship between the sub-rules; The submodule for obtaining nodes to be downgraded is used to determine the business nodes to be downgraded based on the relationship between the downgraded business fields, field values, rule types, and sub-rules when the business needs to be downgraded. The submodule for obtaining nodes to be downgraded is further configured to: determine a second set of business nodes for each sub-rule based on the downgraded business field, field value, and rule type; and determine the business node to be downgraded based on the relationship between the sub-rules and the second set of business nodes corresponding to each sub-rule. The degradation module is used to degrade the business node to be degraded according to the degradation rules; the business degradation method is implemented as a client-specific software toolkit. The degradation module is further configured to call a business degradation program or business degradation logic to perform degradation processing based on the business node to be degraded. The degradation program or business degradation logic is to initialize the business node to be degraded or to set the business node to be degraded to null.

8. A mobile electronic device terminal, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.

9. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Service degradation processing method and device and electronic equipment

    CN111262898A