-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Bug] Modify caching strategy to better utilize cache space and distribution of resources. #274
Comments
The primary problem is a given server does not know, and has no way of knowing, whether a record has been updated without querying the DHT. Caching ignores this possibility and increases the chance of failure cases when an update has been published to a different DHT node. To mitigate this, we have some options:
Let me know what you think. |
Third option sounds best, with a pref for cache slots given to the DIDs that have the highest frecency of hits. |
Frequency of hits does not change the fact that the DID can be updated on another node. I think supporting 3, then 2, then 1 will give you the behavior you're looking for. |
Describe the bug
The current caching strategy effectively renders caching unavailable to the vast majority of DIDs, as it doesn't seem to account for frecency (frequency/recency) of access, activity, or other metrics that substantiate why a DID should be cached over another.
To Reproduce:
Expected behavior:
Step 1 should be the common case.
Supporting Material
I built an app and this the behavior.
Environment (please complete the following information):
Additional context
Not really, just want some caching.
The text was updated successfully, but these errors were encountered: