Alternative to S3

We all agree we want to move away from Amazon S3 to store images and backups.
The next step is to decide what provider will we use instead? I see a few providers implement the Amazon S3 APi, so we could make our code generic and use one of these:

@Rachel pointed out some alternatives in slack:
Indie’s hoster s3 https://indie.host/en/
Scaleway’s s3 : https://www.scaleway.com/en/object-storage/
They are EU centered. Scaleway is the cheapest (it’s part of the Iliad company which is the same parent company as Free a big telecom/internet company in France).

This is related to this thread related to servers:

What do you think?

I did a super quick proof of concept on another project using Rails ActiveStorage and Digital Ocean Spaces (which is mentioned in the Wikipedia article) and it was, as advertised, fully compatible with the S3 API. Very easy to set it all up.

They look a bit more expensive than Scaleway though ($0.02/GB compared to Scaleway’s €0.01/GB) and are US-based.

None of the mentioned alternatives seem to be carbon neutral.

Just an idea: we don’t have to use the same service for images and backups.

There are privacy concerns around Amazon (and all providers residing in the US and to an extend in the Five Eyes). That’s an issue with our database backups but not with our images. Backups could also be encrypted to combat this concern. That would be a good idea anyway.

Green hosting is the other point. Backups are quite flexible. The fog gem supports many providers. But we can also just get a hydro-powered VPS and store the backups there via SSH. It will be more expensive though.

Similarly, we could find other solutions for images. We can store them locally but serve them through a cookie-less subdomain, for example. Paperclip is now deprecated and has been replaced by ActiveStorage. I don’t know which services are supported but I reckon that it wouldn’t be difficult to implement our own if needed. But Google Cloud is already supported and a lot greener than AWS.

1 Like