Cache Refresh Indicator for Off-Peak Data Freshness
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Caching data in computer systems leads to resource usage spikes during peak times due to stale data refresh, which is costly and complicated to manage, especially for daily users accessing systems at the same time.
Innovation Solution
Implement a single refresh indicator for cached data to proactively refresh during non-peak times, using a method that approximates daily user access patterns without requiring complex tracking systems.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If cache refresh happens on demand when users first access the system, then data freshness is maintained, but resource usage spikes during peak morning hours
Solution Approach 1:
The system performs preliminary cache refresh actions during non-peak hours (evenings/weekends) before the peak morning usage period. By setting the refresh indicator to true during off-peak times and executing the refresh then, the system proactively ensures data is fresh when users log in in the morning, avoiding the resource spike problem while maintaining data freshness.
2Reliability
If automatic refresh is implemented to prevent stale data, then data freshness is improved, but the system becomes expensive and complicated to manage
Solution Approach 1:
The invention extracts only the essential element needed for automatic refresh - a single refresh indicator bit stored with the cache data. This simple binary flag (true/false) is all that is required to trigger the refresh mechanism, eliminating the need for complex user activity tracking systems, counters that reset monthly, or elaborate rules while still achieving automatic data freshness.
3Productivity
If tracking system usage to determine active users is implemented, then proactive refresh can be targeted, but the implementation becomes expensive and complicated
Solution Approach 1:
Instead of implementing expensive, complex, long-term user activity tracking systems, the invention uses a simple, disposable refresh indicator that is set to true when data is accessed and then cleared. This simple true/false flag is sufficient to identify users who need refreshing, eliminating the need for sophisticated tracking infrastructure while achieving the same refresh efficiency.
Data Source
AI summary
The present disclosure relates generally to computer systems and, more particularly, to a cache refresh system and related processes and methods of use. The method of refreshing data in cache memory includes: setting, by a computer system, a refresh indicator to “true”; refreshing data in the cache memory, by the computer system, upon a determination that the refresh indicator is set to “true”; and setting, by the computer system, the refresh indicator to “false” after the refreshing of the cache memory.


