
StuntProgrammer
Media Storage and CDN with Phoenix and Elixir
In building lofi.limo, media storage and distribution naturally came up. I have songs, announcements, and background image loops which I want to store and distribute to listeners. Let’s take a look at how I’ve been able to do both without getting too fancy or spending too much money.
Most Liked

StuntProgrammer
It seems to be. Is it giving you trouble?

AntonRich
@StuntProgrammer thank you for mentioning Tarsnap - is a storage where you pay for what you use. I might be using it in the future.
I have a question about them.
There are no other fees — Tarsnap has no fixed costs or minimum monthly fees.
You pay for what you use, nothing more.
So if I upload a 1gb movie there, I will pay just for 1gb storage once without a monthly fee?
But I will also pay when downloading the file?

StuntProgrammer
There’s no /minimum/ monthly fee. There are charges for transfer in and out as well as for storage. In the scenario you describe, you’d pay for the upload, the download, and for storage as long as the data is in Tarsnap.
Transfer is billed by the byte (currently $0.00000000025/byte) and storage by the byte-month (currently $0.00000000025/byte-month).
So for your example, you’d pay $0.25 for the upload, $0.25 for the download, and $0.25 for each month the data is stored (supposing a GB is 1,000,000,000 bytes).
Popular Backend topics










Other popular topics










Latest in Backend
Latest (all)
Categories:
Popular Portals
- /elixir
- /rust
- /wasm
- /ruby
- /erlang
- /phoenix
- /keyboards
- /js
- /rails
- /python
- /security
- /go
- /swift
- /vim
- /clojure
- /java
- /haskell
- /emacs
- /svelte
- /onivim
- /typescript
- /crystal
- /c-plus-plus
- /tailwind
- /kotlin
- /gleam
- /react
- /flutter
- /elm
- /ocaml
- /vscode
- /opensuse
- /ash
- /centos
- /php
- /deepseek
- /scala
- /zig
- /html
- /debian
- /nixos
- /lisp
- /agda
- /sublime-text
- /textmate
- /react-native
- /kubuntu
- /arch-linux
- /ubuntu
- /revery
- /manjaro
- /spring
- /django
- /diversity
- /nodejs
- /lua
- /julia
- /c
- /slackware
- /neovim