‹ 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. AznHisoka · · focus · HN ↗
      Is there a catch? So you can host a 1TB file and if 9,999,999 people download it you pay $0?
      1. Dylan16807 · · focus · HN ↗
        There's no catch. They don't care about the bandwidth. If 20 million people make a single request each then you'll pay $3.60 to cover the requests.

        And you're going to have to pay $15 of storage costs for your terabyte.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.