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

api: implement redis cache lookups for dns when configured #261

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tychoish
Copy link
Contributor

This is still a draft but there are a couple of questions in TODOs, and I wanted to just validate that I put the logic in a reasonable way before I cycle back to this later in the week.

@tychoish tychoish marked this pull request as draft January 28, 2025 23:38

ip = net.ParseIP(res)

// TODO: should we add this to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you test how fast is the Redis request, if there's like 1000 keys? If we don't store in cache, it's probably easier to reason about, but is it worth the extra time? Every request to sandbox will do DNS request.

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

Successfully merging this pull request may close these issues.

2 participants