Skip to content

Prefetch before expiration #75

Open
@nhomble

Description

@nhomble

_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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions