Dynamic Polling Duration for Real-Time Configuration Push
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing real-time configuration push systems using short HTTP connections for polling suffer from inefficiencies due to short polling durations, leading to suboptimal real-time performance in updating configuration information.
Innovation Solution
A method that establishes a short connection with a client, determines configuration consistency, and extends the polling duration by pushing current configuration information when inconsistencies are detected, ensuring timely updates without unnecessary resource waste.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If the client periodically performs polling on the server using short HTTP connections, then the system can maintain simple connection management, but the polling duration is short and wait time is long, causing real-time performance of configuration pushing to deteriorate
Solution Approach 1:
The system uses periodic polling actions where the client initiates short connections at regular intervals to check for configuration updates. The server responds to these periodic requests, maintaining a balance between timely configuration updates and manageable connection frequency.
Solution Approach 2:
The server implements a feedback mechanism by comparing the configuration items received in polling requests with locally stored configuration items. When inconsistencies are detected, the server pushes updated configuration information back to the client, ensuring real-time synchronization through continuous feedback loops.
2Productivity
If the polling duration is extended to improve real-time performance, then configuration updates can be detected more promptly, but resource usage increases due to longer connection maintenance
Solution Approach 1:
The system dynamically adjusts connection duration based on configuration change detection. When changes are detected, connections are maintained longer to push updates; when no changes occur, connections are kept short to conserve resources. This dynamic adaptation optimizes both real-time performance and resource efficiency.
Solution Approach 2:
The system changes the polling duration parameter dynamically based on system state. Polling duration is extended when configuration changes are detected and reduced when the system is stable, allowing flexible optimization of real-time performance versus resource consumption through parameter adjustment.
Data Source
Figure 1
Figure 2
Figure 3~4
AI summary
The present invention provides a configuration information push method and device. The method includes: obtaining a polling request sent by a client; determining whether configuration information of configuration items in the polling request is consistent with current configuration information of corresponding local configuration items; if yes, keeping a short connection to the client within preset polling duration; and pushing, if, in the duration of the short connection, current configuration information of at least one target configuration item in the local configuration items is inconsistent with configuration information of a corresponding configuration item in the polling request, the current configuration information of the target configuration item to the client, so that the client updates a configuration of the target configuration item to the current configuration information. In the present invention, when configuration information of a configuration item is not updated, a short connection needs to be kept within preset polling duration, so that the polling duration is correspondingly extended, and a change in the configuration information of the configuration item can be sensed in time, thereby ensuring real-time performance of configuration information pushing.