Re:Run Ordinary Rails Apps Globally (2021)
by robgough on Wednesday January 26, 2022 @06:31AM
(#30084263)
I'm really interested in fly.io after their Postgres post the other day, but I've not seen anywhere what their recommended solution is for ActiveStorage – is it still writing to S3 (or equivalent), or would it be somehow using their volumes? Are there any published examples (blog posts etc)?
[ Parent
| on HN ]
Re:Run Ordinary Rails Apps Globally (2021)
by remorses on Wednesday January 26, 2022 @06:56AM
(#30084454)
Using volumes as some sort of s3 would require you to basically build s3 from scratch, you would still need to create an auth system, a server to handle uploads, a way to manage uploaded content maintaining their content type somehow (maybe using another db), a static server, .etc
Re:Run Ordinary Rails Apps Globally (2021)
by klohto on Wednesday January 26, 2022 @07:32AM
(#30084721)
Nobody's stopping you from running MinIO on top.
Re:Run Ordinary Rails Apps Globally (2021)
by klohto on Wednesday January 26, 2022 @07:36AM
(#30084752)
ActiveStorage has a local disk support, right?
If you do need an S3 compatible storage on edge, you could deploy MinIO[0]
Re:Run Ordinary Rails Apps Globally (2021)
by mrkurt on Wednesday January 26, 2022 @09:32AM
(#30085828)
S3 or the equivalent is best, yes.
Re:Run Ordinary Rails Apps Globally (2021)
by acejam on Wednesday January 26, 2022 @04:09PM
(#30091893)
Check out Filebase [0]. It's powered by Web3 technologies including decentralized and distributed storage networks, effectively creating one giant "global" S3 region. You could almost think of it as the storage-equivalent to Fly.io. It also works with ActiveStorage out of the box since Filebase has an S3 compatible API.