Business processing method and device, electronic equipment, storage medium and program product
When receiving the page request through the backend server, it querys some business servers for current information, and obtains and splices from the historical information that have not been obtained, which solves the server burden problem when the number of user requests surges, and realizes timely display of the page and improves user experience.
Patent Information
- Application Number
- CN202410204947.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2025-08-26
AI Technical Summary
During the period when the number of user requests surges, the backend server and business server are overburdened, resulting in the inability to obtain business information in time, affecting the user page display.
When the background server receives the page acquisition request, it determines the service corresponding to the target page and sends a query request to some service servers. The service that has not obtained the current information obtains historical information from the historical page information, and splices it into the current page information and sends it to the client.
In the case of a surge in request volume, the page can still be displayed in a timely manner, improving user experience, reducing the burden on the server and the impact of query failures.
Smart Images

Figure CN120540754A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology and may involve fields such as cloud technology and big data. Specifically, the present application relates to a method, device, electronic device, storage medium and program product for business processing. Background Art
[0002] During certain time periods, the demand for users to view certain pages increases. For example, during New Year's Day or the Spring Festival, the demand for users to view the payment page increases. During the Spring Festival or New Year's Day, the number of requests for the payment page may be dozens or even hundreds of times the usual amount.
[0003] Among them, some pages may contain business information of multiple businesses. At this time, the background server may be required to query the business information of each business in real time. However, if the number of requests increases, the burden on the background server and the servers of each business will increase sharply. How to obtain the business information of each business and display the corresponding page to the requesting user becomes a key issue. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device, storage medium, and program product for business processing that can display corresponding pages when the load on the backend server and the servers of various businesses increases sharply, thereby improving the user's query experience. To achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:
[0005] In a first aspect, a business processing method is provided, which is applied to a business processing system, the system comprising: at least one client, a backend server, and business servers for multiple businesses;
[0006] The method is executed by the backend server and includes:
[0007] In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page;
[0008] Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service;
[0009] If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client;
[0010] Determining current page information of the target page based on current business information of each of the first businesses;
[0011] The current page information is sent to the target client, so that the target client displays the target page based on the received current page information.
[0012] In a possible implementation, the method further includes:
[0013] Obtaining a service level for each of the first services;
[0014] At least one second service is determined from the first services based on the service levels of the first services.
[0015] In another possible implementation, the determining at least one second service from each of the first services based on the service level of each of the first services includes:
[0016] A first service that satisfies at least one of the following conditions among the first services is determined as a second service:
[0017] The corresponding business level belongs to the target level;
[0018] The target client does not cache historical service information of the service;
[0019] The target client stores historical service information of a service, and the cache time length of the historical service information is greater than a preset time length.
[0020] In another possible implementation, the service level represents a priority of the service, and the target level is a first level, a second level, or a third level, wherein the priority of the first level is lower than that of the second level, and the priority of the second level is lower than that of the third level;
[0021] The determining of at least one second service from each of the first services based on the service level of each of the first services includes any one of the following:
[0022] Determine the first business with the first business level as the second business;
[0023] Determine, as a second service, a first service whose service level is the second level and for which the target client has cached historical service information, but for which the cache duration of the historical service information is longer than a preset duration;
[0024] A first service whose service level is the third level and for which the target client has no historical service information cached is determined as the second service.
[0025] In another possible implementation, obtaining the service level of each first service includes:
[0026] Determining a request time for the page acquisition request;
[0027] Determining a target time period to which the request time belongs among a plurality of preset time periods;
[0028] Determining a target mapping relationship corresponding to the target time period from the mapping relationships corresponding to the respective preset time periods, wherein any of the mapping relationships includes: a correspondence between each of a plurality of services in the corresponding preset time period and a service level corresponding to the service, wherein the plurality of services include the at least one first service;
[0029] Based on the target mapping relationship, a service level of each first service is obtained.
[0030] In another possible implementation, the page acquisition request is any page acquisition request in the current business cycle;
[0031] The mapping relationship corresponding to any preset time period is determined based on at least one of the following:
[0032] a predicted first number of requests for each of the multiple services in the next cycle;
[0033] performance information of the service servers corresponding to each of the multiple services;
[0034] The service information update frequency corresponding to each of the multiple services;
[0035] The predicted number of requests corresponding to a service is determined based on the number of times the service is requested in the preset time period in at least one historical period.
[0036] In another possible implementation, the at least one third service includes:
[0037] The second service fails to request the current service information from the service server.
[0038] In another possible implementation, the page acquisition request includes historical page information of the target page cached by the target client;
[0039] The acquiring of historical service information of each of the third services from historical page information includes:
[0040] querying historical service information of each third service from the historical page information included in the page acquisition request;
[0041] The current page information is received by the target client and is used to update the historical page information.
[0042] In another possible implementation, if the at least one third service is all first services, the method further includes any one of the following:
[0043] Sending the historical page information of the target page as the current page information to the target client;
[0044] Returning request failure notification information to the target client, so that the target client displays the target page based on the historical page information of the target page cached locally.
[0045] In a second aspect, a business processing method is provided, which is applied to a business processing system, the system comprising: at least one client, a backend server, and business servers for multiple businesses;
[0046] The method is executed by the target client and includes:
[0047] Sending a page acquisition request to the backend server;
[0048] Obtaining the current page information of the target page and displaying the current page information;
[0049] The current page information of the target page is determined by the backend server in the following manner:
[0050] In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page;
[0051] Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service;
[0052] If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client;
[0053] Based on the current business information of each of the first businesses, the current page information of the target page is determined.
[0054] In a possible implementation, the method further includes:
[0055] If the current page information of the target page returned by the background server is not received within a preset time period, the target page is displayed based on the page information of the target page cached locally.
[0056] In another possible implementation, if the current page information of the target page returned by the backend server is received within a preset time, the method further includes:
[0057] The page information of the target page cached in the local storage is updated based on the current page information of the target page.
[0058] In a third aspect, a business processing device is provided. The business processing device is deployed in a background server in a business processing system. The business processing system further includes: at least one client and business servers for multiple services; the business processing device includes:
[0059] A first determining module, configured to determine, in response to a page acquisition request from a target client, at least one first service corresponding to the requested target page;
[0060] A first sending module is configured to send corresponding service information query requests to a service server of at least one second service, respectively, to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service;
[0061] A first acquisition module is configured to, when there is at least one third service among the at least one first service for which current service information has not been acquired, acquire historical service information of each of the third services from historical page information, and use the historical service information as current service information; wherein the historical page information is page information of the target page most recently provided to the target client;
[0062] A second determining module, configured to determine current page information of the target page based on current business information of each of the first businesses;
[0063] The second sending module is configured to send the current page information to the target client, so that the target client displays the target page based on the received current page information.
[0064] In a possible implementation, the apparatus further includes: a second acquisition module and a third determination module, wherein:
[0065] The second acquisition module is used to obtain the service level of each of the first services;
[0066] The third determining module is configured to determine at least one second service from each of the first services based on a service level of each of the first services.
[0067] In another possible implementation, when the third determining module determines at least one second service from each of the first services based on the service level of each of the first services, it is specifically configured to:
[0068] A first service that satisfies at least one of the following conditions among the first services is determined as a second service:
[0069] The corresponding business level belongs to the target level;
[0070] The target client does not cache historical service information of the service;
[0071] The target client stores historical service information of a service, and the cache time length of the historical service information is greater than a preset time length.
[0072] In another possible implementation, the service level represents a priority of the service, and the target level is a first level, a second level, or a third level, wherein the priority of the first level is lower than that of the second level, and the priority of the second level is lower than that of the third level;
[0073] Wherein, when the third determining module determines at least one second service from each of the first services based on the service level of each of the first services, it is specifically used for at least one of the following:
[0074] Determine the first business with the first business level as the second business;
[0075] Determine, as a second service, a first service whose service level is the second level and for which the target client has cached historical service information, but for which the cache duration of the historical service information is longer than a preset duration;
[0076] A first service whose service level is the third level and for which the target client has no historical service information cached is determined as the second service.
[0077] In another possible implementation, when acquiring the service level of each of the first services, the second obtaining module is specifically configured to:
[0078] Determining a request time for the page acquisition request;
[0079] Determining a target time period to which the request time belongs among a plurality of preset time periods;
[0080] Determining a target mapping relationship corresponding to the target time period from the mapping relationships corresponding to the respective preset time periods, wherein any of the mapping relationships includes: a correspondence between each of a plurality of services in the corresponding preset time period and a service level corresponding to the service, wherein the plurality of services include the at least one first service;
[0081] Based on the target mapping relationship, a service level of each first service is obtained.
[0082] In another possible implementation, the page acquisition request is any page acquisition request in the current business cycle;
[0083] The mapping relationship corresponding to any preset time period is determined based on at least one of the following:
[0084] a predicted first number of requests for each of the multiple services in the next cycle;
[0085] performance information of the service servers corresponding to each of the multiple services;
[0086] The service information update frequency corresponding to each of the multiple services;
[0087] The predicted number of requests corresponding to a service is determined based on the number of times the service is requested in the preset time period in at least one historical period.
[0088] In another possible implementation, the at least one third service includes: a second service that fails to request current service information from the service server.
[0089] In another possible implementation, the page acquisition request includes historical page information of the target page cached by the target client;
[0090] When the first acquisition module acquires the historical service information of each third service from the historical page information, it is specifically configured to:
[0091] querying historical service information of each third service from the historical page information included in the page acquisition request;
[0092] The current page information is received by the target client and is used to update the historical page information.
[0093] In another possible implementation, if the at least one third service is all first services, the apparatus further includes: at least one of a third sending module or a returning module, wherein:
[0094] The third sending module is configured to send the historical page information of the target page as the current page information to the target client, so that the target client displays the target page based on the historical page information of the target page;
[0095] The return module is configured to return request failure notification information to the target client, so that the target client displays the target page based on the historical page information of the target page cached locally.
[0096] In a fourth aspect, a business processing device is provided. The business processing device is deployed in each of at least one client in a business processing system and applied to the business processing system. The system further includes: a background server and business servers for multiple businesses;
[0097] The service processing device includes:
[0098] A request sending module for sending a page acquisition request to the backend server;
[0099] A page information acquisition module, used to acquire the current page information of the target page;
[0100] A first display module, used to display the current page information;
[0101] The current page information of the target page is determined by the backend server in the following manner:
[0102] In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page;
[0103] Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service;
[0104] If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client;
[0105] Based on the current business information of each of the first businesses, the current page information of the target page is determined.
[0106] In a possible implementation, the apparatus further includes:
[0107] The second display module is used to display the target page based on the page information of the target page cached locally when the current page information of the target page returned by the background server is not received within a preset time period.
[0108] In another possible implementation, if the current page information of the target page returned by the backend server is received within a preset time, the device further includes: an updating module, wherein:
[0109] The updating module is configured to update the page information of the target page cached in the local storage based on the current page information of the target page.
[0110] In the fifth aspect, an embodiment of the present application further provides a background server, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the business processing method provided by any possible implementation method of the first aspect.
[0111] In a sixth aspect, an embodiment of the present application further provides a client comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement the business processing method provided by any possible implementation of the second aspect.
[0112] In the seventh aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the business processing method provided by any possible implementation method of the fifth aspect.
[0113] In an eighth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the business processing method provided by any possible implementation method of the second aspect is implemented.
[0114] In a ninth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the business processing method provided by any possible implementation of the first aspect.
[0115] In the tenth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the business processing method provided by any possible implementation of the second aspect.
[0116] The beneficial effects of the technical solution provided by the embodiments of the present application are as follows:
[0117] Embodiments of the present application provide a method, apparatus, electronic device, storage medium, and program product for business processing. In embodiments of the present application, the method can be applied to a business processing system, which can include: at least one client, a backend server, and business servers for multiple businesses. In the method, after receiving a page acquisition request from a target client, the backend server determines at least one first business corresponding to the page, and sends a query request to the business servers corresponding to some of the businesses in the determined at least one first business. If there are some businesses in the at least one first business on the page for which current business information has not been obtained, business information of these businesses can be extracted from historical page information as current business information of these businesses. Based on the current business information of these businesses and the current business information that can be obtained, current page information of the target page is obtained and fed back to the client for display. That is, even if the current business information cannot be queried from some business servers, historical business information in the historical page information can be used as current business information to obtain current page information of the target page, and returned to the client for display. In this way, business information of each business can be obtained and the corresponding page can be displayed to the requesting user even when the number of requests increases. BRIEF DESCRIPTION OF THE DRAWINGS
[0118] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.
[0119] Figure 1a This is a schematic diagram of the path to enter the wallet payment page in the payment scenario in an embodiment of the present application;
[0120] Figure 1b This is a schematic diagram of checking the change information in the wallet in an embodiment of the present application;
[0121] Figure 1c This is a system architecture diagram of a business processing in an embodiment of the present application;
[0122] Figure 2 This is a flowchart of a method for business processing in an embodiment of the present application;
[0123] Figure 3 This is a flowchart of another method for business processing in an embodiment of the present application;
[0124] Figure 4 This is a schematic diagram of historical peak data of a page in an embodiment of the present application;
[0125] Figure 5 This is a flowchart of another method for business processing in an embodiment of the present application;
[0126] Figure 6aThis is a flowchart of a business process in a specific scenario in an embodiment of the present application;
[0127] Figure 6b This is a flowchart of business processing in another specific scenario in an embodiment of the present application;
[0128] Figure 6c This is a schematic diagram of a device structure for business processing in an embodiment of the present application;
[0129] Figure 7 This is a schematic diagram of another device structure for business processing in an embodiment of the present application;
[0130] Figure 8 This is a structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0131] The following describes the embodiments of the present application in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0132] Those skilled in the art will understand that, unless otherwise stated, the singular forms "a", "an", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements, and / or components, but do not exclude implementation as other features, information, data, steps, operations, elements, components, and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or it can refer to the element and the other element establishing a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here can include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B". When describing multiple (two or more) items, if the relationship between the multiple items is not clearly defined, the multiple items may refer to one, multiple or all of the multiple items. For example, the description of "parameter A includes A1, A2, A3" can be implemented as parameter A including A1 or A2 or A3, and can also be implemented as parameter A including at least two of the three items A1, A2, and A3.
[0133] During traffic peaks such as the Spring Festival and New Year's Day, the number of user requests to enter the payment wallet page is dozens or even hundreds of times higher than usual. Through clever design of caching technology on the backend server and client, the user experience of entering the wallet to view change and business lists is improved, ensuring the availability of the payment wallet during traffic peaks such as the Spring Festival and New Year's Day.
[0134] In the related technical solutions: directly requesting the backend to perform real-time query and reporting an error if the query fails. However, directly requesting the backend to perform real-time query and reporting an error if the query fails has the following problems:
[0135] 1. Directly request backend queries. During normal off-peak periods, the backend can meet business requests. However, when the traffic suddenly increases by dozens or hundreds of times, the backend capacity will be bottlenecked, which can easily cause the backend service to crash.
[0136] 2. Failed backend query requests and errors will directly affect the user experience, increasing their anxiety and sense of insecurity.
[0137] The embodiment of the present application improves the user's payment experience of entering the payment wallet to view change and display the wallet page service list by building a wallet information cache between the client and the payment backend.
[0138] Optionally, the solutions provided in the embodiments of the present application may involve cloud technology. For example, the solutions provided in the embodiments of the present application may be executed by a server or terminal, wherein the server may be a cloud server. The data processing involved in the implementation of the solutions may be implemented based on cloud technology, and the data storage involved in the implementation may use cloud storage. For example, historical page information may be stored using cloud storage.
[0139] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network that provides these resources is called the "cloud." To users, these resources appear infinitely scalable and can be accessed at any time, used on demand, expanded at any time, and paid for on a per-use basis.
[0140] As a provider of cloud computing infrastructure (i.e., a cloud vendor), a cloud computing resource pool (referred to as a cloud platform, commonly referred to as an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed in the resource pool for external customers to choose and use. The cloud computing resource pool mainly includes: computing devices (virtualized machines, including operating systems), storage devices, and network devices.
[0141] Based on logical functional divisions, the PaaS (Platform as a Service) layer can be deployed on top of the IaaS (Infrastructure as a Service) layer, and the SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. SaaS can also be deployed directly on top of IaaS. PaaS is a platform for software execution, such as databases and web containers. SaaS is a variety of business software, such as web portals and text messaging tools. Generally speaking, SaaS and PaaS are upper layers relative to IaaS.
[0142] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used flexibly and conveniently on demand. Cloud computing technology will become a key support. Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of different types of storage devices (also called storage nodes) on the network through application software or application interfaces to work together and provide external data storage and business access functions.
[0143] Optionally, the data processing involved in the methods provided in the embodiments of this application (e.g., splicing business information and determining the service level of each business) can be implemented based on cloud computing. Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed.
[0144] It should be noted that in the optional embodiments of the present application, the business information, page information and other related data involved, when the embodiments of the present application are applied to specific products or technologies, need to obtain the permission or consent of the object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of the present application involve data related to the object, it needs to be obtained through the authorization and consent of the object, the authorization and consent of the relevant departments, and in compliance with the relevant laws, regulations and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject needs to be obtained. The embodiments also need to be implemented with the authorization and consent of the object.
[0145] Furthermore, in the embodiment of the present application, the payment scenario can be used as an example to introduce that the user enters the wallet payment page and checks the change information and wallet list information in the wallet. Different services are provided by different business parties, and the system implementations of different business parties also have great differences. Figure 1a As shown, from the page shown in Figure (a), by triggering the "Service" virtual button, enter the service display page shown in Figure (b), and in the service display page, by triggering the "Wallet" button, enter the wallet page shown in Figure (c) to view the business information of business 1 (such as change business) and the business information in the available business list. Furthermore, the user can also trigger each business shown in Figure (c) to display detailed business information, such as shown in Figure (d), which can display the detailed business information shown in business 1.
[0146] When the user jumps to the red envelope receiving page and checks the change information in the wallet, especially during the peak period of receiving red envelopes during the Spring Festival, a large number of users enter the change page to check whether the red envelopes have been received. The specific way to check is as follows: Figure 1b shown.
[0147] The main application scenarios of the technical solution of the embodiment of the present application include certain holidays, such as New Year's Day and Spring Festival, when a large number of users need to enter the payment wallet to view the business list information of the change and wallet page. When the business traffic suddenly increases, it is necessary to ensure the user's business experience of viewing the change and wallet business list.
[0148] In order to implement the above technical solution, the embodiment of the present application provides a business processing method, which is applied to a business processing system, such as Figure 1c As shown, the business processing system may include: at least one client (for example, client 1, client 2, ..., client n), a backend server, and business servers for multiple businesses (for example, a business server for business 1, a business server for business 2, ..., a business server for business N), wherein at least one client interacts with the backend server for information, and the backend server interacts with each of the business servers for the multiple businesses for information.
[0149] Based on the above system architecture, the embodiment of the present application provides a business processing method, which is executed by the background server, such as Figure 2 As shown, the method may include:
[0150] Step S201: In response to a page acquisition request from a target client, determine at least one first service corresponding to the requested target page.
[0151] In the embodiment of the present application, a page may correspond to at least one first service. When a page acquisition request is received from a target client, the page acquisition request may carry information about the page to be acquired. For example, the information about the page to be acquired may include a page identifier. When the page to be requested (target page) is determined, at least one first service corresponding to the requested target page may be determined.
[0152] For example, if the target page is a wallet page, the wallet page may correspond to business 1, business 2, business 3, business 4, business 5, business 6, business 7, business 8, business 9, and business 10, such as Figure 1a shown.
[0153] Step S202: Send corresponding service information query requests to the service servers of at least one second service respectively to obtain current service information corresponding to each second service.
[0154] Wherein, at least one second business is at least part of the first business. In an embodiment of the present application, when determining at least one first business corresponding to the target page to be acquired, a corresponding business information query request can be sent to the business servers corresponding to each of the determined first businesses, or a corresponding business information query request can be sent to the business servers corresponding to part of the first businesses.
[0155] Specifically, in certain time periods, a business information query request may be sent to the business servers corresponding to each determined first business, and in other time periods, a business information query request may be sent to the business servers corresponding to some of the first businesses. For example, during non-holiday periods, a business query request may be sent to the business servers corresponding to each determined first business, and during holidays, a business information query request may be sent to the business servers corresponding to some of the first businesses. Alternatively, when it is detected that the number of requests for the target page or the number of requests for some of the businesses is large, a business query request may be sent to the business servers of some of the first businesses, and vice versa, a business query request may be sent to the business servers of each determined first business. This is not specifically limited in the embodiments of the present application.
[0156] Step S203: If there is at least one third service in the at least one first service whose current service information has not been obtained, obtain historical service information of each third service from the historical page information, and use the historical service information as the current service information.
[0157] For the embodiment of the present application, at least one third service that has not obtained the current service information may include: a first service among the at least one first service that has not sent a service query request, and may also include a second service among the second services that have sent a service query request but has not queried the current service information.
[0158] That is to say, if there is at least one third business in at least one first business whose current business information has not been obtained, the historical business information corresponding to each third business is obtained from the historical page information, and the historical business information corresponding to each third business obtained is used as the current business information corresponding to each third business.
[0159] The historical page information is the page information of the target page that was most recently provided to the target client. In an embodiment of the present application, the historical page information can be stored in the local storage of the backend server or in the local storage of the requesting client. If the historical page information is stored in the local storage of the backend server, the backend server can directly obtain the historical page information from the local storage. If the historical page information is stored in the local storage of the requesting client, the backend server can obtain the historical page information transparently transmitted by the requesting client. For example, the historical page information can be carried in a page acquisition request and sent to the backend server so that the backend server can obtain it.
[0160] Step S204: Determine the current page information of the target page based on the current business information of each first business.
[0161] Specifically, if there is at least one third business in at least one first business whose current business information has not been obtained, the current business information of each first business may include: the current business information returned by the business server corresponding to the second business and the historical business information corresponding to each third business; if there is no at least one third business in at least one first business whose current business information has not been obtained, that is, the current business information of each first business may include: the current business information returned by each first business server.
[0162] After obtaining the current business information of each first business, the current business information of each first business can be spliced in a preset manner to obtain the current page information of the target page. That is, in the embodiment of the present application, the business information of a first business is represented by a table cell (tablecell) object, and the backend server can know which tablecell object data failed. At this time, the data of the tablecell object in the historical page information is used for splicing to obtain the current page information of the target page.
[0163] Step S205: Send the current page information to the target client, so that the target client displays the target page based on the received current page information.
[0164] For the embodiment of the present application, after the background server determines the current page information of the target page in the above manner, it returns the determined current page information of the target page to the target client so that the target client can display it.
[0165] Furthermore, in the above embodiment, it is pointed out that at least one second service may be part of the first service, so as to send a service information query request to each service server of the part of the first service. Specifically, the method of determining at least one second service from each first service is as follows: Figure 3 As shown, the method may further include: step Sa and step Sb, wherein step Sa and step Sb are performed before step S202, wherein step Sa and step Sb are specifically as follows:
[0166] Step Sa: Obtain the service level of each first service.
[0167] For the embodiment of the present application, the service level of each first service can be stored in the local storage of the background server, that is, the background server obtains the service level of each first service from the local storage; or, the background server can obtain the service level of each first service input by the administrator.
[0168] The service level of any first service indicates whether a service query request is directly sent to the service server corresponding to the first service when a page acquisition request is received, or whether a service query request is directly sent to the service server corresponding to the first service after receiving the service query request of the first service.
[0169] Specifically, the service level can also represent the priority of the service, wherein a service with a higher priority has a corresponding higher service level. For example, the service level of each first service may include: first level, second level, or third level. If the service level of a first service is first level, a service query request can be sent directly to the service server of the first service; if the service level of a first service is second level or third level, the service query request is not sent directly to the service server.
[0170] Specifically, when the service level of a first service is the second level, first check whether the corresponding historical service information is expired. If expired, send a service query request to the corresponding service server; when the service level of a first service is the third level, first check whether the corresponding historical service information is cached. If the corresponding historical service information is not cached, send a service query request to the service server.
[0171] Specifically, obtaining the service level of each first service may include: determining the request time of the page acquisition request; determining the target time period to which the request time belongs in multiple preset time periods; determining the target mapping relationship corresponding to the target time period from the mapping relationships corresponding to each preset time period, wherein any mapping relationship includes: the correspondence between each service in the multiple services in the corresponding preset time period and the service level corresponding to the service, wherein the multiple services include at least one first service; based on the target mapping relationship, obtaining the service level of each first service.
[0172] Specifically, different preset time periods correspond to different mapping relationships. Taking the first business including business 1, business 2, business 3 and business 4 as an example, the mapping levels corresponding to the New Year's Day time period, Spring Festival time period, and daily time period are introduced, as shown in Table 1.
[0173] Table 1
[0174]
[0175] Since the mapping relationships corresponding to different preset time periods are also different, after obtaining the page acquisition request, the request time of the page acquisition request is determined to determine which preset time period (daily time period, New Year's Day time period or Spring Festival time period) the request time belongs to, that is, to determine the target time period to which the request belongs, to determine the mapping relationship corresponding to the target time period. For example, taking the above Table 1 as an example, if the time of the page acquisition request belongs to the New Year's Day time period, the mapping relationship determined is: business 1 corresponds to the third level, business 2 corresponds to the first level, business 3 corresponds to the third level, and business 4 corresponds to the third level. In the embodiment of the present application, in different time periods, different businesses correspond to different levels, that is, the acquisition strategies are different, so the page display experience can be further guaranteed. For example, in the payment business, the levels of the change and other businesses viewed by the user in the wallet page are different, so as to ensure the user's experience of viewing the wallet page and the change business page.
[0176] Furthermore, if detailed business information is further requested for a certain business, the preset time period can be determined based on the time of the business information acquisition request to determine the corresponding business level. For example, taking Table 1 as an example, if the detailed business information corresponding to business 4 is further requested, and the preset time period to which it belongs is the Spring Festival, then the corresponding business level is the second level.
[0177] Furthermore, the page acquisition request is any page acquisition request in the current business cycle; the mapping relationship corresponding to any preset time period is determined based on the following (at least one of parameter a, parameter b or parameter c), wherein:
[0178] Parameter a, the predicted first number of requests for each of the multiple services in the next cycle. The predicted number of requests for a service is determined based on the number of requests for the service in the preset time period in at least one historical cycle.
[0179] Taking the year as an example, the number of times each business was requested in each preset time period in the previous years can be obtained to predict the first number of times each business in the next cycle, which is used to determine the mapping relationship corresponding to each preset time period.
[0180] Furthermore, we can also predict the first number of requests for each page in the next cycle based on the location of the entrance to each page. The request volume here is also the larger the request volume is, the further the entrance is. For example, taking the payment program as an example, the client wallet entry path can be: "Me" -> "Payment Page 1" -> "Payment Page 2" -> "Payment Page 3". Based on historical data analysis and business growth in previous years, we can make a payment wallet holiday peak estimate, such as: Spring Festival and New Year's Day. Figure 4 As shown, the peak requests for each business-related page (payment page 1, payment page 2, payment page 3) during New Year's Day 2018, Spring Festival 2018, New Year's Day 2019, Spring Festival 2019, New Year's Day 2020 and Spring Festival 2020 are introduced.
[0181] Parameter b, performance information of the service servers corresponding to each of the multiple services. In the embodiment of the present application, different services correspond to different service servers, and different service servers have different corresponding performances. A high-performance service server may carry a higher number of requests, while a low-performance service server may carry a lower number of requests. Therefore, based on the performance information of the service servers corresponding to each service, the level corresponding to each service can be more accurately determined, thereby determining the mapping relationship corresponding to each preset time period.
[0182] Parameter c, the service information update frequency corresponding to each of the multiple services;
[0183] Generally, due to the service type of the service, the corresponding information update frequency is also different. Therefore, when determining the service level corresponding to different services, it can also be determined according to the service information update frequency corresponding to each service.
[0184] Furthermore, the mapping relationship corresponding to any preset time period is determined based on parameter a, parameter b, or parameter c, or can be determined based on at least two of parameter a, parameter b, or parameter c, or can be determined based on parameter a, parameter b, and parameter C. The specific determination method is not limited in the embodiments of the present application.
[0185] Step Sb: Determine at least one second service from each first service based on the service level of each first service.
[0186] Specifically, after the service levels of the first services are determined, at least one second service is determined from the first services, and a service query request is sent to the corresponding service server.
[0187] Specifically, in step Sb, based on the service level of each first service, at least one second service is determined from each first service, which may specifically include: determining the first service that meets at least one of the following items in each first service as the second service: the corresponding service level belongs to the target level; the target client has not cached the historical service information of the service; the target client has stored the historical service information of the service and the cache time length of the historical service information is greater than the preset time length.
[0188] Specifically, in the embodiment of the present application, as can be seen from the above embodiment, the second service is determined from each first service based on at least one of the following: the corresponding service level is within the target level, the target client does not cache historical service information for the service, or the target client stores historical service information for the service and the cache duration of the historical service information is greater than a preset duration. In the embodiment of the present application, the preset duration for different services can be the same or can be determined based on the type of service.
[0189] Specifically, the target level is the first level, the second level, or the third level, the first level has a lower priority than the second level, and the second level has a lower priority than the third level; in the embodiment of the present application, in step Sb, based on the service level of each first service, at least one second service is determined from each first service, which may specifically include: determining the first service with a service level of the first level as the second service; determining the first service with a service level of the second level and the target client having cached historical service information of the service, but the cache duration of the historical service information is greater than the preset duration as the second service; determining the first service with a service level of the third level and the target client not having cached historical service information of the service as the second service. In the embodiment of the present application, the preset duration can be pre-set, for example, it can be determined according to the service type, such as 4 hours.
[0190] That is to say, if the service level of a first service is the first level, the first service is directly determined to be the second service; if the service level of a first service is the second level, it is necessary to check whether the historical service information of the service is cached in the target client, and whether the cached historical service information is expired. If the historical service information of the service is cached in the target client, and the cached service history information is expired, the first service is determined to be the second service; if the service level of a first service is the third level, it is necessary to check whether the historical service information of the service is cached in the target client. If the historical service information of the service is not cached, the first service is determined to be the second service.
[0191] Furthermore, after determining each second business, a business query request is sent to the business server corresponding to each second business. If the business information returned by the business server corresponding to each second business is obtained, then at least one third business is a business that does not belong to the second business in each first business; if the business information returned by the business server corresponding to all second businesses is not obtained, then at least one third business may include a business that does not belong to the second business in each first business, and a second business in at least one second business that failed to request current business information from the business server.
[0192] Furthermore, if there is a third business, that is, there is a business for which the current business information has not been obtained, in order to improve the experience, the historical business information of each third business can be obtained from the historical page information. In an embodiment of the present application, the historical business information of each third business can be obtained from the historical page information. Specifically, it can include: querying the historical business information of each third business from the historical page information included in the page acquisition request. In an embodiment of the present application, the page acquisition request sent by the target client carries the historical page information, and the historical business information of each third business is obtained from the historical page information. That is, after obtaining the historical business information of each third business, the current page information of the target page is obtained based on the historical business information of each third business and the current business information of each second business returned, so as to send the obtained current page information of the target page to the target client for display.
[0193] The current page information is received by the target client and is used to update the historical page information.
[0194] Optionally, if there is a third business, that is, a business that has not obtained the current business information, the backend server can also send the business identifier and other information of the third business to the target client, so that the target client can obtain the historical business information corresponding to each third business from the historical page information of the local cache, and at the same time splice it with the current business information of each second business received to obtain the current page information of the target page. That is, the business information of each business in the current page information of the target page is represented by a tablecell, and the backend Common Gateway Interface (CGI) informs the target client which tablecell call failed, so that the target client uses the local cache for the tablecell that failed to call.
[0195] Furthermore, if at least one third business is all the first businesses, that is, at this time, the backend server may be faulty and unable to query the current business information corresponding to each first business, or the backend server is not faulty, but the current business information of each first business is indeed not found, the method also includes: sending the historical page information of the target page as the current page information to the target client, so that the target client displays the target page based on the historical page information of the target page; or, returning a request failure notification message to the target client, so that the target client displays the target page based on the historical page information of the target page cached locally. For example, in an embodiment of the present application, if the call to the backend server fails, the target client uses the full amount of the page information (historical page information) returned last time for display.
[0196] Furthermore, if at least one third service is all the first services, the background server may not perform any processing at this time. That is to say, if no information returned by the background server is received within the preset time period, the target client can be informed that the background server has failed or has not obtained any business information. At this time, the target client can obtain historical page information from the local storage for display, thereby further improving the user experience.
[0197] Furthermore, in another possible implementation of the embodiment of the present application, if there is at least one third business in at least one first business that has not obtained the current business information, the business servers corresponding to each third business in the at least one third business (for example, business server a and business server b) may be in a busy request state. At this time, the background server can cache the query requests for these business information (the query request for the business information corresponding to business server a, and the query request for the business information corresponding to business server b). When it is detected that a business server in a busy state changes from a busy state to a non-busy state, the background server can send the query request corresponding to the server so that its server queries the corresponding business information and caches the query results corresponding to each query request in the local storage. When the background server receives the query request again, and the business server changes from a non-busy state to a busy state, the background server can search the local storage to see whether the query result of the client for the business server is stored. If so, the corresponding query result can be returned.
[0198] Taking a specific example to illustrate the above implementation method, when business server a changes from a busy state to a non-busy state, the background server can send a query request for the business information corresponding to business server a to business server a for query, and store the query results corresponding to each query request in the local storage (query result 1 of client 1, query result 2 of client 2 and query result 3 of client 3). If business server a changes from a non-busy state to a busy state at this time, if the background server receives a query request from client 1 for business server a at this time, the background server can feed back the locally cached query result 1 to client 1.
[0199] Alternatively, after the backend server obtains the query results corresponding to the above-mentioned query requests, it can return the query results corresponding to the respective query requests to the respective corresponding clients so that the respective corresponding clients can store them. When a client requests a query request for business server a again, if no query results are received within a period of time, it can query the locally stored feedback results.
[0200] Furthermore, in order to reduce the situation where business requests are concentrated in certain time periods, resulting in business requests being sent to a certain business server through the background server and the corresponding query results cannot be obtained, a candidate server can be configured for each business server. When the business request volume of a certain business server reaches a threshold (busy state), the corresponding business request is responded to through its corresponding candidate server.
[0201] In the embodiment of the present application, one business server may be configured with one candidate server, or multiple business servers may be configured with one candidate server.
[0202] When a business server is configured with a candidate server, for example, business server a is configured with candidate server a. When the backend server sends a query request to business server a, if the business request volume of business server a reaches a threshold, the backend server can send the query request to candidate server a. Alternatively, business server a can send the query request to candidate server a, so that the candidate server performs the business query and returns the query result to the client through the backend server.
[0203] When multiple business servers are configured with one candidate server, for example, business server a and business server b are configured with one candidate server a. When the query volume of at least one of business server a and business server b reaches a threshold, the candidate server a can be started to perform business queries. The specific query feedback method is detailed in the above embodiment and will not be repeated here.
[0204] Furthermore, in the above embodiment, it is pointed out that when the background server predicts that a certain business server is in a busy state, that is, by caching query requests or starting candidate servers to improve the user experience, in order to better improve the user experience, the time when the business request volume of a certain business server reaches the maximum value can be predicted in advance. At this time, the above measures can be taken in advance to reduce the waiting time (for example, reducing the waiting time for the query from a certain business server to be converted to a query by its corresponding candidate server). In an embodiment of the present application, the background server can obtain the response time of a certain business server (the time between sending a query request to the business server and obtaining the query result) at regular intervals, and predict the time when the query volume of the business server reaches a threshold through the business query volume prediction model, as well as the time that the business server is in a busy state (that is, the time when the business server changes from a busy state to a non-busy state can be predicted).
[0205] The present application embodiment provides another method for business processing, such as Figure 5 As shown, the method may be performed by the target client and may include:
[0206] Step S501: Send a page acquisition request to the backend server.
[0207] In the embodiment of the present application, when the target client receives a page acquisition instruction triggered by the target object, it sends a page acquisition request to the background server.
[0208] Step S502: Obtain the current page information of the target page and display the current page information.
[0209] Among them, the current page information of the target page is determined by the background server in the following manner: in response to the page acquisition request of the target client, determining at least one first business corresponding to the requested target page; sending corresponding business information query requests to the business servers of at least one second business respectively to obtain the current business information corresponding to each second business, wherein at least one second business is at least part of the first business; if there is at least one third business in at least one first business whose current business information has not been obtained, obtaining the historical business information of each third business from the historical page information, and using the historical business information as the current business information; wherein the historical page information is: the page information of the target page that was most recently provided to the target client; based on the current business information of each first business, determining the current page information of the target page.
[0210] Specifically, the method for obtaining the current page information of the target page can be found in the above embodiment, which will not be described in detail here.
[0211] Furthermore, in some cases, the backend server may fail, or be unable to return the current page information of the target page to the client. In order to avoid the target client directly displaying a page access error and to further improve the experience, the method may also include: if the current page information of the target page returned by the backend server is not received within a preset time period, the target page is displayed based on the historical page information of the target page in the local cache. In an embodiment of the present application, the local cache of the target client stores historical page information. At this time, if the current page information of the target page is not received from the backend server within the preset time period, the target client directly displays the historical page information of the target page.
[0212] Furthermore, it can be seen from the above embodiments that the target page corresponds to at least one first business, that is, the target object can trigger any first business in the target page to obtain detailed business information corresponding to the first business, that is, similarly, the target client sends a request information for detailed business information of a certain first business to the background server, so that the background server queries the corresponding business server, but if the target client does not receive the feedback detailed business information within the preset time, the target client can obtain the historical detailed business information of the first business from the local cache and display it.
[0213] Furthermore, the target client locally caches historical page information of the target page, so that when the current page information of the target page cannot be obtained or the backend server cannot query the current business information of some businesses, it can be displayed in time. Therefore, when the current page information of the target page returned by the backend server is received within a preset time period, the historical page information of the target page cached in the local storage is updated based on the current page information of the target page. This also ensures that when the current page information of the target page is subsequently obtained and displayed using the historical page information of the target page cached in the local cache, the accuracy is higher and the experience is better.
[0214] Furthermore, in the above embodiment, a method for business processing is described in detail from the perspective of the background server and the target client. In the following embodiment, the method for business processing shown in the embodiment of the present application is described through the implementation of a specific scenario, as shown below:
[0215] The user requests to query the wallet payment page, that is, the target client requests the wallet payment page request from the backend server. The wallet payment page contains multiple business services (change service, payment card service, etc.); after receiving the request, the backend server sends a query request to the server of each business, for example, sending a query request to the server corresponding to the change service and sending a query request to the payment card server;
[0216] Case 1: If the query results returned by each server can be received, the backend server will splice the returned results and return the current page information of the wallet payment business page after splicing to the target client so that the target client can display it. Of course, the backend server can also directly send the query results returned by each sub-server to the target client so that the target client can splice the query results returned by each sub-server and display them to the user;
[0217] Case 2: If the query results returned by some business servers are received, but the results returned by other business servers are not received (for example, the results returned by other services such as the change service are received, but the results returned by the payment card server are not received), the backend server will find the display results of the "Payment Card Service" page from the historical page information transmitted by the target client, and then splice the display results of the "Payment Card Service" page with the results of other pages that can be received, and return the spliced result to the client. In another case, the backend does not perform the splicing process, but returns the display results of each page that can be received to the target client, so that the target client can splice them and display them to the user.
[0218] Case 3: The target client sends a wallet payment page query request to the backend server, but does not receive a response within the preset time. At this time, the target client obtains the historical page information of the wallet payment page from the local cache and displays the historical page information. Figure 6a As shown;
[0219] Furthermore, when a user requests a wallet payment page, the backend server needs to request the business query results from the servers of each business. The specific query method is as follows:
[0220] When the backend server sends the query result of the service to any service server, for example, when requesting to query the change service server, or when requesting the query result to the payment card server; at this time, the backend server first determines the service level corresponding to the service, such as Figure 6b As shown, a method for processing any business based on the business level is introduced, wherein:
[0221] 6.1 If downgrading is not possible, call the service server to query service information in real time;
[0222] 6.2 The backend server determines whether the query is successful;
[0223] 6.3 If the query is successful, the latest query results will be returned to the target client;
[0224] 6.4 If the query is unsuccessful, the backend server will check whether there is a local client cache;
[0225] 6.5 If yes, continue to use client cache;
[0226] 6.6, if not, it fails and downgrades;
[0227] 6.7 If downgrade is possible, the backend server checks whether there is a client cache;
[0228] 6.8 If yes, continue to use the client cache and the process ends;
[0229] 6.9 If not, call the business server to query business information in real time;
[0230] 6.11 If the query is successful, it will be returned to the client for display;
[0231] 6.12 If no results are found, the item will be downgraded and not displayed.
[0232] 6.13 If downgrade is possible, the backend server checks whether there is any client cache;
[0233] 6.14 If yes, check whether the cache is expired;
[0234] 6.15 If it has not expired, it is returned to the client so that the client can display it, and the process ends;
[0235] 6.16 If it expires, the business server will be called to query the business information in real time;
[0236] 6.17 If the query is successful, it is returned to the client for display;
[0237] 6.18 If the query is not successful, continue to use the client cache;
[0238] Based on the same principle as the business processing method provided in the embodiment of the present application, the embodiment of the present application provides a business processing device, which is deployed in a background server in the business processing system, such as Figure 6c As shown, the service processing device 60 may include: a first determining module 61, a first sending module 62, a first acquiring module 63, a second determining module 64 and a second sending module 65, wherein:
[0239] A first determining module 61 is configured to determine, in response to a page acquisition request from a target client, at least one first service corresponding to the requested target page;
[0240] A first sending module 62 is configured to send corresponding service information query requests to a service server of at least one second service, respectively, to obtain current service information corresponding to each second service, wherein at least one second service is at least part of the first service;
[0241] A first acquisition module 63 is configured to, when at least one third service exists in at least one first service and the current service information is not yet obtained, acquire historical service information of each third service from historical page information and use the historical service information as the current service information; wherein the historical page information is page information of the target page most recently provided to the target client;
[0242] A second determining module 64 is configured to determine current page information of a target page based on current business information of each first business;
[0243] The second sending module 65 is configured to send the current page information to the target client, so that the target client displays the target page based on the received current page information.
[0244] The device 60 further includes: a second acquisition module and a third determination module, wherein:
[0245] A second acquisition module is used to obtain the service level of each first service;
[0246] The third determining module is configured to determine at least one second service from each first service based on the service level of each first service.
[0247] In one possible implementation of the embodiment of the present application, when the third determination module determines at least one second service from each first service based on the service level of each first service, it is specifically configured to:
[0248] A first business that satisfies at least one of the following conditions among the first businesses is determined as a second business:
[0249] The corresponding business level belongs to the target level;
[0250] The target client does not cache any historical business information;
[0251] The target client stores historical service information of the service and the cache duration of the historical service information is greater than the preset duration.
[0252] In another possible implementation of the embodiment of the present application, the service level represents the priority of the service, and the target level is the first level, the second level, or the third level. The first level has a lower priority than the second level, and the second level has a lower priority than the third level.
[0253] The third determining module, when determining at least one second service from each first service based on the service level of each first service, is specifically configured to do at least one of the following:
[0254] Determine the first business with the first business level as the second business;
[0255] A first service whose service level is the second level and whose target client has cached historical service information of the service, but whose cache time of the historical service information is longer than a preset time, is determined as the second service;
[0256] A first service whose service level is the third level and for which the target client has no historical service information cached is determined as the second service.
[0257] In another possible implementation of the embodiment of the present application, when the second obtaining module obtains the service level of each first service, it is specifically configured to:
[0258] Determine the request time for page retrieval requests;
[0259] Determine a target time period to which the request time belongs among multiple preset time periods;
[0260] Determining a target mapping relationship corresponding to the target time period from the mapping relationships corresponding to the respective preset time periods, wherein any mapping relationship includes: a correspondence between each of a plurality of services in the corresponding preset time period and a service level corresponding to the service, wherein the plurality of services include at least one first service;
[0261] Based on the target mapping relationship, a service level of each first service is obtained.
[0262] In another possible implementation of the embodiment of the present application, the page acquisition request is any page acquisition request in the current business cycle;
[0263] The mapping relationship corresponding to any preset time period is determined based on at least one of the following:
[0264] The predicted first number of requests for each of the multiple services in the next cycle;
[0265] Performance information of the business servers corresponding to each of the multiple businesses;
[0266] The frequency of updating business information corresponding to each of the multiple businesses;
[0267] The predicted number of requests corresponding to a service is determined based on the number of times the service is requested in the preset time period in at least one historical period.
[0268] In another possible implementation of the embodiment of the present application, the at least one third service includes: a second service that fails to request current service information from the service server.
[0269] In another possible implementation of the embodiment of the present application, the page acquisition request includes historical page information of the target page cached by the target client;
[0270] When the first acquisition module 63 acquires the historical service information of each third service from the historical page information, it is specifically used to:
[0271] Querying historical service information of each third service from the historical page information included in the page acquisition request;
[0272] The current page information is received by the target client and is used to update the historical page information.
[0273] In another possible implementation of the embodiment of the present application, if at least one third service is all first services, the apparatus 60 further includes: at least one of a third sending module or a returning module, wherein:
[0274] A third sending module is configured to send the historical page information of the target page as the current page information to the historical page information of the target client, so that the target client displays the target page based on the historical page information of the target page;
[0275] The return module is used to return request failure notification information to the target client, so that the target client can display the target page based on the historical page information of the target page cached locally.
[0276] It should be noted that the first determination module 61, the second determination module 64 and the third determination module can be the same determination module, or they can all be different determination modules, or they can also be partially the same determination modules; the first sending module 62, the second sending module 65 and the third sending module can all be the same sending module, or they can all be different sending modules, or they can also be partially the same sending modules; the first acquisition module 63 and the second acquisition module can all be the same acquisition module, or they can all be different acquisition modules, which is not limited in the embodiments of the present application.
[0277] The present application also provides another service processing device, such as Figure 7 As shown, the business processing device 70 is deployed in each client of at least one client in the business processing system. The business processing device 70 includes: an acquisition request sending module 71, a page information acquisition module 72 and a first display module 73, wherein,
[0278] The acquisition request sending module 71 is used to send a page acquisition request to the backend server;
[0279] The page information acquisition module 72 is used to obtain the current page information of the target page;
[0280] The first display module 73 is used to display the current page information;
[0281] The current page information of the target page is determined by the backend server in the following way:
[0282] In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page;
[0283] Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein at least one second service is at least part of the first service;
[0284] If at least one third service exists in at least one first service, for which current service information has not been obtained, historical service information of each third service is obtained from historical page information, and the historical service information is used as current service information; wherein the historical page information is page information of the target page that was most recently provided to the target client;
[0285] Based on the current business information of each first business, current page information of the target page is determined.
[0286] In another possible implementation of the embodiment of the present application, the apparatus 70 further includes:
[0287] The second display module is used to display the target page based on the page information of the target page cached locally when the current page information of the target page returned by the background server is not received within a preset time period.
[0288] In another possible implementation of the embodiment of the present application, if the current page information of the target page returned by the backend server is received within a preset time, the device 70 further includes: an updating module, wherein:
[0289] The update module is used to update the page information of the cached target page in the local storage based on the current page information of the target page.
[0290] It should be noted that the first display module 73 and the second display module can be the same display module or different display modules, which is not limited in the embodiment of the present application.
[0291] The devices of the embodiments of the present application can execute the methods provided in the embodiments of the present application, and their implementation principles are similar and have corresponding technical effects. The actions performed by the modules in the devices of the embodiments of the present application correspond to the steps in the methods of the embodiments of the present disclosure. For detailed functional descriptions of the modules of the devices, please refer to the descriptions of the corresponding methods shown above, and will not be repeated here.
[0292] Figure 8 A schematic diagram of the structure of an electronic device applicable to the embodiment of the present application is shown in FIG. Figure 8 As shown, for example, the electronic device can be the background server or user terminal shown above, and the electronic device can be used to implement the method provided in any embodiment of the present application.
[0293] like Figure 8 As shown in FIG, the electronic device 2000 may mainly include at least one processor 2001 ( Figure 8 1 ), memory 2002, communication module 2003 and input / output interface 2004 and other components, optionally, the components can be connected and communicated through bus 2005. It should be noted that, Figure 8 The structure of the electronic device 2000 shown in the figure is merely illustrative and does not constitute a limitation on the electronic devices to which the method provided in the embodiments of the present application is applicable.
[0294] Memory 2002 can be used to store operating systems and application programs, etc. Application programs can include computer programs that implement the methods described in the embodiments of the present invention when called by processor 2001, and can also include programs for implementing other functions or services. Memory 2002 can be ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices that can store information and computer programs, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0295] The processor 2001 is connected to the memory 2002 via the bus 2005 and implements corresponding functions by calling the application program stored in the memory 2002. The processor 2001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor 2001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0296] The electronic device 2000 can be connected to a network via a communication module 2003 (which may include, but is not limited to, components such as a network interface) to communicate with other devices (such as a user terminal or a server) via the network to implement data interaction, such as sending data to or receiving data from other devices. The communication module 2003 may include a wired network interface and / or a wireless network interface, etc., that is, the communication module may include at least one of a wired communication module and a wireless communication module.
[0297] The electronic device 2000 can be connected to the required input / output devices, such as a keyboard, a display device, etc., through the input / output interface 2004. The electronic device 2000 itself can have a display device, and can also be connected to other external display devices through the interface 2004. Optionally, a storage device, such as a hard disk, can also be connected through the interface 2004, so that data in the electronic device 2000 can be stored in the storage device, or data in the storage device can be read, and data in the storage device can also be stored in the memory 2002. It can be understood that the input / output interface 2004 can be a wired interface or a wireless interface. Depending on the actual application scenario, the device connected to the input / output interface 2004 can be a component of the electronic device 2000, or it can be an external device connected to the electronic device 2000 when needed.
[0298] Bus 2005, used to connect the various components, may include a path for transmitting information between the components. Bus 2005 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. Depending on their function, bus 2005 may be categorized as an address bus, a data bus, a control bus, or the like.
[0299] Optionally, for the solution provided in the embodiment of the present application, the memory 2002 can be used to store a computer program for executing the solution of the present application, and be run by the processor 2001. When the processor 2001 runs the computer program, the actions of the method or device provided in the embodiment of the present application are implemented.
[0300] Based on the same principle as the method provided in the embodiment of the present application, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented.
[0301] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the corresponding content of the aforementioned method embodiment can be implemented.
[0302] It should be noted that the terms "first," "second," "third," "fourth," "1," "2," etc. (if any) in the specification and claims of this application and the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0303] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the order of implementation of these steps is not limited to the order indicated by the arrows. Unless otherwise clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. Under different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0304] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0305] The above description is only an optional implementation method for some implementation scenarios of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of this application, the use of other similar implementation methods based on the technical ideas of this application also falls within the protection scope of the embodiments of this application.
Claims
1. A business processing method, characterized in that: Applied to a business processing system, the system includes: at least one client, a background server and business servers for multiple businesses; The method is executed by the backend server and includes: In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page; Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service; If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client; Determining current page information of the target page based on current business information of each of the first businesses; The current page information is sent to the target client, so that the target client displays the target page based on the received current page information.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a service level for each of the first services; At least one second service is determined from the first services based on the service levels of the first services.
3. The method according to claim 2, characterized in that The determining at least one second service from each of the first services based on the service level of each of the first services includes: A first service that satisfies at least one of the following conditions among the first services is determined as a second service: The corresponding business level belongs to the target level; The target client does not cache historical service information of the service; The target client stores historical service information of a service, and the cache time length of the historical service information is greater than a preset time length.
4. The method according to claim 3, characterized in that The service level represents the priority of the service. The target level is the first level, the second level, or the third level. The priority of the first level is lower than the priority of the second level, and the priority of the second level is lower than the priority of the third level. The determining of at least one second service from each of the first services based on the service level of each of the first services includes any one of the following: Determine the first business with the first business level as the second business; Determine, as a second service, a first service whose service level is the second level and for which the target client has cached historical service information, but for which the cache duration of the historical service information is longer than a preset duration; A first service whose service level is the third level and for which the target client has no historical service information cached is determined as the second service.
5. The method according to claim 2, characterized in that Obtaining the service level of each of the first services includes: Determining a request time for the page acquisition request; Determining a target time period to which the request time belongs among a plurality of preset time periods; Determining a target mapping relationship corresponding to the target time period from the mapping relationships corresponding to the respective preset time periods, wherein any of the mapping relationships includes: a correspondence between each of a plurality of services in the corresponding preset time period and a service level corresponding to the service, wherein the plurality of services include the at least one first service; Based on the target mapping relationship, a service level of each first service is obtained.
6. The method according to claim 5, characterized in that The page acquisition request is any page acquisition request in the current business cycle; The mapping relationship corresponding to any preset time period is determined based on at least one of the following: a predicted first number of requests for each of the multiple services in the next cycle; performance information of the service servers corresponding to each of the multiple services; The service information update frequency corresponding to each of the multiple services; The predicted number of requests corresponding to a service is determined based on the number of times the service is requested in the preset time period in at least one historical period.
7. The method according to any one of claims 1 to 3, characterized in that The at least one third service includes: The second service fails to request the current service information from the service server.
8. The method according to claim 1, characterized in that The page acquisition request includes historical page information of the target page cached by the target client; The acquiring of historical service information of each of the third services from historical page information includes: querying historical service information of each third service from the historical page information included in the page acquisition request; The current page information is received by the target client and is used to update the historical page information.
9. The method according to claim 1, characterized in that If the at least one third service is all first services, the method further includes any one of the following: sending the target page's historical page information as current page information to the target client, so that the target client displays the target page based on the target page's historical page information; Returning request failure notification information to the target client, so that the target client displays the target page based on the historical page information of the target page cached locally.
10. A business processing method, characterized in that: Applied to a business processing system, the system includes: at least one client, a background server and business servers for multiple businesses; The method is executed by the target client and includes: Sending a page acquisition request to the backend server; Obtaining the current page information of the target page and displaying the current page information; The current page information of the target page is determined by the backend server in the following manner: In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page; Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service; If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client; Based on the current business information of each of the first businesses, the current page information of the target page is determined.
11. The method according to claim 10, characterized in that The method further comprises: If the current page information of the target page returned by the background server is not received within a preset time period, the target page is displayed based on the page information of the target page cached locally.
12. The method according to claim 10 or 11, characterized in that If the current page information of the target page is received from the backend server within a preset time period, the method further includes: The page information of the target page cached in the local storage is updated based on the current page information of the target page.
13. A device for business processing, characterized in that: The business processing device is deployed in a background server in a business processing system, and the business processing system further includes: at least one client and a business server for multiple businesses; the business processing device includes: A first determining module, configured to determine, in response to a page acquisition request from a target client, at least one first service corresponding to the requested target page; A first sending module is configured to send corresponding service information query requests to a service server of at least one second service, respectively, to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service; A first acquisition module is configured to, when there is at least one third service among the at least one first service for which current service information has not been acquired, acquire historical service information of each of the third services from historical page information, and use the historical service information as current service information; wherein the historical page information is page information of the target page most recently provided to the target client; A second determining module, configured to determine current page information of the target page based on current business information of each of the first businesses; The second sending module is configured to send the current page information to the target client, so that the target client displays the target page based on the received current page information.
14. A business processing device, characterized in that: The service processing device is deployed in each of at least one client in the service processing system and is applied to the service processing system. The system further includes: a background server and service servers for multiple services; The service processing device includes: A request sending module for sending a page acquisition request to the backend server; A page information acquisition module, used to acquire the current page information of the target page; A first display module, used to display the current page information; The current page information of the target page is determined by the backend server in the following manner: In response to a page acquisition request from a target client, determining at least one first service corresponding to the requested target page; Sending corresponding service information query requests to the service server of at least one second service respectively to obtain current service information corresponding to each second service, wherein the at least one second service is at least part of the first service; If there is at least one third service among the at least one first service, for which current service information has not been obtained, obtaining historical service information of each of the third services from historical page information, and using the historical service information as current service information; wherein the historical page information is: page information of the target page most recently provided to the target client; Based on the current business information of each of the first businesses, the current page information of the target page is determined.
15. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the business processing method according to any one of claims 1 to 9 or any one of claims 10 to 12 when running the computer program.
16. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the business processing method described in any one of claims 1 to 9 or any one of claims 10 to 12.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the business processing method described in any one of claims 1 to 9 or any one of claims 10 to 12 are implemented.
Citation Information
Cited By
Container deployment method and system
CN121455666A