Distributed multi-level caching method and device
The invention discloses a distributed multi-level cache method and device, and the method comprises the steps: obtaining an event change message sent by a preset management platform after cache item information in the preset management platform is modified; and broadcasting information for changing...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a distributed multi-level cache method and device, and the method comprises the steps: obtaining an event change message sent by a preset management platform after cache item information in the preset management platform is modified; and broadcasting information for changing the cache item information to a service instance, so that the corresponding service instance pulls latest cache data from a distributed cache after receiving a broadcast message, and updates the latest cache data to a process cache. Through an event notification mechanism, when data changes, a management end notifies distributed services to pull caches and complete non-perceptual updating, the caches cannot be expired according to time, only the caches in the process need to be accessed when an interface requests to access, the problems of cache penetration and service jitter during cache updating are solved, and the service quality is improved. And meanwhile, the timeliness problem of cache updating is also solved |
---|