Browser-Based Polling Service for Web Application Job Monitoring
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Single page web applications face challenges in monitoring and managing HTTP requests between clients and servers, particularly in ensuring data completeness and error handling, which complicates their development and usage, and traditional server-based polling solutions require a persistent channel.
Innovation Solution
A browser-based polling system that uses a reusable library to queue and monitor HTTP requests, allowing real-time updates and error handling without relying on server fetches, enabling multi-user support and flexible configuration across web application pages.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If server-based polling is used to monitor HTTP requests, then data completeness can be ensured, but a persistent channel between server and client is required which increases system complexity
Solution Approach 1:
Instead of the server polling the client for status updates, the invention inverts the approach by having the client browser perform the polling directly against the server. The browser-based polling service independently monitors HTTP request states without requiring a persistent server-client channel, thus maintaining data completeness while reducing system complexity.
Solution Approach 2:
The client browser is empowered to perform its own polling operations directly against the server using available HTTP methods. The browser-based service autonomously monitors request states, manages queues, and updates the application without requiring continuous server-initiated communication or persistent channels.
2Productivity
If traditional server-based polling is implemented, then HTTP request monitoring is possible, but it complicates single page web application development
Solution Approach 1:
The invention introduces a browser-based polling service as an intermediary layer between the single page web application and the server. This service handles all polling operations, request queuing, and state monitoring independently, allowing the main application to remain simple while still achieving comprehensive HTTP request monitoring capability.
Solution Approach 2:
The polling functionality is segmented into a separate browser-based service that operates independently from the main web application logic. This segmentation allows the core application to focus on business logic while the polling service handles monitoring tasks, reducing development complexity and improving maintainability.
3Speed
If a persistent channel is maintained for polling, then real-time data can be exchanged, but connection management becomes more difficult
Solution Approach 1:
The invention uses periodic polling actions instead of maintaining a persistent channel. The browser-based service periodically sends HTTP requests to check the state of jobs or data, achieving real-time data exchange through repeated discrete actions rather than continuous connection, thus simplifying connection management.
Data Source
AI summary
A system, method, and computer-readable medium are disclosed for browser based polling of jobs used to build a web page of a web application. A web browser builds the web page of the web application and connects with one or more web services for jobs used to build the web page of the web application. A reusable service from a library is downloaded and is used at the web browser to poll the jobs as they are received from the web services. Polling the jobs is performed until download is complete. The web page application is updated when the download is complete.


