Replying to Avatar fiatjaf

https://satellite.earth/cdn is a seriously good thing.

how does it work?

Reply to this note

Please Login to reply.

Discussion

that doesn’t answer my question.

data storage and transfer is expensive, especially in the cloud. I’m curious how the service works on a technical level.

Check their site. It's all explained.

I did check their site and was unable to find any technical details. the closest thing I could find is the bulleted list you screenshotted.

looks like it just makes a PUT request to $API_BASE_URL. not really what I’m after but thanks anyway.

The backend is Cloudflare R2, which does not charge for the data transfer, only storage. Satellite CDN is essentially a wrapper for R2 that handles auth with nostr, computes NIP-94 params (e.g. torrent sha256 and torrent infohash) for each file uploaded, and indexes the files that have been uploaded.

It's perfectly scalable because I've just replicated R2's pricing structure.

awesome! I appreciate the transparency and that’s a clever solution wrt data transfer!

glad to see some new models for data storage in nostr.