Service request processing method and device, computer equipment, readable storage medium and program product
By probing and scheduling between cache nodes in different geographical areas of the CDN, the inter-provincial restriction problem caused by the difference in cross-provincial traffic settlement costs is solved, and the access quality and data transmission efficiency of CDN services are improved.
Patent Information
- Application Number
- CN202411717323.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-27
AI Technical Summary
Due to the differences in cross-provincial traffic settlement costs, CDN services lead to inter-provincial restrictions, affecting access quality.
By probing between cache nodes in different geographical areas, data transmission restrictions are identified in real time, and when restrictions are discovered, service requests are scheduled to cache nodes in other geographical areas.
It improves data transmission efficiency and service quality, reduces the impact of inter-provincial restrictions on CDN services, and ensures efficient utilization of network resources.
Smart Images

Figure CN119544776A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of edge cloud technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for processing a business request. Background Art
[0002] CDN (Content Delivery Network) is a distributed content distribution network built on a data network. Through cluster technology, the content distribution network can overcome the limitations of a single server in bandwidth output and concurrent processing capabilities, and has therefore been increasingly widely used.
[0003] Currently, CDN mainly relies on the operator's computer room and bandwidth, and deploys corresponding software configuration on the servers in these computer rooms to realize the service. CDN services are open to users across the country. However, due to the differences in the construction costs of transmission links such as backbone networks between different provinces, it is usually necessary to settle cross-provincial traffic. In order to avoid additional cross-provincial settlement costs, CDN services will be restricted between provinces, resulting in poor access quality of current CDN services. Summary of the invention
[0004] Based on this, it is necessary to provide a business request processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve the access quality of CDN services in response to the above technical problems.
[0005] In a first aspect, the present application provides a service request processing method, comprising:
[0006] Obtaining a response message for a detection data packet sent by the second cache node to the first cache node; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas;
[0007] Based on the response message, determining a data transmission state between the first cache node and the second cache node; the data transmission state includes a restricted state / an unrestricted state;
[0008] When the data transmission status includes a restriction status, a first preset proportion of target business requests are screened out from the business requests, and the target object for processing the target business requests is updated to a third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
[0009] In one of the embodiments, after determining the data transmission status between the first cache node and the second cache node based on the response message, the method further includes:
[0010] In the case where the data transmission state includes a non-restricted state, acquiring a historical data transmission state between the first cache node and the second cache node; the historical data transmission state includes a restricted state / non-restricted state;
[0011] When the historical data transmission status includes a restriction status, obtaining a bandwidth usage ratio of the second cache node for the service request;
[0012] When the bandwidth usage ratio is greater than a first preset threshold, a second preset ratio of target business requests is screened out from the business requests, and a target object for processing the target business requests is updated to a third cache node.
[0013] In one of the embodiments, when the bandwidth usage ratio is greater than a first preset threshold, switching the access object of the first access request of a second preset ratio from the second cache node to the third cache node, and then comprising:
[0014] When the bandwidth usage ratio is greater than the second preset threshold, a third preset ratio of target business requests is filtered out from the business requests, and the target object for processing the target business requests is updated to a third cache node; the second preset threshold is greater than the first preset threshold, and the third preset ratio is greater than the second preset ratio.
[0015] In one embodiment, updating the target object for processing the target service request to a third cache node includes:
[0016] Obtaining cache hit rates of multiple third cache nodes for the service request;
[0017] The target object for processing the target service request is updated to a third cache node with a higher cache hit rate.
[0018] In one embodiment, the step of filtering out target service requests of a first preset ratio from service requests includes:
[0019] Determining, according to the user information included in the multiple service requests, user sensitivity levels corresponding to the multiple service requests respectively;
[0020] A first preset ratio of target service requests is screened out from the multiple service requests, and user sensitivity levels corresponding to the target service requests are lower than user sensitivity levels corresponding to non-target service requests.
[0021] In one of the embodiments, obtaining a response message sent by the second cache node to the first cache node in response to the detection data packet includes:
[0022] A response message for the detection data packet sent by the second cache node to the first cache node is obtained from the monitoring node; the first cache node is used to receive the response message and send the response message to the monitoring node.
[0023] In a second aspect, the present application also provides a service request processing device, including:
[0024] a response acquisition module, configured to acquire a response message sent by the second cache node to the first cache node in response to a detection data packet; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas;
[0025] A state determination module, configured to determine a data transmission state between the first cache node and the second cache node based on the response message; the data transmission state includes a restricted state / an unrestricted state;
[0026] An object update module is used to filter out a first preset proportion of target business requests from business requests when the data transmission status includes a restriction status, and update the target object for processing the target business requests to a third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
[0027] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the above-described methods when executing the computer program.
[0028] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the methods described above when executed by a processor.
[0029] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of any of the methods described above when executed by a processor.
[0030] The above-mentioned business request processing method, device, computer equipment, computer-readable storage medium and computer program product can identify restrictions on data transmission across geographical areas in real time by detecting between cache nodes in different geographical areas. Then, when it is found that there are data transmission restrictions between certain geographical areas, the business requests are dispatched to cache nodes in other geographical areas in a timely manner, which not only ensures the efficient use of network resources, but also improves the efficiency of data transmission and service quality, thereby reducing the impact of inter-provincial restrictions on the quality of CDN service access. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0032] FIG1 is an application environment diagram of a method for processing a business request in one embodiment;
[0033] FIG2 is a schematic diagram of a process flow of a service request processing method in one embodiment;
[0034] FIG3 is a schematic diagram of data flow between the server 106 and the cache node in one embodiment;
[0035] FIG4 is a schematic diagram of a flow chart of a method for processing a service request in another embodiment;
[0036] 5 is a flowchart of the steps of updating the target object of a target service request to a third cache node in one embodiment;
[0037] FIG6 is a flowchart of the steps of screening out target business requests of a first preset ratio from business requests in one embodiment;
[0038] FIG7 is a schematic diagram of a flow chart of step S204 in one embodiment;
[0039] FIG8 is a schematic diagram of data flow between a scheduling platform, a monitoring node and a cache node in one embodiment;
[0040] FIG9 is a schematic diagram of data flow between a scheduling platform, a monitoring node and a cache node in another embodiment;
[0041] FIG10 is a block diagram of a service request processing device according to an embodiment;
[0042] FIG. 11 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0044] The service request processing method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1. Among them, the cache node is a key component of the CDN, and its main function is to store and distribute content. When a user requests access to a resource, the CDN will first check whether a copy of the resource is stored in its cache node. If a copy of the resource exists, the CDN will directly provide the resource from the cache node, thereby reducing the time and bandwidth required to obtain content from the source server. The terminal 102 can send a service request to the second cache node 1042. The home location corresponding to the terminal 102 and the second cache node 1042 are located in different geographical areas (for example, provinces). The home location corresponding to the terminal 102 belongs to the geographical area where the first cache node 1041 is located. The first cache node 1041 can send a detection data packet to the cache nodes (for example, the second cache node 1042) in other geographical areas, receive the returned response message to the detection data packet, and upload the response message to the server 106. The server 106 can determine the data transmission status between the first cache node 1041 and the cache nodes in other geographical areas based on the received response data, and when the data transmission status includes a restriction status, dispatch the target service request of the first preset proportion in the service request to the cache nodes in other geographical areas for processing. It is understandable that each cache node can send a detection data packet to the cache nodes in other geographical areas. Among them, the data storage system can store the data that the server 106 needs to process. The data storage system can be integrated on the server 106, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 106 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0045] In an exemplary embodiment, as shown in FIG2 , a service request processing method is provided, which is described by taking the method applied to the server 106 in FIG1 as an example, and includes the following steps S202 to S206 . Among them:
[0046] Step S202, obtaining a response message for a detection data packet sent by the second cache node to the first cache node; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas.
[0047] Among them, the first cache node can be any cache node in the cache cluster in the geographical area where it is located. The cache cluster in each geographical area can be used to serve users in the geographical area and other geographical areas (for example, the province and neighboring provinces). Exemplarily, each cache cluster can be deployed with a detection service, and the detection service can detect the performance of cache nodes in the geographical area and other geographical areas by detecting domain names. Specifically, the detection service can include intra-provincial detection and extra-provincial detection. The implementation method of extra-provincial detection can include the first cache node sending a ping (Packet Internet Groper) request to the second cache node based on a cross-provincial link.
[0048] Step S204: determining the data transmission state between the first cache node and the second cache node based on the response message; the data transmission state includes a restricted state / an unrestricted state.
[0049] Specifically, when the data transmission status between the first cache node and the second cache node is in a restricted state, it can be determined based on the response message that there is packet loss in the out-of-province detection. In a possible implementation, when there is packet loss in the out-of-province detection and there is no packet loss in the in-province detection, it can be determined that the data transmission status between the first cache node and the second cache node is in a restricted state; when there is no packet loss in the out-of-province detection and there is packet loss in the in-province detection, it can be determined that the data transmission status between the first cache node and the second cache node is in a non-restricted state; when there is packet loss in the out-of-province detection and there is packet loss in the in-province detection, it can be determined that the first cache node is internally abnormal. Among them, the restricted state may include but is not limited to the following types of restrictions: data transmission volume restriction, bandwidth restriction, etc.
[0050] Please refer to Figure 3, which is a schematic diagram of the data flow between the server 106 and the cache node in one embodiment. Among them, the cache node may include an access component, a cache component, a response component, a data upload component, and a detection component. The access component, the cache component, and the response component are used for service processing, cache files, and response content, respectively. The data upload component is used to upload the status data of the cache node itself and the data transmission status with other geographical areas to the server. The detection component is used to perform intra-provincial detection (such as the detection of node a2 by node a1 in Figure 3) and extra-provincial detection (such as the detection of node b by node a1 in Figure 3).
[0051] Optionally, the server 106 may also determine the data transmission state between the first cache node and the second cache node based on a response message to the detection data packet sent by the first cache node to the second cache node, wherein the detection data packet is sent by the second cache node to the first cache node.
[0052] Step S206, when the data transmission status includes a restriction status, a first preset proportion of target business requests are screened out from the business requests, and the target object for processing the target business requests is updated to the third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
[0053] Exemplarily, the server 106 may periodically collect status information of each cache node (e.g., bandwidth usage, cache hit rate, network status, etc.) and data transmission status between each cache node, and in response to the data transmission status between the first cache node and the second cache node being in a restricted state, dispatch a first preset proportion (e.g., 20%) of target business requests from the business requests sent by users in the geographical area where the first cache node is located to the third cache node for processing. The first preset proportion may be a bandwidth proportion or a request quantity proportion, etc. The determination method of the third cache node may include: the data transmission status between the first cache node and the third cache node is in an unrestricted state and / or the resource utilization rate of the third cache node for users in the geographical area where the first cache node is located is low.
[0054] In the above-mentioned service request processing method, by detecting between cache nodes in different geographical areas, restrictions on data transmission across geographical areas can be identified in real time. Then, when it is found that there are data transmission restrictions between certain geographical areas, the service requests are promptly dispatched to cache nodes in other geographical areas, which not only ensures the efficient use of network resources, but also improves the efficiency of data transmission and service quality, thereby reducing the impact of inter-provincial restrictions on the quality of CDN service access.
[0055] In an exemplary embodiment, as shown in FIG4 , the service request processing method may further include:
[0056] Step S2071: when the data transmission status includes the non-restricted status, obtaining the historical data transmission status between the first cache node and the second cache node; the historical data transmission status includes the restricted status / non-restricted status.
[0057] Step S2072: when the historical data transmission status includes a restricted status, obtain the bandwidth usage ratio of the second cache node for the service request.
[0058] Exemplarily, the historical data transmission status may be a historical record of the occurrence of the restriction status (including: the time when the restriction status occurs, peak bandwidth data, etc.). The bandwidth usage ratio may be a ratio of the bandwidth usage to the rated bandwidth of the computer room, and the bandwidth usage may be a difference between the rated bandwidth of the computer room and the bandwidth redundancy. It is understandable that the bandwidth restrictions of the second cache node for users in different geographical areas may be different.
[0059] Step S2073, when the bandwidth usage ratio is greater than the first preset threshold, a second preset ratio of target business requests is screened out from the business requests, and the target object for processing the target business requests is updated to the third cache node.
[0060] Exemplarily, the server 106 may continuously monitor the response message sent by the second cache node to the first cache node for the detection data packet in response to the historical data transmission status between the first cache node and the second cache node including only the non-restricted status. The server 106 may continuously monitor the bandwidth usage of the service requests issued by the second cache node for users in the geographical area where the first cache node is located in response to the historical data transmission status between the first cache node and the second cache node including the restricted status, and when the bandwidth usage ratio of the second cache node for these service requests is greater than the first preset threshold, the target service requests of the second preset ratio in these service requests are dispatched to the third cache node for processing. For example, the first preset threshold may be 80%, and the second preset ratio may be 10%.
[0061] In this embodiment, by analyzing the historical performance between cache nodes and dynamically adjusting the target object for processing business requests based on the real-time bandwidth usage ratio, it is possible to identify potential performance bottlenecks and make timely adjustments to avoid cache node overload, thereby ensuring the reliability and response speed of CDN services.
[0062] In actual applications, the speed at which the bandwidth usage of service requests increases may be higher than the speed at which the scheduling takes effect. Further, please continue to refer to FIG. 4 , the service request processing method may further include:
[0063] Step S2074, when the bandwidth usage ratio is greater than the second preset threshold, filter out a third preset ratio of target business requests from the business requests, and update the target object for processing the target business requests to the third cache node; the second preset threshold is greater than the first preset threshold, and the third preset ratio is greater than the second preset ratio.
[0064] For example, the second preset threshold may be 90%, and the third preset ratio may be 20%. In this way, when bandwidth usage increases rapidly, the proportion of service requests scheduled to the third cache node can be automatically increased, further improving the reliability and response speed of the CDN service.
[0065] In an exemplary embodiment, as shown in FIG5 , the step of updating the target object for processing the target service request to the third cache node may include:
[0066] Step A1: Obtain cache hit rates of multiple third cache nodes for service requests.
[0067] Step A2: updating the target object for processing the target service request to a third cache node with a higher cache hit rate.
[0068] For example, if a business request is dispatched to a new node without cache for service, it may cause a sudden increase in back-to-source requests, resulting in a decrease in response speed, affecting user experience. Therefore, the cache hit rate of the user domain name included in the business request can be combined with multiple third cache nodes, and the business requests of the same user domain name can be concentrated to one or more third cache nodes with a higher cache hit rate for processing. Optionally, the third cache nodes with a higher cache hit rate can also be screened out based on the magnitude of each type of business in the multiple third cache nodes, bandwidth usage, etc.
[0069] In this embodiment, by scheduling service requests to cache nodes with a higher cache hit rate for processing, it is possible to reduce back-to-origin requests and further reduce the response delay of the CDN service.
[0070] In an exemplary embodiment, as shown in FIG6 , the step of filtering out the target service requests of the first preset proportion from the service requests may include:
[0071] Step B1: determining user sensitivity levels corresponding to the multiple service requests respectively according to user information included in the multiple service requests.
[0072] Step B2: Filter out a first preset proportion of target service requests from the multiple service requests, and the user sensitivity levels corresponding to the target service requests are lower than the user sensitivity levels corresponding to the non-target service requests.
[0073] Among them, the non-target service request is a service request other than the target service request among the service requests sent by users in the geographical area where the first cache node is located. The user sensitivity level can be determined based on the user's evaluation information on quality indicators (including: download speed, first packet data, etc.). For example, the user sensitivity level can include n levels, corresponding to values 1 to n respectively. Specifically, the user sensitivity levels corresponding to multiple service requests and the bandwidth usage of these service requests can be combined to prioritize the scheduling of service requests with lower user sensitivity levels and larger bandwidth usage.
[0074] In this embodiment, by giving priority to scheduling service requests from users with lower user sensitivity levels, it is possible to better utilize cache and bandwidth resources and reduce the request pressure from highly sensitive users.
[0075] In an exemplary embodiment, as shown in FIG7 , the above step S202 may include:
[0076] Step S2021: Acquire, from the monitoring node, a response message for the detection data packet sent by the second cache node to the first cache node; the first cache node is used to receive the response message and send the response message to the monitoring node.
[0077] Exemplarily, a scheduling platform may be built in the server 106. Please refer to Figure 8, which is a schematic diagram of the data flow between the scheduling platform, the monitoring node and the cache node in one embodiment. Among them, the scheduling platform may include a decision component and a scheduling component. The data sources of the decision component may include historical data transmission status, user sensitivity level, and bandwidth usage percentage uploaded by the monitoring node, data transmission status, and cache hit rate. After the decision component makes a decision, the node service change can be controlled through the scheduling component, and the cache nodes in other geographical areas (for example, the third cache node) can be used to serve users in the geographical area (for example, the geographical area where the first cache node is located). It can be understood that the server 106 can be a server cluster composed of multiple physical servers, and the monitoring node can also be implemented based on the physical servers in the server cluster.
[0078] In a possible implementation, please refer to Figure 9, which is a schematic diagram of the data flow between the scheduling platform, monitoring nodes and cache nodes in another embodiment. Among them, if user A is in Province A and currently uses the b2 node in Province B for business services, each node will report the detection response message to the monitoring node. If the monitoring node determines that there is an inter-provincial restriction between the b2 node and Province A, the relevant data will be uploaded to the scheduling platform, and the scheduling platform will determine which node in which province to switch to serve users in Province A based on relevant input parameters. For example, if the d1 node in Province D is far from the critical value of the historical inter-provincial restriction, the d1 node will be switched to serve users in Province A.
[0079] To sum up, in the above-mentioned service request processing method, by detecting between cache nodes in different geographical areas, it is possible to identify in real time the restrictions on data transmission across geographical areas. Furthermore, when it is found that there are data transmission restrictions between certain geographical areas, the service requests are promptly dispatched to cache nodes in other geographical areas, which not only ensures the efficient use of network resources, but also improves the efficiency of data transmission and service quality, thereby reducing the impact of inter-provincial restrictions on the quality of CDN service access.
[0080] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0081] Based on the same inventive concept, the embodiment of the present application also provides a service request processing device for implementing the service request processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more service request processing device embodiments provided below can refer to the limitations on the service request processing method above, and will not be repeated here.
[0082] In an exemplary embodiment, as shown in FIG10 , a service request processing device 300 is provided, comprising: a response acquisition module 301, a state determination module 302 and an object update module 303, wherein:
[0083] The response acquisition module 301 is used to acquire a response message sent by the second cache node to the first cache node for the detection data packet; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas.
[0084] The state determination module 302 is used to determine the data transmission state between the first cache node and the second cache node based on the response message; the data transmission state includes a restricted state / an unrestricted state.
[0085] The object update module 303 is used to filter out a first preset proportion of target business requests from the business requests when the data transmission status includes a restriction status, and update the target object for processing the target business requests to a third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
[0086] In one embodiment, the object updating module 303 is further used to:
[0087] In the case where the data transmission state includes a non-restricted state, acquiring a historical data transmission state between the first cache node and the second cache node; the historical data transmission state includes a restricted state / non-restricted state;
[0088] When the historical data transmission status includes a restriction status, obtaining a bandwidth usage ratio of the second cache node for the service request;
[0089] When the bandwidth usage ratio is greater than the first preset threshold, target business requests of a second preset ratio are screened out from the business requests, and the target object for processing the target business requests is updated to the third cache node.
[0090] In one embodiment, the object updating module 303 is further used to:
[0091] When the bandwidth usage ratio is greater than the second preset threshold, a third preset ratio of target business requests is filtered out from the business requests, and the target object for processing the target business requests is updated to the third cache node; the second preset threshold is greater than the first preset threshold, and the third preset ratio is greater than the second preset ratio.
[0092] In one embodiment, the object updating module 303 is further used to:
[0093] Obtaining cache hit rates of multiple third cache nodes for business requests;
[0094] The target object for processing the target business request is updated to a third cache node with a higher cache hit rate.
[0095] In one embodiment, the object updating module 303 is further used to:
[0096] Determining user sensitivity levels corresponding to the multiple service requests respectively according to user information included in the multiple service requests;
[0097] A first preset ratio of target business requests is screened out from the multiple business requests, and user sensitivity levels corresponding to the target business requests are lower than user sensitivity levels corresponding to the non-target business requests.
[0098] In one embodiment, the response acquisition module 301 is further used to:
[0099] A response message for the detection data packet sent by the second cache node to the first cache node is obtained from the monitoring node; the first cache node is used to receive the response message and send the response message to the monitoring node.
[0100] Each module in the above-mentioned service request processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0101] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG11. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a service request processing method is implemented.
[0102] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0103] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0104] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0105] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0106] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0107] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0108] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0109] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for processing a business request, characterized in that: The method comprises: Obtaining a response message for a detection data packet sent by the second cache node to the first cache node; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas; Based on the response message, determining a data transmission state between the first cache node and the second cache node; the data transmission state includes a restricted state / an unrestricted state; When the data transmission status includes a restriction status, a first preset proportion of target business requests are screened out from the business requests, and the target object for processing the target business requests is updated to a third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
2. The method according to claim 1, characterized in that After determining the data transmission status between the first cache node and the second cache node based on the response message, the method further comprises: In the case where the data transmission state includes a non-restricted state, acquiring a historical data transmission state between the first cache node and the second cache node; the historical data transmission state includes a restricted state / non-restricted state; When the historical data transmission status includes a restriction status, obtaining a bandwidth usage ratio of the second cache node for the service request; When the bandwidth usage ratio is greater than a first preset threshold, a second preset ratio of target business requests is screened out from the business requests, and a target object for processing the target business requests is updated to a third cache node.
3. The method according to claim 2, characterized in that When the bandwidth usage ratio is greater than a first preset threshold, switching the access object of the first access request of a second preset ratio from the second cache node to the third cache node, and then comprising: When the bandwidth usage ratio is greater than the second preset threshold, a third preset ratio of target business requests is filtered out from the business requests, and the target object for processing the target business requests is updated to a third cache node; the second preset threshold is greater than the first preset threshold, and the third preset ratio is greater than the second preset ratio.
4. The method according to claim 1, characterized in that: The updating the target object for processing the target service request to a third cache node includes: Obtaining cache hit rates of multiple third cache nodes for the service request; The target object for processing the target service request is updated to a third cache node with a higher cache hit rate.
5. The method according to claim 1, characterized in that: The step of screening out target business requests of a first preset proportion from the business requests includes: Determining, according to the user information included in the multiple service requests, user sensitivity levels corresponding to the multiple service requests respectively; A first preset ratio of target service requests is screened out from the multiple service requests, and user sensitivity levels corresponding to the target service requests are lower than user sensitivity levels corresponding to non-target service requests.
6. The method according to claim 1, characterized in that The obtaining of a response message sent by the second cache node to the first cache node in response to the detection data packet includes: A response message for the detection data packet sent by the second cache node to the first cache node is obtained from the monitoring node; the first cache node is used to receive the response message and send the response message to the monitoring node.
7. A service request processing device, characterized in that: The device comprises: a response acquisition module, configured to acquire a response message sent by the second cache node to the first cache node in response to a detection data packet; the detection data packet is sent by the first cache node to the second cache node, and the first cache node and the second cache node are located in different geographical areas; A state determination module, configured to determine a data transmission state between the first cache node and the second cache node based on the response message; the data transmission state includes a restricted state / an unrestricted state; An object update module is used to filter out a first preset proportion of target business requests from business requests when the data transmission status includes a restriction status, and update the target object for processing the target business requests to a third cache node; the business request includes user information of the user, the user's place of origin belongs to the geographical area where the first cache node is located, the initial target object of the business request is the second cache node, and the third cache node and the second cache node are located in different geographical areas.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
CDN node scheduling method and device, storage medium and electronic device
CN110233861A
Path planning method, CDN (Content Delivery Network) connection establishment method, equipment and storage medium
CN113301098A
Spatial indexing method and device and electronic equipment thereof
CN116010677A
CDN access method and device, electronic equipment and storage medium
CN116260639A
CDN node bandwidth guiding method and device, electronic equipment and storage medium
CN117061367A