Skip to content
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

Specify eviction priority #120

Open
evanstade opened this issue Dec 20, 2023 · 0 comments
Open

Specify eviction priority #120

evanstade opened this issue Dec 20, 2023 · 0 comments

Comments

@evanstade
Copy link
Collaborator

evanstade commented Dec 20, 2023

Currently, buckets can be marked as persistent or not, which affects eviction, but that's a binary and it may not be respected.
Buckets can have an expiration date, but that's also a binary state (either the date is in the future or the past).
Durability is actually about flushing data to disk, and not related to whether a bucket survives eviction passes. (also this is not currently part of the spec as it was culled from the MVP)

There's a gap here: sites should be able to specify an eviction priority for their data, e.g. so that their own log data is evicted before their own pinned documents, even if log data is more recently used[1] than pinned documents.

[1] this example assumes the user agent's internal eviction routine uses LRU as a heuristic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant