-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade the cache policy from TinyLFU to W-TinyLFU #249
Comments
This was referenced Jan 27, 2024
I started to implement the Window-TinyLFU policy.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, Moka cache uses TinyLFU as the admission/eviction policies (with a small buffer in front of the LFU filter). While it works well for many workloads like database, search, and analytics, it will not work well for recency-biased workloads, like job queues and event streams.
To provide better hit rate for such workloads, do the followings:
For more details, see the "Eviction Policy" chapter of an article about Java Caffeine cache:
http://highscalability.com/blog/2019/2/25/design-of-a-modern-cachepart-deux.html
The text was updated successfully, but these errors were encountered: