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

Cost optimization w3link reads #88

Open
1 of 9 tasks
vasco-santos opened this issue Oct 10, 2022 · 0 comments
Open
1 of 9 tasks

Cost optimization w3link reads #88

vasco-santos opened this issue Oct 10, 2022 · 0 comments

Comments

@vasco-santos
Copy link
Contributor

vasco-santos commented Oct 10, 2022

Motivation

Lower pricing of read costs through IPFS gateways provided (w3link + nftstorage.link). With the proposed plan, not only we target reducing costs but also get faster reads 🚀

MVP Plan 🗺️

The items below can be tackled somewhat in parallel, but we order from what we can likely land sooner to later. We also include the blockers for each item, as well as what each item unlocks from a product, performance, and cost perspective.

  1. ✅ Short-term optimization of gateways being raced by relying on a tiered logic
  • Tier 1: ipfs.io + Tier 2: CF + Pinata
  • We might be able to remove using certain gateways altogether (to revisit this optimization as we finish things further down this list)
  1. 🚧 Enable CF Cache Reserve
  • Exploring using Cache Reserve to cache content on request so after the first request, we have a HTTP cached copy of the content. The cost structure of Cache Reserve is more favorable for our use case (data is often asked for repeatedly, and we move from paying per GB to per request)
  • Blockers:
    • Getting access to CF Cache Reserve offering in both gateway domains
    • Logging of double hash of the content to enable purging
    • Get script tool that enables quick cache purging
  1. 🚧 Read from R2 content stored with web3.storage platform
  • Blockers:
    • api.web3.storage CAR files written to R2
    • api.nft.storage CAR files written to R2
    • w3up CAR files copied to R2 - attach pipeline running (needs CF Queue access)
    • add dagula-gateway to the gateways race
    • freeway support + integration with edge gateway
    • update clients to return given URLs
  1. fast-ptp API

Post MVP

After MVP is in place, we unblock a set of other things we can decide on:

  • Sunset superhot?
  • Reimagine reads rate limits
  • Programmable CF Cache Reserve with pattern optimisation using Cache control headers
@vasco-santos vasco-santos self-assigned this Oct 10, 2022
@vasco-santos vasco-santos changed the title Cost bound w3link reads Cost optimization w3link reads Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant