Scheme for achieving consistency of cache and DB data in asynchronous mode
A caching and asynchronous technology, applied in structured data retrieval, electronic digital data processing, database distribution/replication, etc., can solve problems such as inconsistency of cached database data, and achieve the purpose of ensuring user experience, not losing high efficiency, and ensuring consistency. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] Such as Figure 1-5 , the present invention provides an asynchronous way to achieve the consistency of cache and DB data, including the following steps:
[0030] S1. Cache product information in caching middleware such as redis to reduce the number of requests to access the database, reduce the pressure on the database, and prevent the situation that the database connection is full due to excessive traffic;
[0031] S2. When the product information is modified, especially in the context of extremely frequent modifications, and the product is frequently accessed; at this time, in some extreme cases, there will be dirty data in the cache;
[0032] S3. Originally, the method of synchronously modifying the cache was used, but this method still caused dirty data to appear in the cache; therefore, an asynchronous method was used to modify the cache;
[0033] S4. The asynchronous method cannot guarantee that the message will not be lost, so the business DB is used to store th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com