‹ BackHN Continuity

Thread

S3 Is the Future, S3 Is the Past

79 points · 120 comments · tkhattra

  1. elendilm · · focus · HN ↗
    I find Cloudflare R2 to be much cheaper as there are zero egress fees irrespective of data size. One is only billed on the count of requests with 10 million free download requests per month (check pricing for precise info).

    If you do a clever bit of caching work in your app like we have with our apps Slyp and SlypBusiness, you could even make it insanely cheap.

    We have a file manager that is ultimately responsible for images, files, videos and whatnot. It loads the images/files from the downloaded local cache when requested by a feature in the app.

    A standard feature uploads and downloads using signed urls obtained from the backend service. The manager increments the file's version in the backend on each successful upload. For download, the manager compares the version against the locally cached version. If there is an update, the new file is downloaded in the background and overwrites the local cache and notifies all features using the file inside the app.

    1. scrubs · · focus · HN ↗
      I forgot about R2. And I just got a problem perfect for it. Thanks for the reminder. HN helpful yet again!
      1. elendilm · · focus · HN ↗
        Glad I was helpful.

        Any technology that lowers latency, memory, or cost must be appreciated and recommended.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.