Re:LiveBeats: Building a social music app with Phoenix LiveView
by mrkurt on Wednesday February 02, 2022 @01:09PM
(#30181416)
You can run LiveBeats on the smallest instances. You end up needing 2 small VMs and 2 10GB disks per region. So it costs about $6.80 per region to get started. ~$150/mo to run in all our regions with the small VMs. Most apps only need 3-6 regions to get really great performance.
The interesting thing about adding regions is that it also scales capacity horizontally. The way we route traffic means we can max out a region then spillover to the next one. And the way LiveBeats uses disks, each new region adds 10GB of song storage too.
Chris gets this stuff for free so he put way bigger CPUs and disks on the databases than they really need.
---Edit---
I did that wrong. It's ~$6.80 per region. Not ~$13.60 per region.
Re:LiveBeats: Building a social music app with Phoenix LiveView
by chrismccord on Wednesday February 02, 2022 @01:30PM
(#30181754)
LiveBeats is hotlinking https://fly.io/ui/images/<region>.svg and Kurt updated a few of the US region images to be more specific vs blanket flag. The browser on the right is chrome, with the cached old image, and left is safari with the new one :)
Also totally random question - how come the flag for the chrismccord user is different for the two users at 9:25 https://youtu.be/JrqBudJd2YM?t=565? Is that just something in your app, or is there something in Fly reporting at a different granularity? I'm not familiar with the flag in the left window so might be missing something obvious!