Cache system and method supporting real-time change notification and real-time data synchronization
A real-time synchronization and data synchronization technology, applied in transmission systems, database indexing, structured data retrieval, etc., can solve problems such as the inability to use the cache method and the lack of a cache method, and achieve the effect of reducing network overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0036] The remote database used in this embodiment is an etcd key-value database, and the implementation carrier of this embodiment is an application program. The overall structural diagram of the memory cache in this embodiment is shown in figure 2 , therefore, this embodiment specifically includes the following steps:
[0037] Step S1: When the data synchronizer is started, perform a list query on the directory (such as ` / newben / `) that needs to be cached in etcd, and store the list results in the memory map according to the corresponding key value in turn.
[0038] Step S2: Use the reversion in the list data to start the watch operation to etcd to establish a grpc long connection for data change monitoring. list+watch can create a full cache in memory. When a data change is monitored, the change will be updated to the memory cache. In order to prevent watch interruption and data loss, the data synchronizer will execute step S1 and step S2 every 10 minutes to resynchroniz...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

