this post was submitted on 04 Jun 2024
13 points (93.3% liked)

kbin.earth meta

0 readers
9 users here now

A magazine dedicated to the kbin.earth Mbin instance. Official announcements and maintenance updates are made here, but also feel free to ask questions or request support.

If you'd like, you can also join the kbin.earth Matrix chat for real-time discussion of support, moderation decisions, or just general chatting.

founded 10 months ago
 

As explained in the last post, I was trying to get s3 (R2) set up with kbin.earth, and now it's complete. Now storage costs should be significantly lower (with more capacity) and maybe images will load even faster now.

Also, think of this as an experiment; if it doesn't work out, I'll switch it back to file storage.

top 5 comments
sorted by: hot top controversial new old
[–] zorro 1 points 5 months ago (1 children)

Are you using any of the image optimization features as well?

[–] [email protected] 3 points 5 months ago* (last edited 5 months ago) (1 children)

If you mean Cloudflare Images, then no. I thought about using it, but since Mbin stores the sha hash of the images, I didn't want Cloudflare to serve an optimized image and then Mbin (or an Mbin app) check the hash and see it didn't match. Additionally, I believe Mbin does some sort of optimization anyway (there's a "cache" directory that's likely the optimized and resized versions of the original images). Unfortunately, this "cache" isn't used with the Mbin API (and, therefore, any external client). IMO, the best place to optimize the image is when it's first federated or uploaded anyway.

From what I know, cloudflare images also costs more than just serving the existing image through R2.

[–] zorro 1 points 5 months ago* (last edited 5 months ago) (1 children)

Cool. Just curious. ~~How much are they charging for r2 if you don't mind me asking?~~

Edit: nvm I can just look at the rates published online :)

[–] [email protected] 2 points 5 months ago

There's a calculator here if you'd like to try a certain setup (amount of storage & operations).

[–] [email protected] 1 points 5 months ago