Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are some alternatives to Cache Invalidation?
Home
Cache Technique
What are some alternatives to Cache Invalidation?
0
votes
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
What are some alternatives to Cache Invalidation?
cache-technology-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 23, 2023
by
GeorgeBell
There are three alternatives to cache invalidation.
The first is to
expire
your cached content quickly by reducing its time to live (TTL). However, short TTLs cause a higher load on the application because content must be fetched from it more often. Moreover, reduced TTL does not guarantee that clients will have fresh content, especially if the content changes very rapidly as a result of client interactions with the application.
The second alternative is to
validate the freshness
of cached content at every request. Again, this means more load on your application, even if you return early (for instance by using HEAD requests).
The last resort is
to not cache volatile content
at all. While this guarantees the user always sees changes without delay, it obviously increases your application load even more.
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: what is Cache Stampede?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology-questions-answers
0
votes
Q: What usually should be cached?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology-questions-answers
0
votes
Q: What is Cache Invalidation?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology
0
votes
Q: What are some popular alternatives to Jupyter Notebook?
asked
Nov 21, 2023
in
Jupyter
by
sharadyadav1986
jupyter
alternatives
0
votes
Q: What are different Cache Writing Strategies?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology
0
votes
Q: Which function is used to return hdfs files to ship to distributed cache.
asked
Dec 6, 2020
in
Cache Technique
by
rajeshsharma
#distributed-cache
0
votes
Q: For a cache look up to be a Hit, which of the following must be true?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-loop-up
#loopup-cache
#cache-lookup
0
votes
Q: Which of the following is used to determine if a piece of data in the cache needs to be written back to the cache?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-needs
#needs-cache
0
votes
Q: Which type of cache is recommended to store user preferences for an application with several 100s of concurrent users?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-store
#store-cache
0
votes
Q: While using a Write Back cache, which of the following policies needs to be abided?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#write-back-cache
#write-cache
#cache-write
#cache-write-back
...