Client-based service degradation method, system and equipment and medium
By configuring the service monitoring module on the client and dynamically adjusting the downgrade strategy, the poor user experience caused by the downgrade on the traditional server is solved, the service pressure is alleviated and system availability is improved, and the diversified equipment and network environments are adapted to diversified equipment and network environments.
Patent Information
- Application Number
- CN202411236836.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-06
AI Technical Summary
Traditional service downgrades are usually carried out on the server side, resulting in poor user experience and inability to meet the needs of diverse client devices and network environments. The downgrade of the back-end server side alone is not enough to cope with the development of the Internet and the Internet of Things.
Configure the service monitoring module on the client, monitor service requests and start the downgrade function when the response time exceeds the threshold, and dynamically adjust the downgrade strategy based on network status and service response time, including displaying cached data, hiding some functions, reducing the frequency of data requests and providing users with Tip: Regularly analyze user feedback to adjust the downgrade plan.
Through client service downgrade, service pressure can be alleviated, user satisfaction can be improved, interruption losses can be reduced, back-end service pressure can be reduced, system availability can be improved, different usage scenarios and network conditions can be used to avoid large-scale architecture transformation, simple implementation and low cost.
Smart Images

Figure CN119094355A_ABST
Abstract
Description
Background Art
[0002] In network applications, service stability and availability are important indicators for measuring service performance. The service implementation process is achieved through the interaction between the client and the server. The client is user-oriented, while the server is the core processing logic of the service. Users use the service by connecting the client to the backend server. With the increase in the frequency of interaction between the Internet and users, the backend server faces increasing pressure, which often leads to problems such as service crashes and response delays, which seriously affects the user experience and causes business losses.
[0003] The solution to prevent service crashes is to downgrade the service, which means reducing some of the service or interface functions, providing only some functions, or completely stopping all functions. The purpose of service downgrade is to prioritize core business. In specific use, you can estimate the traffic peak, reduce the service experience in advance by configuring functions, or suspend secondary functions to ensure that the main process functions of the service respond smoothly. Traditional service degradation is usually performed on the server side. When the service cannot meet the demand, it protects the system by returning error information or stopping certain functions. Although this method can relieve pressure, it will lead to poor user experience. In addition, with the development of the Internet and the Internet of Things, client users' devices and network environments are different, and user needs are becoming increasingly diverse. Backend server downgrade alone obviously cannot meet the needs.
[0004] This is a shortcoming of the prior art. Therefore, it is very necessary to provide a client-based service degradation method, system, device and medium to address the above-mentioned defects in the prior art. Summary of the invention
[0005] The above-mentioned traditional service downgrade is usually performed on the server side, which can relieve pressure but will lead to poor user experience. In addition, with the development of the Internet and the Internet of Things, the devices and network environments of client users are different, and user needs are becoming increasingly diverse. It is obvious that back-end server downgrade alone cannot meet the needs. The present invention provides a client-based service downgrade method, system, device and medium to solve the above-mentioned technical problems.
[0006] In a first aspect, the present invention provides a client-based service degradation method, comprising the following steps: S1. Configure the service monitoring module on the service client; S2. The service monitoring module monitors the service request of the client and starts the client downgrade function when the service request has not been responded to for a time greater than a threshold; S3. The service monitoring module collects the network status of the client, starts a pre-defined client downgrade plan according to the client's network status, and regularly updates the client downgrade plan or turns off the client downgrade function according to the client's service response time and network status; S4. The service monitoring module regularly collects and analyzes client usage and user feedback data, and adjusts the pre-defined client downgrade plan based on the analysis results.
[0007] Furthermore, the specific steps of step S1 are as follows: S11. Configure the service monitoring module on the service client; S12. Set up API interface and user port for service monitoring module; S13. Establish a connection between the service monitoring module and the backend server; S14. Predefine a client downgrade plan on the backend server, save the predefined client downgrade plan and the corresponding network status level to the service monitoring module through the API interface, and save the predefined service response threshold to the service monitoring module through the API interface.
[0008] Furthermore, the client downgrade scheme includes a combination of several single client downgrade strategies and different client downgrade strategies; The client downgrade strategy includes display cache data strategy, hiding some functions strategy, reducing data request frequency strategy and providing user enlightenment strategy; The network status level corresponds to a network parameter range, and the network parameter range includes network delay, packet loss rate and network speed.
[0009] Furthermore, the cache data display strategy is to first detect whether the data in the local cache validity period matches the data requested by the user through the client, and directly return it from the local cache if it matches; The strategy of hiding some functions is to pre-classify the client functions into basic functions and additional functions, allowing the use of basic functions and disabling additional functions; The strategy for reducing the data request frequency is to predefine a basic data request frequency, reduce the basic data request frequency according to a set ratio, and use the client to request data from the backend server using the reduced backend data request frequency; The strategy of providing user prompts is to display the network status to the user through a pop-up window or prompt box, and suggest the user to try again later.
[0010] Furthermore, the specific steps of step S2 are as follows: S21. The service monitoring module detects the service request of the client and counts the abnormal service requests that have not received a response from the server; S22. The service monitoring module identifies the waiting time for the abnormal service request not received, and determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S23; If not, return to step S21; S23. The service monitoring module starts the client downgrade function.
[0011] Furthermore, the specific steps of step S3 are as follows: S31. The service monitoring module collects the client's network status through a network detection tool and identifies the network status level; S32. The service monitoring module determines the client downgrade solution to be used according to the network status level and executes the client downgrade; S33. The service monitoring module collects the client's network status through the network detection tool and determines whether the network status is normal; If yes, disable the client downgrade function, collect user feedback through the user port, and return to step S2; If not, proceed to step S34; S34. The service monitoring module detects the service request of the client, counts the abnormal service request that has not received a response from the server, and identifies the waiting time for the abnormal service request that has not been received; S35. The service monitoring module determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S36; If not, maintain the original client downgrade solution and proceed to step S4; S36. The service monitoring module collects the network status of the client through the network detection tool, identifies the network status level, and changes the client downgrade plan used according to the network status level, and enters step S4.
[0012] Furthermore, the specific steps of step S4 are as follows: S41. The service monitoring module determines whether the preset analysis period has been reached; If yes, go to step S42; If not, return to step S33; S42. The service monitoring module counts the usage of the client and collects user feedback, analyzes downgraded application scenarios and user problems, and launches the analysis results to the backend server through the API interface using asynchronous request mode; S43. The backend server adjusts the predefined client downgrade plan according to the analysis results and returns it to the service monitoring module through the API interface.
[0013] In a second aspect, the present invention provides a client-based service degradation system, comprising: A service monitoring module configuration unit, used to configure the service monitoring module on the client side of the service; A service request monitoring unit, used to monitor the service request of the client in the service monitoring module, and start the client downgrade function when the service request unresponse time is greater than a threshold; The client downgrade unit is used to collect the network status of the client in the service monitoring module, start the pre-defined client downgrade plan according to the network status of the client, and regularly update the client downgrade plan or close the client downgrade function according to the service response time and network status of the client; The data analysis unit is used to regularly collect and analyze client usage and user feedback data in the service monitoring module, and adjust the pre-defined client downgrade plan according to the analysis results.
[0014] In a third aspect, the present invention provides an electronic device, including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in the first aspect above.
[0015] In a fourth aspect, the present invention provides a storage medium, The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in the first aspect.
[0016] The beneficial effects of the present invention are: The client-based service degradation method, system, device and medium provided by the present invention can alleviate service pressure by downgrading client services, and can monitor the degradation strategy, improve user satisfaction, reduce losses caused by service interruptions, reduce the pressure load on the back-end server, and improve the overall availability of the service system. It can dynamically adjust the service degradation strategy according to different usage scenarios, user needs and network conditions, avoid large-scale transformation of the back-end server architecture, and has a simple implementation process and low development and maintenance costs.
[0017] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0018] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 It is a flow chart of the client-based service degradation method of the present invention.
[0021] Figure 2 It is a schematic diagram of the client-based service degradation system of the present invention. DETAILED DESCRIPTION
[0022] The client-based service degradation method can be applied to one or more electronic devices, wherein the electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0023] An electronic device can be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), an interactive network television (IPTV), etc. The network in which the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] See also Figure 1 The following is a client-based service degradation method in a specific implementation, comprising the following steps: S1. Configure the service monitoring module on the service client; S2. The service monitoring module monitors the service request of the client and starts the client downgrade function when the service request has not been responded to for a time greater than a threshold; S3. The service monitoring module collects the network status of the client, starts a pre-defined client downgrade plan according to the client's network status, and regularly updates the client downgrade plan or turns off the client downgrade function according to the client's service response time and network status; S4. The service monitoring module regularly collects and analyzes client usage and user feedback data, and adjusts the pre-defined client downgrade plan based on the analysis results.
[0026] In this embodiment, the specific steps of step S1 are as follows: S11. Configure the service monitoring module on the service client; S12. Set up API interface and user port for service monitoring module; S13. Establish a connection between the service monitoring module and the backend server; S14 pre-defines the client downgrade scheme in the back-end server, and saves the pre-defined client downgrade scheme and the corresponding network status level to the service monitoring module through the API interface, and saves the pre-defined service response threshold to the service monitoring module through the API interface; It should be noted that the implementation of the client downgrade solution is modularized through the service monitoring module, and the edge and backend server architectures are seamlessly integrated to support different application scenarios, such as e-commerce, social networking, and content distribution. At the same time, the API interface facilitates the backend server to access the service monitoring module and expand the downgrade function, and the user port is used to receive user feedback to collect user experience of the client downgrade solution; The client downgrade scheme includes a combination of several single client downgrade strategies and different client downgrade strategies; The client downgrade strategy includes display cache data strategy, hiding some functions strategy, reducing data request frequency strategy and providing user enlightenment strategy; The network status level corresponds to a network parameter range, and the network parameter range includes network delay, packet loss rate and network speed; The cache data display strategy is to first check whether the data in the local cache validity period matches the data requested by the user through the client, and directly return it from the local cache if it matches; The strategy of hiding some functions is to pre-classify the client functions into basic functions and additional functions, allowing the use of basic functions and disabling additional functions; Basic functions such as browsing and searching, and additional functions such as social analysis and content recommendation. By selectively disabling additional functions and retaining basic functions, the pressure on the backend server can be reduced. The strategy for reducing the data request frequency is to predefine a basic data request frequency, reduce the basic data request frequency according to a set ratio, and use the client to request data from the backend server by reducing the backend data request frequency; for example, by merging requests or reducing the data frequency to reduce the backend data request frequency, thereby reducing the burden on the backend server; The strategy of providing user prompts is to show the network status to the user through a pop-up window or prompt box, and suggest the user to try again later, so as to improve the user's understanding and patience; The specific steps of step S2 are as follows: S21. The service monitoring module detects the service request of the client and counts the abnormal service requests that have not received a response from the server; S22. The service monitoring module identifies the waiting time for the abnormal service request not received, and determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S23; If not, return to step S21; S23. The service monitoring module starts the client downgrade function; The specific steps of step S3 are as follows: S31. The service monitoring module collects the client's network status through a network detection tool and identifies the network status level; S32. The service monitoring module determines the client downgrade solution to be used according to the network status level and executes the client downgrade; S33. The service monitoring module collects the client's network status through the network detection tool and determines whether the network status is normal; If yes, disable the client downgrade function, collect user feedback through the user port, and return to step S2; If not, proceed to step S34; S34. The service monitoring module detects the service request of the client, counts the abnormal service request that has not received a response from the server, and identifies the waiting time for the abnormal service request that has not been received; S35. The service monitoring module determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S36; If not, maintain the original client downgrade solution and proceed to step S4; S36. The service monitoring module collects the network status of the client through the network detection tool, identifies the network status level, and changes the client downgrade scheme used according to the network status level, and proceeds to step S4; For example, after using the client downgrade solution that combines the strategy of reducing the frequency of data requests and the strategy of providing user enlightenment, if the waiting time for the client service request is still greater than the set service response threshold, a more radical client downgrade solution can be automatically switched to, such as the client downgrade solution that combines the strategy of adding a strategy of hiding some functions and the strategy of displaying cached data, so as to directly display cached data and disable non-core additional functions; On the contrary, if the network status improves, the client can turn off the client downgrade strategy and switch back to normal mode; The specific steps of step S4 are as follows: S41. The service monitoring module determines whether the preset analysis period has been reached; If yes, go to step S42; If not, return to step S33; S42. The service monitoring module counts the usage of the client and collects user feedback, analyzes downgraded application scenarios and user problems, and launches the analysis results to the backend server through the API interface using asynchronous request mode; S43. The backend server adjusts the predefined client downgrade plan according to the analysis results and returns it to the service monitoring module through the API interface.
[0027] It should be understood that the order of execution of the steps in the above embodiment does not mean that the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0028] The following is an embodiment of a client-based service degradation system provided by an embodiment of the present disclosure. The system and the client-based service degradation methods of the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the client-based service degradation system, reference can be made to the embodiment of the above-mentioned client-based service degradation method.
[0029] like Figure 2 As shown, the system includes: A service monitoring module configuration unit, used to configure the service monitoring module on the client side of the service; A service request monitoring unit, used to monitor the service request of the client in the service monitoring module, and start the client downgrade function when the service request unresponse time is greater than a threshold; The client downgrade unit is used to collect the network status of the client in the service monitoring module, start the pre-defined client downgrade plan according to the network status of the client, and regularly update the client downgrade plan or close the client downgrade function according to the service response time and network status of the client; The data analysis unit is used to regularly collect and analyze client usage and user feedback data in the service monitoring module, and adjust the pre-defined client downgrade plan according to the analysis results.
[0030] The client-based service degradation method provided by the present invention is a module and algorithm step of each example described in combination with the embodiments disclosed herein, and can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0031] Those skilled in the art will appreciate that the client-based service degradation method provided by the present invention can be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which can be collectively referred to as "circuit", "module" or "system" here.
[0032] In the non-transitory computer-readable storage medium storing the client-based service degradation method, it can be but not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0033] Although the present invention has been described in detail with reference to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention.
Claims
1. A client-based service degradation method, characterized in that: The steps include: S1. Configure the service monitoring module on the service client; S2. The service monitoring module monitors the service request of the client and starts the client downgrade function when the service request has not been responded to for a time greater than a threshold; S3. The service monitoring module collects the network status of the client, starts a pre-defined client downgrade plan according to the client's network status, and regularly updates the client downgrade plan or turns off the client downgrade function according to the client's service response time and network status; S4. The service monitoring module regularly collects and analyzes client usage and user feedback data, and adjusts the pre-defined client downgrade plan based on the analysis results.
2. The client-based service degradation method according to claim 1, characterized in that: The specific steps of step S1 are as follows: S11. Configure the service monitoring module on the service client; S12. Set up API interface and user port for service monitoring module; S13. Establish a connection between the service monitoring module and the backend server; S14. Predefine a client downgrade plan on the backend server, save the predefined client downgrade plan and the corresponding network status level to the service monitoring module through the API interface, and save the predefined service response threshold to the service monitoring module through the API interface.
3. The client-based service degradation method according to claim 2, characterized in that: The client downgrade scheme includes a combination of several single client downgrade strategies and different client downgrade strategies; The client downgrade strategy includes display cache data strategy, hiding some functions strategy, reducing data request frequency strategy and providing user enlightenment strategy; The network status level corresponds to a network parameter range, and the network parameter range includes network delay, packet loss rate and network speed.
4. The client-based service degradation method according to claim 3, characterized in that: The cache data display strategy is to first check whether the data in the local cache validity period matches the data requested by the user through the client, and directly return it from the local cache if it matches; The strategy of hiding some functions is to pre-classify the client functions into basic functions and additional functions, allowing the use of basic functions and disabling additional functions; The strategy for reducing the data request frequency is to predefine a basic data request frequency, reduce the basic data request frequency according to a set ratio, and use the client to request data from the backend server using the reduced backend data request frequency; The strategy of providing user prompts is to display the network status to the user through a pop-up window or prompt box, and suggest the user to try again later.
5. The client-based service degradation method according to claim 2, characterized in that: The specific steps of step S2 are as follows: S21. The service monitoring module detects the service request of the client and counts the abnormal service requests that have not received a response from the server; S22. The service monitoring module identifies the waiting time for the abnormal service request not received, and determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S23; If not, return to step S21; S23. The service monitoring module starts the client downgrade function.
6. The client-based service degradation method according to claim 5, characterized in that: The specific steps of step S3 are as follows: S31. The service monitoring module collects the client's network status through a network detection tool and identifies the network status level; S32. The service monitoring module determines the client downgrade solution to be used according to the network status level and executes the client downgrade; S33. The service monitoring module collects the client's network status through the network detection tool and determines whether the network status is normal; If yes, disable the client downgrade function, collect user feedback through the user port, and return to step S2; If not, proceed to step S34; S34. The service monitoring module detects the service request of the client, counts the abnormal service request that has not received a response from the server, and identifies the waiting time for the abnormal service request that has not been received; S35. The service monitoring module determines whether the waiting time is greater than the preset service response threshold; If yes, go to step S36; If not, maintain the original client downgrade solution and proceed to step S4; S36. The service monitoring module collects the network status of the client through the network detection tool, identifies the network status level, and changes the client downgrade plan used according to the network status level, and enters step S4.
7. The client-based service degradation method according to claim 6, characterized in that: The specific steps of step S4 are as follows: S41. The service monitoring module determines whether the preset analysis period has been reached; If yes, go to step S42; If not, return to step S33; S42. The service monitoring module counts the usage of the client and collects user feedback, analyzes downgraded application scenarios and user problems, and launches the analysis results to the backend server through the API interface using asynchronous request mode; S43. The backend server adjusts the predefined client downgrade plan according to the analysis results and returns it to the service monitoring module through the API interface.
8. A client-based service degradation system, characterized in that: include: A service monitoring module configuration unit, used to configure the service monitoring module on the client side of the service; A service request monitoring unit, used to monitor the service request of the client in the service monitoring module, and start the client downgrade function when the service request unresponse time is greater than a threshold; The client downgrade unit is used to collect the network status of the client in the service monitoring module, start the pre-defined client downgrade plan according to the network status of the client, and regularly update the client downgrade plan or close the client downgrade function according to the service response time and network status of the client; The data analysis unit is used to regularly collect and analyze client usage and user feedback data in the service monitoring module, and adjust the pre-defined client downgrade plan according to the analysis results.
9. An electronic device, characterized in that: including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the electronic device executes the method described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores instructions, which, when executed on a computer, enable the computer to execute the method described in any one of claims 1 to 7.
