Data caching method and system based on high availability

The invention discloses a data caching method and system based on high availability, and belongs to the field of distributed service application. The method comprises the following specific steps: S1, carrying out centralized storage on data cached through Redis; s2, setting a Redis architecture as...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: CHEN ZHAOLIANG, DING FUXIANG, ZHAO SHAOXIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a data caching method and system based on high availability, and belongs to the field of distributed service application. The method comprises the following specific steps: S1, carrying out centralized storage on data cached through Redis; s2, setting a Redis architecture as a one-master multi-slave sentinel mode, so that data on the cache nodes are synchronized and shared with other cache nodes; the method provided by the invention has a distributed cache capability, and avoids the problems that the cache needs to be reconstructed even if a new cache node is switched due to the fact that the cache content of each cache server is independent, and the performance consumption of the back-end server is increased when data is cached from the back-end server again. 本发明公开了一种基于高可用的缓存数据方法及系统,属于分布式业务应用领域;所述的方法具体步骤如下:S1对通过Redis缓存的数据进行集中存储;S2将Redis架构设置为一主多从加哨兵模式,使缓存节点上的数据其他缓存节点同步、分享;本发明方法具备分布式缓存的能力,避免因为每个缓存服务器的缓存内容都是独立的,即使切换到新的缓存节点也需要重建缓存,重新从后端服务器缓存数据时,增加后端服务器的性能消耗等问题。