Terminal Push Notification Resource Management via Dynamic Connection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing information pushing technologies, such as long connection and long polling, lead to idle TCP resource occupation by terminals when no push information is available, reducing the utilization ratio of limited TCP resources.
Innovation Solution
A method where a terminal listens for notification messages from a server, establishes a connection upon receiving the message, receives push information, and disconnects immediately or after a preset time, using UDP or TCP protocols to optimize resource usage by reestablishing connections only when necessary.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the terminal maintains a long connection with the server to ensure timely information pushing, then the information delivery timeliness is improved, but the TCP resource occupation time increases and resource utilization ratio deteriorates
Solution Approach 1:
The terminal periodically checks for push information instead of maintaining a continuous long connection. The connection is established only when needed (when push information is available), and disconnected when not needed, converting continuous resource occupation into periodic resource usage.
Solution Approach 2:
The connection state transitions from static (always connected in long connection mode) to dynamic (connected only when push information is available). The terminal can switch between connected and disconnected states based on whether push information needs to be received, optimizing resource utilization while ensuring timely delivery when needed.
2Reliability
If the terminal uses long polling to check for push information, then the information pushing timeliness is improved, but the TCP connection remains occupied during idle periods reducing resource utilization
Solution Approach 1:
The patent extracts the connection maintenance requirement from the information pushing mechanism. Instead of maintaining a persistent connection for both connection management and information delivery, the system separates these functions: the terminal only establishes connections when push information is actually available, eliminating idle connection occupation while preserving timely delivery capability.
Solution Approach 2:
Instead of continuous polling that keeps connections open during idle periods, the system uses event-driven periodic connection establishment. The terminal connects only when the server indicates push information is available, and disconnects afterward, converting continuous resource occupation into discrete periodic usage that improves overall TCP resource utilization.
Data Source
AI summary
The disclosure discloses an information receiving method, applied for a terminal to receive information pushed by a server, the method including: the terminal listening to a notification message transmitted from the server; the terminal establishing a connection with the server based upon the notification message listened; and the terminal receiving information transmitted from the server over the connection, and upon reception of the information transmitted from the server, the terminal disconnecting the connection immediately or after a preset period of time. The disclosure further discloses a terminal and a storage medium.


