Method and device for processing Web application data at front end in real time and medium

By processing Web application data in real time on the front end, using distributed computing and high-precision mathematics libraries, combined with the LRU caching strategy, the response delay problem caused by Web application data relying on server-side processing is solved, improving system efficiency and user experience.

CN118690091APending Publication Date: 2024-09-24LANGCHAO GONGCHUANG (SHANDONG) SUPPLY CHAIN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410485644.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, web application data relies on server-side processing, which leads to increased response delays and low efficiency, especially when the network conditions are poor, the user experience is affected.

Method used

The front-end real-time processing method is adopted to obtain the real-time data pushed by the back-end, determine its type, and use the distributed computing model and high-precision mathematics library to perform accurate calculations when the high-precision numerical type is used, and use the LRU cache strategy and pre-computation technology to reduce Repeat calculations to improve response speed and resource utilization efficiency.

Benefits of technology

It effectively reduces the system computing load, improves response speed and user experience, ensures data accuracy and reliability, and makes full use of multi-core CPUs to handle large-scale high-precision computing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690091A
    Figure CN118690091A
Patent Text Reader

Abstract

The invention discloses a method and equipment for processing Web application data at a front end in real time and a medium, and relates to the technical field of data processing. The method comprises the steps that real-time data pushed by a rear end are acquired, the types of the real-time data are judged, and the types comprise a high-precision numerical value type and a high-frequency numerical value type; under the condition that the real-time data is of a high-precision numerical value type, performing accurate calculation on the real-time data through a distributed calculation model and a high-precision math library to obtain a calculation result; the calculation result and the real-time data are stored in a front-end database, and the rendering page is updated according to the calculation result. By means of the method, efficient operation of the system is achieved, repeated calculation is effectively avoided, the operation load of the system is reduced, the response speed of the system is increased, the intermediate result of high-frequency access is stored, and the resource utilization efficiency is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and medium for front-end real-time processing of Web application data. Background Art

[0002] Data processing on the server side involves multiple steps such as data reading, calculation, and conversion. These operations require the consumption of server computing resources. If the server performance is insufficient or the load is too high, it will lead to increased response delays and even cause service crashes. In this way, when data is interacted between the client and the server, the speed at which the client obtains data will be affected due to network transmission delays. This delay will be more obvious, especially in remote locations or in poor network conditions. This may cause users to feel impatient while waiting for data to load, reducing the user experience.

[0003] With the rapid development of Internet technology and the growing demand for real-time information among users, the traditional Web table data statistics method that relies on server-side processing and regular refresh can no longer meet the requirements of efficient and low-latency application scenarios.

[0004] Through the above analysis, the problems and defects of the prior art are as follows:

[0005] Most of the Web application data in the prior art relies on server-side processing, which will lead to increased response delay and low efficiency. Summary of the invention

[0006] The embodiments of the present application provide a method, device and medium for real-time processing of Web application data by a front end, which can solve the problem in the prior art that most Web application data relies on server-side processing, resulting in increased response delay and low efficiency.

[0007] In a first aspect, an embodiment of the present application provides a method for real-time processing of Web application data by a front end, the method comprising: obtaining real-time data pushed by a back end, determining the type of the real-time data, the type comprising a high-precision numerical type and a high-frequency numerical type; when the real-time data is a high-precision numerical type, accurately calculating the real-time data through a distributed computing model and a high-precision mathematical library to obtain a calculation result; storing the calculation result and the real-time data in a front-end database, and updating the rendering page according to the calculation result.

[0008] In one implementation of the present application, before obtaining the real-time data pushed by the back-end, the method also includes: extracting real-time data and calculation results in the front-end database whose frequency of occurrence is higher than a preset threshold, and obtaining high-frequency data, high-frequency results and high-frequency calculation modes respectively; and storing the high-frequency data, high-frequency results and high-frequency calculation modes in a preset cache area.

[0009] In one implementation of the present application, after obtaining the real-time data pushed by the back end, the method also includes: when the real-time data is a high-frequency numerical type, matching the high-frequency results in the cache area; when no high-frequency results are matched, matching the high-frequency calculation mode for calculation; when no high-frequency calculation mode is matched, calculating the real-time data, obtaining the calculation results, and saving them to the cache area.

[0010] In one implementation of the present application, before obtaining the real-time data pushed by the back end, the method also includes: establishing a full-duplex communication connection between the back end and the front end; presetting a database and a cache area, the database is an indexedDB database, and the cache area is an LRU cache area; introducing a high-precision mathematics library, the high-precision mathematics library includes a decimal.js library and a big.js library; building a responsive framework on the front end, binding the UI components in the responsive framework and the database and cache area, and the UI components present data in the form of a table.

[0011] In one implementation of the present application, real-time data is accurately calculated through a distributed computing model, and the calculation results are summarized, specifically including: creating multiple working threads to accurately calculate real-time data; after one thread in the working thread completes the calculation, the current thread sends a message to the target thread; listening to the message received by the target thread, extracting the results in the message and summarizing them to obtain the calculation results.

[0012] In one implementation of the present application, the rendering page is updated according to the calculation results, specifically including: based on the scrolling position of the window, dynamically loading the table data of the UI component, and obtaining the table data currently located at the scrolling position; the table data at the scrolling position is automatically updated and rendered according to the calculation results.

[0013] In one implementation of the present application, after the table data at the scrolling position is automatically updated and rendered according to the calculation results, the method also includes: monitoring the scrolling table data to determine whether the table data has reached a critical point; when the critical point is reached, calling a paging API to trigger the loading of the table data of the next page; after the paging API returns the calculation results, the table data is automatically updated and rendered according to the calculation results.

[0014] In one implementation of the present application, after storing the calculation results and real-time data in the front-end database and the first cache area, the method also includes: capturing errors in the process of obtaining real-time data, calculating real-time data, and updating the rendering page; repairing the captured exception code; if the repair fails, restoring to the state before the failure occurs through a rollback mechanism, sending an alarm and starting monitoring.

[0015] In a second aspect, an embodiment of the present application also provides a device for real-time processing of Web application data at the front end, the device comprising at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: obtain real-time data pushed by the back end, determine the type of the real-time data, the type including a high-precision numerical type and a high-frequency numerical type; when the real-time data is a high-precision numerical type, accurately calculate the real-time data through a distributed computing model and a high-precision mathematical library to obtain a calculation result; store the calculation result and the real-time data in a front-end database, and update the rendering page according to the calculation result.

[0016] In a third aspect, an embodiment of the present application further provides a non-volatile computer storage medium for real-time processing of Web application data on the front end, storing computer executable instructions, wherein the computer executable instructions are configured to: obtain real-time data pushed by the back end, determine the type of the real-time data, the types including high-precision numerical types and high-frequency numerical types; when the real-time data is a high-precision numerical type, accurately calculate the real-time data through a distributed computing model and a high-precision mathematical library to obtain a calculation result; store the calculation result and the real-time data in a front-end database, and update the rendering page according to the calculation result.

[0017] The embodiment of the present application provides a method, device and medium for real-time processing of Web application data at the front end, which adopts LRU cache strategy and pre-calculation technology, effectively avoids repeated calculations, reduces the system's computing load, and improves the system response speed; at the same time, it stores the intermediate results of high-frequency access and optimizes resource utilization efficiency. This optimization strategy not only ensures the efficient operation of the system, but also improves the user experience; through the integration of high-precision mathematical libraries, the system can accurately handle complex computing tasks in the fields of finance, scientific computing, etc., ensuring the accuracy and reliability of data; the design and implementation of the front-end real-time computing engine fully utilizes the advantages of multi-core CPUs, improves the processing speed of large-scale, complex high-precision computing tasks, and thus improves the overall performance and efficiency of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A flowchart of a method for real-time processing of Web application data by a front end provided in an embodiment of the present application;

[0020] Figure 2A schematic diagram of the internal structure of a device for real-time processing of Web application data at the front end provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0022] The embodiments of the present application provide a method, device and medium for real-time processing of Web application data by a front end, which solves the problem in the prior art that most Web application data relies on server-side processing, resulting in increased response delay and low efficiency.

[0023] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0024] Figure 1 A flowchart of a method for real-time processing of Web application data by a front end provided in an embodiment of the present application. Figure 1 As shown, a method for real-time processing of Web application data by a front end provided in an embodiment of the present application specifically comprises the following steps:

[0025] Step 10: Get the real-time data pushed by the backend and determine the type of the real-time data, which includes high-precision numerical type and high-frequency numerical type;

[0026] In this step, the high-precision numeric type can be understood as data containing a decimal point.

[0027] Step 20: When the real-time data is of high-precision numerical type, the real-time data is accurately calculated through a distributed computing model and a high-precision mathematical library to obtain a calculation result;

[0028] As an optional embodiment, real-time data is accurately calculated through a distributed computing model, and the calculation results are summarized, which may specifically include:

[0029] Step 201: Create multiple working threads to perform accurate calculations on real-time data;

[0030] In this step, multiple worker threads are created using Web Workers (Workers can be understood as threads that run in the background independently of the Web main thread), and large-scale and complex computing tasks are split into several subtasks and assigned to each Worker for execution.

[0031] Step 202: After one thread in the working thread completes the calculation, the current thread sends a message to the target thread;

[0032] In this step, a message passing mechanism is designed between the main thread and the Worker, such as using postMessage to send task data and parameters.

[0033] Step 203: Monitor the message received by the target thread, extract the result in the message and summarize it to obtain the calculation result.

[0034] In this step, listen to the onmessage event to receive the result returned by the Worker, define an appropriate task scheduling strategy, and ensure that tasks are fairly and efficiently distributed and executed among various Workers.

[0035] Step 30: Store the calculation results and real-time data in the front-end database, and update the rendering page according to the calculation results.

[0036] As another optional embodiment, updating the rendering page according to the calculation result may specifically include:

[0037] Step 301: dynamically loading the table data of the UI component based on the scrolling position of the window, and obtaining the table data currently located at the scrolling position;

[0038] In this step, you can use frameworks such as Vue.js, React, or Angular to declaratively define the binding relationship between UI (UserInterface) components and data models.

[0039] Step 302: The table data at the scrolling position is automatically updated and rendered according to the calculation result.

[0040] In this step, after the real-time calculation is completed, the corresponding state variables are updated. Due to the responsive nature of the framework, the interface will automatically re-render according to data changes, implementing a table component that dynamically loads data based on the window scroll position, and only loads and renders row data within the current viewport.

[0041] Furthermore, after the table data at the scrolling position is automatically updated and rendered according to the calculation result, the method may further include:

[0042] Step 303: monitor the scrolling table data and determine whether the table data reaches a critical point;

[0043] Step 304: When the critical point is reached, the paging API is called to trigger the loading of the table data of the next page;

[0044] Step 305: After the paging API returns the calculation result, the table data is automatically updated and rendered according to the calculation result.

[0045] In an embodiment of the present application, smart paging and virtual scrolling are combined, combined with responsive data binding and rendering, which can realize instant updating of table content when data changes, providing users with a smoother user experience. The application of smart paging and virtual scrolling technology effectively reduces memory consumption and improves the performance of the system when displaying large amounts of data. In actual applications, you can choose to use smart paging or virtual scrolling according to specific needs and scenarios. If the amount of data is not particularly large and the user needs to browse the content of different pages frequently, you can choose smart paging; if the amount of data is very large and the user is mainly concerned with the content of the currently visible part, you can choose virtual scrolling.

[0046] As another optional embodiment, before obtaining the real-time data pushed by the backend, the method may further include:

[0047] Step 20': extracting the real-time data and calculation results with a frequency higher than a preset threshold in the front-end database, and obtaining high-frequency data, high-frequency results and high-frequency calculation modes respectively;

[0048] In this step, you can identify the intermediate results or specific computing modes that may be needed in advance based on business logic and historical data analysis, use idle time to pre-compute, store the results in the cache, and synchronize them to the database.

[0049] Step 21 ′: storing the high-frequency data, high-frequency results and high-frequency calculation mode into a preset buffer area.

[0050] In this step, high-frequency data, high-frequency results, and high-frequency calculation modes are stored separately in the cache area, so that when the same data push is obtained, it is only necessary to search and calculate in the cache area.

[0051] Furthermore, after obtaining the real-time data pushed by the backend, the method may further include:

[0052] Step 22': When the real-time data is of a high-frequency numerical type, matching the high-frequency results in the buffer area;

[0053] Step 23': if no high-frequency result is matched, match the high-frequency calculation mode to perform calculation;

[0054] Step 24 ′: When the high-frequency calculation mode is not matched, the real-time data is calculated to obtain the calculation result, and the result is saved in the buffer area.

[0055] In this step, high-frequency data, high-frequency results, and high-frequency calculation modes are first matched in the cache area. There is no need to traverse all the data in the database, which reduces the system's computing load and improves the system response speed. The intermediate results of high-frequency access are stored to optimize resource utilization efficiency and effectively avoid repeated calculations. This optimization strategy not only ensures the efficient operation of the system, but also improves the user experience.

[0056] It is understandable that before obtaining the real-time data pushed by the backend, the method may also include:

[0057] Step 01: Establish a full-duplex communication connection between the backend and the frontend;

[0058] In this step, establish a WebSocket (a protocol for full-duplex communication on a single TCP connection) connection or use EventSource (event source) and Server-Sent Events (SSE, server-sent events) to establish persistent communication with the server and receive data updates pushed by the server in real time. If you use the Fetch API (a JavaScript interface is provided for initiating http requests, which is the JavaScript API that comes with the browser) with long-term polling, set a timer to periodically initiate requests to obtain the latest data, and initiate the next round of requests again after the response.

[0059] Step 02: Preset the database and cache area. The database is the indexedDB database and the cache area is the LRU cache area.

[0060] In this step, you can create an indexedDB database (a local database inside the browser) on the front end to persist data. Use JavaScript objects or Maps as LRU (Least Recently Used) cache structures. By defining a fixed-size cache area, when new data arrives, remove the longest-unused data and store the new calculation results in the cache.

[0061] Step 03: Introduce high-precision math libraries, which include decimal.js and big.js.

[0062] In this step, you can introduce the decimal.js or big.js library, create corresponding high-precision numeric types in the project, and ensure that all parts involving complex calculations use these types for operations. For functions involving precise calculations, replace them with high-precision calculation methods of the corresponding high-precision math library.

[0063] Step 04: Build a responsive framework on the front end, bind the UI components in the responsive framework to the database and cache area, and the UI components present data in the form of a table.

[0064] Preferably, after storing the calculation results and the real-time data in the front-end database and the first buffer area, the method may further include:

[0065] Step 40: Capture errors in the process of acquiring real-time data, calculating real-time data, and updating the rendered page;

[0066] Step 50: Repair the captured exception code;

[0067] Step 60: If the repair fails, restore to the state before the failure through the rollback mechanism, send an alarm and start monitoring.

[0068] In this step, add exception capture code blocks in data stream subscription, calculation, rendering and other links to ensure that any errors can be recorded and notified to developers or users in a timely manner; you can also design a retry mechanism, set a reasonable retry interval and try to reestablish the connection for disconnection caused by network instability; and for long connections such as WebSocket and SSE, listen for closing events and start the recovery process when the connection is interrupted. The perfect error handling and reliability assurance strategy ensures the stability of the system under abnormal conditions, ensures that errors in the data transmission process will not affect the operation of the overall system, and can automatically reconnect and synchronize, improving the reliability and stability of the system.

[0069] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a device for front-end real-time processing of Web application data, whose structure is as follows: Figure 2 shown.

[0070] Figure 2 A schematic diagram of the internal structure of a device for real-time processing of Web application data by a front-end provided in an embodiment of the present application. Figure 2 As shown, the device includes:

[0071] at least one processor 201;

[0072] and, a memory 202 communicatively connected to the at least one processor;

[0073] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0074] Get the real-time data pushed by the backend and determine the type of the real-time data, which includes high-precision numerical type and high-frequency numerical type. When the real-time data is of high-precision numerical type, perform precise calculations on the real-time data through a distributed computing model and a high-precision mathematical library to obtain calculation results. Store the calculation results and real-time data in the front-end database, and update the rendering page based on the calculation results.

[0075] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for front-end real-time processing of Web application data, storing computer executable instructions, wherein the computer executable instructions are configured to: obtain real-time data pushed by a back-end, determine the type of the real-time data, which includes a high-precision numerical type and a high-frequency numerical type; when the real-time data is a high-precision numerical type, accurately calculate the real-time data through a distributed computing model and a high-precision mathematical library to obtain a calculation result; store the calculation result and the real-time data in a front-end database, and update the rendering page according to the calculation result.

[0076] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0077] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

[0078] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0079] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0080] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0081] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0082] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0083] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0084] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0085] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0086] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for front-end real-time processing of Web application data, characterized in that: The method comprises: Acquire the real-time data pushed by the backend, and determine the type of the real-time data, which includes a high-precision numerical type and a high-frequency numerical type; When the real-time data is of high-precision numerical type, the real-time data is accurately calculated by using a distributed computing model and a high-precision mathematical library to obtain a calculation result; The calculation results and real-time data are stored in a front-end database, and the rendering page is updated according to the calculation results.

2. A method for front-end real-time processing of Web application data according to claim 1, characterized in that: Before acquiring the real-time data pushed by the backend, the method further includes: Extracting real-time data and calculation results with a frequency higher than a preset threshold in the front-end database to obtain high-frequency data, high-frequency results and high-frequency calculation modes respectively; The high-frequency data, high-frequency results and high-frequency calculation mode are stored in a preset buffer area.

3. A method for front-end real-time processing of Web application data according to claim 2, characterized in that: After acquiring the real-time data pushed by the backend, the method further includes: When the real-time data is of a high-frequency numerical type, matching the high-frequency results in the buffer area; If no high-frequency result is matched, the high-frequency calculation mode is matched to perform calculation; When the high-frequency calculation mode is not matched, the real-time data is calculated to obtain the calculation result, and the calculation result is saved in the buffer area.

4. A method for front-end real-time processing of Web application data according to claim 1, characterized in that: Before acquiring the real-time data pushed by the backend, the method further includes: Establishing a full-duplex communication connection between the back end and the front end; Preset a database and a cache area, the database is an indexedDB database, and the cache area is an LRU cache area; Introduce a high-precision math library, which includes a decimal.js library and a big.js library; A responsive framework is built on the front end, and the UI components, database and cache area in the responsive framework are bound. The UI components present data in the form of a table.

5. The method for real-time processing of Web application data by a front end according to claim 1, characterized in that: The real-time data is accurately calculated through a distributed computing model, and the calculation results are summarized, including: Creating multiple working threads to accurately calculate the real-time data; After one of the worker threads completes the calculation, the current thread sends a message to the target thread; The message received by the target thread is monitored, the results in the message are extracted and summarized to obtain the calculation result.

6. A method for front-end real-time processing of Web application data according to claim 4, characterized in that: Updating the rendering page according to the calculation result specifically includes: Based on the scrolling position of the window, dynamically load the table data of the UI component and obtain the table data currently located at the scrolling position; The table data at the scrolling position is automatically updated and rendered according to the calculation result.

7. A method for front-end real-time processing of Web application data according to claim 6, characterized in that: After the table data at the scrolling position is automatically updated and rendered according to the calculation result, the method further includes: Monitor the scrolling table data and determine whether the table data reaches a critical point; When the critical point is reached, the paging API is called to trigger the loading of the table data for the next page; After the paging API returns the calculation result, the table data is automatically updated and rendered according to the calculation result.

8. The method for real-time processing of Web application data by a front end according to claim 1, characterized in that: After storing the calculation results and real-time data in the front-end database and the first buffer area, the method further includes: Capture errors in the process of obtaining real-time data, calculating real-time data, and updating rendered pages; Repair the captured exception code; If the repair fails, the system will be restored to the state before the failure through the rollback mechanism, and an alarm will be sent and monitoring will begin.

9. A device for front-end real-time processing of Web application data, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Acquire the real-time data pushed by the backend, and determine the type of the real-time data, which includes a high-precision numerical type and a high-frequency numerical type; When the real-time data is of high-precision numerical type, the real-time data is accurately calculated by using a distributed computing model and a high-precision mathematical library to obtain a calculation result; The calculation results and real-time data are stored in a front-end database, and the rendering page is updated according to the calculation results.

10. A non-volatile computer storage medium for front-end real-time processing of Web application data, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Acquire the real-time data pushed by the backend, and determine the type of the real-time data, which includes a high-precision numerical type and a high-frequency numerical type; When the real-time data is of high-precision numerical type, the real-time data is accurately calculated by using a distributed computing model and a high-precision mathematical library to obtain a calculation result; The calculation results and real-time data are stored in a front-end database, and the rendering page is updated according to the calculation results.

Citation Information

Patent Citations

  • Mass data real-time monitoring method, system and device and storage medium

    CN111435350A

  • Data rendering for applications

    US11055113B1

  • Method, apparatus, and computer program product for managing retrieval of content for display by a browser

    US20180285337A1