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

Excessive IP Data Fetching #229

Open
ansermino opened this issue Oct 28, 2022 · 1 comment
Open

Excessive IP Data Fetching #229

ansermino opened this issue Oct 28, 2022 · 1 comment

Comments

@ansermino
Copy link
Member

Expected Behavior

Fetching IP information should happen only when needed. Specifically it should occur when a new peer is found that has not been seen before. This could also be optimized further so that it's only fetched when a new IP address is seen.

Current Behavior

Upon restarting the API we are seeing ~45,000 requests for IP data. It seems that for every peer we are re-fetching the IP data unnecessarily.

Possible Solution

  • Fetch IP data for peers we have not seen before
  • (Optionally) Fetch iP data for IPs we have not seen before, perhaps by adding a separate db collection for IP data.
@ansermino
Copy link
Member Author

We have now exceeded 100,00 requests today. This is definitely an issue that needs to be investigated and addressed. I would recommend it be prioritized to ensure stability of the system in production.

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