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

Prefetch before expiration #75

Open
nhomble opened this issue Dec 28, 2022 · 0 comments
Open

Prefetch before expiration #75

nhomble opened this issue Dec 28, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nhomble
Copy link

nhomble commented Dec 28, 2022

_tick seems to do the cache clean up based on the ttl on first set.

After deletion, the dns query doesn't get refreshed until the next query invocation. This means that http clients will still occasionally pay the cost of a dns lookup on their hot path. For comparison, coredns does this.

Would it make sense for this library to support a refresh mechanism prior to query expiration?

@szmarczak szmarczak added enhancement New feature or request help wanted Extra attention is needed labels Dec 31, 2022
@szmarczak szmarczak changed the title refresh before expunge Prefetch before expiration Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants