Device and method for refreshing local cache of distributed system

The invention provides a device and a method for refreshing a local cache of a distributed system, which can be used in the field of distributed technologies, the device comprises a monitoring program and at least one micro-service, one micro-service is deployed in each distributed system, and each...

Full description

Saved in:
Bibliographic Details
Main Authors LIAO MINGJI, ZHANG XUELIANG, WANG CHENFEI, WU WEI, SHI YI
Format Patent
LanguageChinese
English
Published 28.09.2021
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention provides a device and a method for refreshing a local cache of a distributed system, which can be used in the field of distributed technologies, the device comprises a monitoring program and at least one micro-service, one micro-service is deployed in each distributed system, and each micro-service subscribes to a cache data change message; the monitoring program is used for issuing a cache data change message to the Kafka message queue when the cache data in the local cache of each distributed system changes; the micro-service is used for acquiring the cache data change message through the Kafka message queue, judging whether the cache data in the cache data change message is consistent with the cache data in the cache record of the micro-service or not, and if not, according to the cache data in the cache data change message, updating the local cache of the distributed system where the micro-service is located and the cache record of the micro-service. According to the method, the local cache
Bibliography:Application Number: CN202110780891