Multi-Host Hot Standby Caching for Fast User State Restoration
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing dual-host hot standby methods experience significant delays in restoring user information, leading to potential service interruptions and failure to meet fault protection requirements.
Innovation Solution
Implement a multi-host hot standby system with load balancing and priority-based user information distribution, utilizing local and remote cache modules to enable quick restoration by standby devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If user information is saved in an external database shared with the standby device, then data consistency is maintained, but restoration delay increases
Solution Approach 1:
The patent segments user information into two types: first user information (basic profile data) stored in the external database, and second user information (session and state data) stored in local memory. This segmentation allows critical restoration data to be kept locally for immediate access while maintaining data consistency through selective synchronization, thereby reducing restoration delay while preserving reliability.
Solution Approach 2:
The standby device performs preliminary actions by pre-loading and caching user information from the external database into its local memory before actual restoration is needed. This advance preparation ensures that when restoration is required, the standby device can quickly access previously cached data rather than retrieving everything from the external database at the moment of failure, thus reducing restoration delay while maintaining data consistency.
2Device complexity
If a single standby device is used, then system complexity is reduced, but service continuity reliability decreases
Solution Approach 1:
The patent implements a multi-standby device architecture where each standby device can independently provide backup services. The standby devices are designed with universal functionality to handle various user information restoration scenarios, allowing any standby device to take over service when the active device fails. This multi-functionality design enhances service continuity reliability while maintaining manageable system complexity through standardized interfaces and protocols.
Data Source
Figure 1~2
Figure 3A~3B
Figure 4A
AI summary
Embodiments of the present invention provide a hot standby method, apparatus, and system. The method includes: saving, by an active device, first user information of the active device into a local cache module of the active device; and further sending, by the active device, the first user information to a remote cache module of a first standby device according to preset correlation information, so that when detecting that the active device becomes faulty, the first standby device obtains the first user information from the remote cache module of the first standby device and restores the first user information. It may be learned that in the embodiments of the present invention, a multi-host hot standby function may be implemented, and user information of a faulty device may be quickly restored, thereby improving restoration efficiency.