Method for realizing dynamic business acceptance response optimization through page incremental refreshing
Through incremental page refresh and preset package group control, unnecessary front-end and back-end interactions are reduced, fast response and efficient performance of the cloud product acceptance page are achieved, and the problems of long response and lag in the existing technology are solved.
Patent Information
- Application Number
- CN202410527580.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-04-29
AI Technical Summary
In the existing technology, the cloud product acceptance page cannot achieve fast response and cannot control the number of interactions, resulting in problems such as long page response or even lag.
Through the method of incremental page refresh, the front-end device processes the target attribute change information of the target page, controls the incremental response interaction based on the preset package group and non-suite group request identification, reduces unnecessary front-end and back-end interactions, and uses the NHIS protocol to control the frequency of interactions. , and conduct unified pre-verification when all information on the page is submitted.
It significantly reduces the number of dynamic business acceptance responses, improves system performance and user experience, and solves the problems of long page responses and lags.
Smart Images

Figure CN118631797A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing page refresh, and in particular to a method for optimizing dynamic business acceptance response through incremental page refresh. Background Art
[0002] In the prior art, a front-end operation is required every time information is changed. Even if the changed information is a non-logical calculation operation, a front-end interaction is required, resulting in frequent interactions of incremental page changes and invalid front-end and back-end logical interactions. In addition, the prior art is based on a preset attribute constraint configuration, and the first change information on the front-end is verified and processed. Each time the target page changes incrementally, the change information must be constrained and verified, which will respond to each incremental response of the target attribute page, and may even cause frequent page freezes.
[0003] To this end, we propose a method to optimize dynamic business acceptance response through incremental page refresh to solve the above-mentioned problems. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the problems existing in the above-mentioned existing methods for optimizing dynamic business acceptance response by incremental page refresh, the present invention is proposed.
[0006] Therefore, the purpose of the present invention is to provide a method for optimizing dynamic business acceptance response through incremental page refresh, which solves the problems that the cloud product acceptance page cannot respond quickly, the number of interactions cannot be controlled, and the page response is too long or even stuck due to multiple processing logics.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions: a method for optimizing dynamic business acceptance response by incremental page refresh, comprising the following steps:
[0008] Step 1: Processing first change information of target attributes of the target page sent by the front-end device;
[0009] Step 2: Based on the preset suite group request identifier, the front-end device controls the incremental response interaction to determine whether to send the first change information of the target attribute of the target page;
[0010] Step 3: Based on the preset non-suite group control request identifier, the front-end device controls the incremental response interaction, determines whether to send the first change information of the target attribute of the target page, and the back-end device controls the response processing and processes the response interaction logic;
[0011] Step 4: The front-end device sends the full information of the target page, triggering unified pre-verification.
[0012] As a preferred solution of the method for optimizing dynamic business acceptance response through incremental page refresh described in the present invention, the first change information in step one is generated by a front-end operation performed by a user on the target attribute of the target page, and the target attribute refers to a page attribute whose attribute value can change, such as a page control or a page control group input information.
[0013] As a preferred solution of the method for optimizing dynamic business acceptance response through incremental page refresh described in the present invention, wherein: step two is based on the NHIS protocol, which is used by the front end to control the frequency of interaction with the back end during interaction, and the incremental operation can call the background service once or zero times.
[0014] As a preferred solution of the method for realizing dynamic business acceptance response optimization by incremental page refresh of the present invention, the suite group in step 2 includes: an address information suite group, by presetting the response identifier of each control to control whether to perform the front-end and back-end interactive operation, the specific steps include:
[0015] Step A1: preset a single control response identifier in the suite group;
[0016] Step A2: preset the kit group response identifier;
[0017] When the page is performing incremental operations, the front end triggers the NHIS protocol according to the preset control response identifier, and controls one or zero interactions with the back end.
[0018] As a preferred solution of the method for realizing dynamic business acceptance response optimization by incremental page refresh of the present invention, wherein: in the step 3, the non-suite group control is preset to define a new request constraint for identifying the front-end and back-end interactive processing operations, including the following steps:
[0019] Step B1: preset a single control front-end response identifier;
[0020] Step B2: Preset the backend logic identifier of a single control.
[0021] If the front-end response of the incremental information submission control mark is no interaction, the incremental operation will not perform front-end interaction;
[0022] If the front-end response of the incremental information submission control is interactive and the back-end logic is near cache, the incremental operation is directly recorded in the change information cache object without any additional calculation logic processing.
[0023] As a preferred solution of the method for optimizing dynamic business acceptance response by incremental page refresh of the present invention, in which: in step 4, after the incremental page information is accepted, the full incremental page information is uniformly submitted to the back-end device for unified pre-checking. The specific operation steps are as follows:
[0024] Step C01: The user selects the cloud product to be processed on the business processing interface displayed on the front end, and then proceeds to step C02;
[0025] Step C02: triggering backend unified verification;
[0026] Step C03: back-end processing verification;
[0027] Step C04: The backend converts the complete verification JSON request into a string, and stores the request content and verification result in the cache;
[0028] Step C05: Cache return verification storage result;
[0029] Step C06: The backend returns the verification result;
[0030] Step C07: the front end returns the verification result;
[0031] Step C08: The user resubmits the accepted cloud product multiple times after modification;
[0032] Step C09: triggering backend unified verification;
[0033] Step C10: Obtain cache verification information;
[0034] Step C11: Cache return verification storage result.
[0035] As a preferred solution of the method for realizing dynamic business acceptance response optimization by incremental page refresh of the present invention, the method is applied to the interactive response control of front-end and back-end devices, including:
[0036] Formulate a new front-end and back-end interaction protocol: The front-end and back-end formulate a set of standard protocols for high front-end and back-end interaction, using multiple interactions to call the back-end service once or zero times for each front-end operation;
[0037] Define new page suite groups: Based on the NHIS protocol, by defining new suite groups, multiple separate controls are collected on different suite groups. Each control is individually identified to control whether the front-end and back-end interact with each other, so that the information incremental changes of multiple separate suites in the suite group can be controlled interactively.
[0038] Construct the initial cache object: construct the initial cache object AcceptOrderContextBo and the change information cache object PortalChangedContext to record the information and change information required for the entire business acceptance;
[0039] Define new response request constraints and cache interaction strategies: Define new request constraint rules for non-suite group controls to identify the front-end and back-end interaction processing logic.
[0040] As a preferred solution of the method for optimizing dynamic business acceptance response by incremental page refresh described in the present invention, the front-end and back-end interaction processing logic includes: 1. Whether to trigger back-end interaction; 2. Whether to trigger logic calculation if the interaction is triggered.
[0041] As a preferred solution of the method for optimizing dynamic business acceptance response through incremental page refresh described in the present invention, if the submission control of the incremental information is marked as not to interact, then the incremental operation will not perform front-end interactive operations, and the front-end will not send requests to the back-end, thereby reducing unnecessary communication overhead; if it is marked as triggering interaction but not triggering logical calculations, then the incremental operation will be directly recorded in the change information cache object PortalChangedContext without performing other additional calculation logic processing, thereby reducing unnecessary calculation and processing operations and improving the performance and efficiency of the system.
[0042] As a preferred solution of the method for optimizing dynamic business acceptance response by incremental page refresh of the present invention, the method is applied to optimize dynamic business backend verification processing response, and further includes:
[0043] The first sending module triggers a front-end verification processing interaction when submitting all incremental information of the page;
[0044] A second receiving module is used to send the incremental information to a back-end receiving device to process all incremental update information of the target page;
[0045] The third processing module, after the backend device receives all the incremental update information of the target page, is used for logic verification and remote verification processing; if all the local incremental updates have been stored in the cache, this module does not process;
[0046] The fourth processing module, the backend device caches all incremental update information and verification results of the target page. If all local incremental updates have been stored in the storage, this module does not process them;
[0047] The page refresh module is used to verify the results according to all incremental update information of the page, refresh the page and respond.
[0048] Beneficial effects of the invention: The invention solves the problem that the cloud product acceptance page cannot achieve fast response, cannot control the number of interactions, and the page response is too long or even stuck due to multiple processing logic. This method significantly reduces the number of dynamic business acceptance responses, significantly improves the acceptance page system performance, and significantly improves user perception by controlling the incremental refresh of the page. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0050] Figure 1 The present invention is a flowchart of a method for optimizing dynamic business acceptance response through incremental page refresh. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0052] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0053] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0054] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0055] Reference Figure 1 , provides a method for optimizing dynamic business acceptance response by incremental page refresh, including the following steps:
[0056] Step 1: Processing first change information of target attributes of the target page sent by the front-end device;
[0057] Step 2: Based on the preset suite group request identifier, the front-end device controls the incremental response interaction to determine whether to send the first change information of the target attribute of the target page;
[0058] Step 3: Based on the preset non-suite group control request identifier, the front-end device controls the incremental response interaction, determines whether to send the first change information of the target attribute of the target page, and the back-end device controls the response processing and processes the response interaction logic;
[0059] Step 4: The front-end device sends the full information of the target page, triggering unified pre-verification.
[0060] The first change information in step 1 is generated by a front-end operation performed by a user on a target attribute of a target page, where the target attribute refers to a page attribute whose attribute value can change, such as page controls and page control group input information.
[0061] Among them, step 2 is based on the NHIS protocol, which is used by the front end to control the frequency of interaction with the back end during interaction. The incremental operation can call the background service once or zero times.
[0062] Furthermore, the suite group in step 2 includes: an address information suite group, by presetting the response identifier of each control to control whether to perform the front-end and back-end interactive operation, the specific steps include:
[0063] Step A1: preset a single control response identifier in the suite group;
[0064] Step A2: preset the kit group response identifier;
[0065] When the page is performing incremental operations, the front end triggers the NHIS protocol according to the preset control response identifier, and controls one or zero interactions with the back end.
[0066] The step 3 presetting the non-suite group control to define a new request constraint for identifying the front-end and back-end interactive processing operations includes the following steps:
[0067] Step B1: preset a single control front-end response identifier;
[0068] Step B2: Preset the backend logic identifier of a single control.
[0069] If the front-end response of the incremental information submission control mark is no interaction, the incremental operation will not perform front-end interaction;
[0070] If the front-end response of the incremental information submission control is interactive and the back-end logic is near cache, the incremental operation is directly recorded in the change information cache object without any additional calculation logic processing.
[0071] Among them, in step 4, after the page incremental information is accepted, the full page incremental information is uniformly submitted to the backend device for unified pre-verification processing. The specific operation steps are:
[0072] Step C01: The user selects the cloud product to be processed on the business processing interface displayed on the front end, and then proceeds to step C02;
[0073] Step C02: triggering backend unified verification;
[0074] Step C03: back-end processing verification;
[0075] Step C04: The backend converts the complete verification JSON request into a string, and stores the request content and verification result in the cache;
[0076] Step C05: Cache return verification storage result;
[0077] Step C06: The backend returns the verification result;
[0078] Step C07: the front end returns the verification result;
[0079] Step C08: The user resubmits the accepted cloud product multiple times after modification;
[0080] Step C09: triggering backend unified verification;
[0081] Step C10: Obtain cache verification information;
[0082] Step C11: Cache return verification storage result.
[0083] Specifically, the method is applied to the interactive response control of front-end and back-end devices, including:
[0084] Formulate a new front-end and back-end interaction protocol: The front-end and back-end formulate a set of standard protocols for high front-end and back-end interaction, using multiple interactions to call the back-end service once or zero times for each front-end operation;
[0085] Define new page suite groups: Based on the NHIS protocol, by defining new suite groups, multiple separate controls are collected on different suite groups. Each control is individually identified to control whether the front-end and back-end interact with each other, so that the information incremental changes of multiple separate suites in the suite group can be controlled interactively.
[0086] Construct the initial cache object: construct the initial cache object AcceptOrderContextBo and the change information cache object PortalChangedContext to record the information and change information required for the entire business acceptance;
[0087] Define new response request constraints and cache interaction strategies: Define new request constraint rules for non-suite group controls to identify the front-end and back-end interaction processing logic, where the front-end and back-end interaction processing logic includes: 1. Whether to trigger back-end interaction; 2. If the interaction is triggered, whether to trigger logic calculation.
[0088] If the submit control of the incremental information is marked as non-interaction, then this incremental operation will not perform front-end interaction, and the front-end will not send requests to the back-end, reducing unnecessary communication overhead; if it is marked as triggering interaction but not triggering logical calculation, then this incremental operation will be directly recorded in the change information cache object PortalChangedContext without performing other additional calculation logic processing, which can reduce unnecessary calculation and processing operations and improve system performance and efficiency.
[0089] The method is applied to dynamic business backend verification processing response optimization, and also includes:
[0090] The first sending module triggers a front-end verification processing interaction when submitting all incremental information of the page;
[0091] A second receiving module is used to send the incremental information to a back-end receiving device to process all incremental update information of the target page;
[0092] The third processing module, after the backend device receives all the incremental update information of the target page, is used for logic verification and remote verification processing; if all the local incremental updates have been stored in the cache, this module does not process;
[0093] The fourth processing module, the backend device caches all incremental update information and verification results of the target page. If all local incremental updates have been stored in the storage, this module does not process them;
[0094] The page refresh module is used to verify the results according to all incremental update information of the page, refresh the page and respond.
[0095] The present invention solves the problems that the cloud product acceptance page cannot achieve a quick response, the number of interactions cannot be controlled, and the page response is too long or even stuck due to multiple processing logics.
[0096] This method significantly reduces the number of dynamic business acceptance responses, significantly improves the acceptance page system performance, and significantly improves user perception by controlling the incremental refresh of the page.
[0097] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for optimizing dynamic business acceptance response by incremental page refresh, characterized in that: The following steps are involved: Step 1: Processing first change information of target attributes of the target page sent by the front-end device; Step 2: Based on the preset suite group request identifier, the front-end device controls the incremental response interaction to determine whether to send the first change information of the target attribute of the target page; Step 3: Based on the preset non-suite group control request identifier, the front-end device controls the incremental response interaction, determines whether to send the first change information of the target attribute of the target page, and the back-end device controls the response processing and processes the response interaction logic; Step 4: The front-end device sends the full information of the target page, triggering unified pre-verification.
2. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: The first change information in step 1 is generated by a front-end operation performed by a user on a target attribute of a target page, where the target attribute refers to a page attribute whose attribute value can be changed, such as page controls and page control group input information.
3. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 2, characterized in that: The step 2 is based on the NHIS protocol, which is used by the front end to control the frequency of interaction with the back end during interaction. The incremental operation can call the back end service once or zero times.
4. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 3, characterized in that: The suite group in step 2 includes: an address information suite group, by presetting the response identifier of each control to control whether to perform the front-end and back-end interactive operation, the specific steps include: Step A1: preset a single control response identifier in the suite group; Step A2: preset the kit group response identifier; When the page is performing incremental operations, the front end triggers the NHIS protocol according to the preset control response identifier, and controls one or zero interactions with the back end.
5. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: In step 3, the non-suite group control is preset to define a new request constraint for identifying the front-end and back-end interaction processing operations, including the following steps: Step B1: preset a single control front-end response identifier; Step B2: preset a single control backend logic identifier; If the front-end response of the incremental information submission control mark is no interaction, the incremental operation will not perform front-end interaction; If the front-end response of the incremental information submission control is interactive and the back-end logic is near cache, the incremental operation is directly recorded in the change information cache object without any additional calculation logic processing.
6. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: In step 4, after the page incremental information is accepted, the full page incremental information is uniformly submitted to the backend device for unified pre-verification processing. The specific operation steps are as follows: Step C01: The user selects the cloud product to be processed on the business processing interface displayed on the front end, and then proceeds to step C02; Step C02: triggering backend unified verification; Step C03: back-end processing verification; Step C04: The backend converts the complete verification JSON request into a string, and stores the request content and verification result in the cache; Step C05: Cache return verification storage result; Step C06: The backend returns the verification result; Step C07: the front end returns the verification result; Step C08: The user resubmits the accepted cloud product multiple times after modification; Step C09: triggering backend unified verification; Step C10: Obtain cache verification information; Step C11: Cache return verification storage result.
7. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: The method is applied to the interactive response control of front-end and back-end devices, including: Formulate a new front-end and back-end interaction protocol: The front-end and back-end formulate a set of standard protocols for high front-end and back-end interaction, using multiple interactions to call the back-end service once or zero times for each front-end operation; Define new page suite groups: Based on the NHIS protocol, by defining new suite groups, multiple separate controls are collected on different suite groups. Each control is individually identified to control whether the front-end and back-end interact with each other, so that the information incremental changes of multiple separate suites in the suite group can be controlled interactively. Construct the initial cache object: construct the initial cache object AcceptOrderContextBo and the change information cache object PortalChangedContext to record the information and change information required for the entire business acceptance; Define new response request constraints and cache interaction strategies: Define new request constraint rules for non-suite group controls to identify the front-end and back-end interaction processing logic.
8. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 8, characterized in that: The front-end and back-end interaction processing logic includes:
1. Whether to trigger the back-end interaction; 2. If the interaction is triggered, whether to trigger the logic calculation.
9. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: If the submit control of the incremental information is marked as non-interaction, then this incremental operation will not perform front-end interaction, and the front-end will not send requests to the back-end, reducing unnecessary communication overhead; if it is marked as triggering interaction but not triggering logical calculation, then this incremental operation will be directly recorded in the change information cache object PortalChangedContext without performing other additional calculation logic processing, which can reduce unnecessary calculation and processing operations and improve system performance and efficiency.
10. The method for optimizing dynamic business acceptance response by incremental page refresh according to claim 1, characterized in that: The method is applied to dynamic business backend verification processing response optimization, and also includes: The first sending module triggers a front-end verification processing interaction when submitting all incremental information of the page; A second receiving module is used to send the incremental information to a back-end receiving device to process all incremental update information of the target page; The third processing module, after the backend device receives all the incremental update information of the target page, is used for logic verification and remote verification processing; if all the local incremental updates have been stored in the cache, this module does not process; The fourth processing module, the backend device caches all incremental update information and verification results of the target page. If all local incremental updates have been stored in the storage, this module does not process them; The page refresh module is used to verify the results according to all incremental update information of the page, refresh the page and respond.
Citation Information
Patent Citations
Page data backtracking method, device and equipment
CN112861050A
Page update detection method and device, electronic equipment and storage medium
CN114756458A
Page refreshing method and device and electronic equipment
CN115776516A
Interface refreshing method and system and medium
CN116449996A
Online script management system and method based on incremental updating mechanism
CN117827260A
Cited By
Form data incremental interaction method and device under front-end and back-end separation architecture
CN121166788A
