104
How does Lemmy/Mastodon/Fediverse store videos and images?
(programming.dev)
A loosely moderated place to ask open-ended questions
Search asklemmy ๐
If your post meets the following criteria, it's welcome here!
Looking for support?
Looking for a community?
~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~
I agree. It's also a tremendous waste of resources. I'm all for redundancy (like CDNs), but this seems incredibly poorly thought out. If Lemmy (as a whole) every scales to the size of other social media, the space requirements will start to become unreasonable.
Why wouldn't something like symlinks be implemented? Not saying specifically use symlinks, but there has to be a similar, better way.
The obvious way would be to just not cache content locally and always link to the source instance. While this would concentrate the strain immensely, it would also greatly decrease the storage space used by all other instances.
There might also be other viable alternatives such as using a CDN and having it selectively cache content which is requested often etc.
~~As of now, Lemmy does not support either, though. ~~
Edit: I want to clarify that I was partially wrong - Lemmy only locally caches content which is hosted on outside sites. It does (should?) not cache content that was directly uploaded to a Lemmy instance and just embeds the source media.