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: initial implementation #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vasco-santos
Copy link
Member

This PR adds initial implementation of warm cache lambda. This builds on top of work from nftstorage/assemble-cars-lambda#2 to trigger on complete CARs written and ask nftstorage.link to cache a CID if within the content size we want to cache.

For now I am only asking for 100MB, but it is configured via Env var to what we want. We can see from https://protocollabs.grafana.net/d/DZc_rTank/nftstorage-link-stats-production?orgId=1&from=now-2d&to=now that ~90% of requested content is within this size.

As follow up of this PR, we should use a JWT Token to request cache to be warmed. It is also pending nftstorage/nftstorage.link#22

Closes nftstorage/nftstorage.link#21

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.

Gateway warm cache aws lambda function
1 participant