A method for semi-synchronous caching data
By optimizing the Redis master-slave replication process, adopting an asynchronous ack mechanism and a semi-synchronous downgrade strategy, the latency and consistency problems in cached data synchronization are solved, data reliability and throughput performance are improved, and distributed cache systems such as e-commerce systems and social applications are suitable.
Patent Information
- Application Number
- CN202311720255.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-14
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2043-12-14
AI Technical Summary
The existing cached data synchronization methods have data latency, data consistency problems and data loss risks during master-slave replication, especially in high real-time and low latency application scenarios.
The asynchronous ack mechanism is used to optimize the Redis master-slave replication process. Through the incremental command semi-synchronous replication mechanism, combined with the customized semi-synchronous downgrade strategy, it will automatically downgrade to asynchronous replication when the network fluctuates, and restore it to semi-synchronous replication when the network is restored. The distributed cache proxy layer service and AOF file management synchronization process of write operation commands is used.
Improve data reliability under single point of failure, reduce data latency, ensure data consistency, and maintain throughput performance when network fluctuations, providing real-time monitoring and status judgment friendliness.