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

feat: health check trustless gateways before first use #21

Open
SgtPooki opened this issue Mar 14, 2024 · 1 comment
Open

feat: health check trustless gateways before first use #21

SgtPooki opened this issue Mar 14, 2024 · 1 comment

Comments

@SgtPooki
Copy link
Member

try multiple gateways, and if available, set as trustless gateways for @helia/verified-fetch

@lidel
Copy link
Member

lidel commented Mar 14, 2024

Idea:

  • prewarm reliability weights for trustless gateways by requesting some well-known small CID which should return payload instantly, and allow us to identify offline and slow gateways
    • This allows us to include http://127.0.0.1:8080 (Kubo/IPFS Desktop) and http://127.0.0.1:48080 (Brave)
    • Caveat: be careful if using identity CID, as these are often returned from local virtual store and not trigger network IO.

@lidel lidel changed the title feat: try gateways before setting config for @helia/verified-fetch feat: health check trustless gateways before first use Mar 14, 2024
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

2 participants