The Fediverse Desperately Needs Sustainable File Hosting (evergreenfiles.com)
from sosodev@lemmy.world to fediverse@lemmy.world on 05 Nov 2024 21:58
https://lemmy.world/post/21674747

Disclaimer: I wrote this article and made this website.

There was some talk of this issue in the recent fediverse inefficiencies thread. I’m hopeful that in the future we’ll have a decentralized solution for file hosting but for now I deeply believe that users should pay for their own file hosting.

#fediverse

threaded - newest

poVoq@slrpnk.net on 05 Nov 2024 22:11 next collapse

Have you considered providing something like this: jortage.com and maybe contribute to their efforts to develop a specific API for that? Source code is here: github.com/jortage

sosodev@lemmy.world on 05 Nov 2024 22:21 collapse

Jortage is a really interesting approach. It definitely helps reduce the impact of the file hosting problem but it doesn’t fully address the underlying cost issue. The cost of storing files grows every month indefinitely while donations typically don’t.

I would like to see a file hosting pool come to lemmy though. So I will look into it. :)

poVoq@slrpnk.net on 05 Nov 2024 22:38 next collapse

Pict-rs that is used by Lemmy to store images already supports S3 type storage, so in theory it should work with Jortage, but I don’t think anybody has tested that yet. The people behind Feddit.org might have experimented with it as they expressed interest a while back.

Deebster@lemmy.ml on 06 Nov 2024 01:35 collapse

I think the major advantage is the deduplication - when an image goes viral across Mastodon (or Lemmy) it’s currently stored hundreds or thousands of times, each with its own cost. Do you dedupe (for either your customers’ benefit or your own)?

sosodev@lemmy.world on 06 Nov 2024 02:05 collapse

Are the images duplicated when shared? My understanding is that only a link to the file is replicated across servers and duplication comes from users manually uploading the same file to another server.

My website does not do any deduplication at this time.

Deebster@lemmy.ml on 06 Nov 2024 02:23 collapse

Yes, for example go to infosec.exchange/explore

I see the top post as infosec.exchange/…/113433063621462027 and the image is media.infosec.exchange/…/71da3801e4e4f08c.png

The link is to the original on files.mastodon.social/…/f828afef5cc7ed1c.png but when you click image the javascript loads a modal with the local cached version (same image as the thumbnail that infosec.exchange loads.

There’s lots of different codebases across the fediverse so perhaps some hotlink, but local copies is the default.

sosodev@lemmy.world on 06 Nov 2024 03:03 collapse

The Lemmy server config indicates that is an optional setting to improve user privacy so requests don’t ever hit the original server from the client. Those cached files are only temporary and will be deleted after some time. So it’s not really full blown duplication.

The default setting is to only generate the thumbnails and store those locally (indefinitely?) but even that can be turned off. I checked and it appears that lemmy.world has the thumbnail generation disabled so all images from other instances just link to the original on that instance.

Deebster@lemmy.ml on 06 Nov 2024 03:23 collapse

Ok, so Lemmy doesn’t cause the same amount of duplication, but I’d still argue that dedupe is valuable: it saves on hosting costs (your costs, in this case) and users will get a small advantage in having slightly higher cache hits.

sosodev@lemmy.world on 06 Nov 2024 03:28 collapse

For sure, I’ll add it to the list. :)

tofuwabohu@slrpnk.net on 05 Nov 2024 22:13 next collapse

Interesting approach, good luck! Admittedly I’m not sure if many users want to take their media uploading in their own hands and pay for it but maybe I’m wrong. Where are the images stored? Do you have your own hardware? Backups etc?

Also since you’re interested in Fediverse media storage, I recently read about jortage.com It’s a third party storage for your instance with deduplication, pretty interesting idea. Takes away a bit of the federated part though

sosodev@lemmy.world on 05 Nov 2024 22:17 collapse

The files are uploaded to two separate S3 buckets. One is backed by Wasabi and the other is Backblaze. So if one fails, randomly bans my account, etc then I can switch the primary to the other and setup another mirror afterwards.

Compute is hosted by fly.io and the CDN is bunny.net

Boozilla@lemmy.world on 05 Nov 2024 22:18 next collapse

Thank you for writing this. Small typo: focued (focused).

sosodev@lemmy.world on 05 Nov 2024 22:33 collapse

Thanks for reading and pointing out that typo! (I fixed it)

jaggedrobotpubes@lemmy.world on 05 Nov 2024 22:23 next collapse

This feels like something the Fediverse is ultimately going to build for itself. I know jack squat about the details, but it’s gonna have to be a thing eventually, I think.

HulkSmashBurgers@reddthat.com on 05 Nov 2024 22:29 next collapse

I think IPFS could help the fediverse with storage.

osaerisxero@kbin.melroy.org on 05 Nov 2024 22:43 next collapse

I expect something like this to end up being the solution, but I think we're far from a consensus in that regard.

hendrik@palaver.p3x.de on 06 Nov 2024 01:21 collapse

I think most architecture design decisions are made by the developers of the fediverse projects. If the 3 Lemmy devs or the Mastodon maintainers agreed to do it... (And it's technically feasible.) I suppose it could be done.

I mean as long as it works seemlessly and doesn't violate ActivityPub, we don't really need a consensus of all the users and admins. We just need the server admins to install the next update.

moon@lemmy.cafe on 06 Nov 2024 05:38 collapse

To actually keep data persistent on IPFS and not be deleted by the garbage collector, you need to have a server(s) pin the node that holds that data.

You either host these servers yourself, or pay providers to store it for you.

And at that point you just reinvented a server simply hosting your data but with extra steps.

sosodev@lemmy.world on 06 Nov 2024 07:45 collapse

Thank you for pointing that out. I’m not familiar with IPFS but I tend to agree there’s no free lunch here. People think you can wave the blockchain wand and free computing appears but there’s always costs built in somewhere.

abff08f4813c@j4vcdedmiokf56h3ho4t62mlku.srv.us on 05 Nov 2024 22:35 next collapse

You're not the first to think about this.

See https://aumetra.xyz/posts/the-fedi-ddos-problem - there an embed server is proposed, to be shared by multiple instances (ideally a great many would use just the one), which can host things like image files and previews.

moon@lemmy.cafe on 06 Nov 2024 05:30 collapse

There’s a big issue with this.

If malicious content like CP gets uploaded on to a server, obviously other servers do not want this to be replicated to their servers. So how would you solve this problem? Well they could give all moderation power to the original server they’re replicating, but that could be far too slow or they could even miss malicious content like this. Or maybe they even disagree about taking down certain things.

Another solution is that any server participating in the content mirroring could take it down for just themselves or for all the other members as well. The issue here is now you’re expanding moderation abilities, while also giving the other servers much more responsibilities.

It’s not as simple as wanting to replicate content. If you host it, you are responsible for any illegal content a user may upload to it. Not to mention laws vary by country as well. Ignoring the technical challenges here, it’s also mandatory that the other servers replicate the other servers data to also choose to be responsible for what gets uploaded. And that is a really big ask. The law doesn’t care about the technical reasons, they’ll just see illegal content uploaded to your server.

abff08f4813c@j4vcdedmiokf56h3ho4t62mlku.srv.us on 06 Nov 2024 05:54 collapse

This issue already exists, regardless of the embed server problem. Right now, images posted by users to an instance get sent to that community's instance and then copied to all instances of all subscribers.

If anything, the embed server provides a potential solution - rather than federate the image directly, simply link to the copy of the image on the embed server. (I've done some customized code changes on top of pyfedi to implement this idea there.)

I imagine instance admins would still want to to monitor and delete links to CP, but under this idea only the admins of the embed server and their delegates would have the ability to remove CP from the embed server itself. (Should they delegate this ability to other instance admins? Probably only on a case-by-case basis at most.)

Perhaps they could support a reporting functioning from mods and instance admins though..

hperrin@lemmy.world on 05 Nov 2024 22:38 next collapse

Ok, hear me out.

We find the users with the slowest internet and start sending them all the data. They don’t have to keep anything on disk. Then they send it all back and forth between each other. Any time a user makes a request, we just wait for one of the slow nodes to come across the data and send it out.

We use the slowest wires for all the storage. It’s fool proof.

sosodev@lemmy.world on 05 Nov 2024 22:42 next collapse

Somebody actually did make this as a joke years ago haha github.com/yarrick/pingfs

hperrin@lemmy.world on 05 Nov 2024 23:15 next collapse

Ha! That’s awesome!

dojan@lemmy.world on 06 Nov 2024 01:13 collapse

I was brushing my teeth when reading this comment and inadvertently ended up swallowing all my toothpaste.

TseseJuer@lemmy.world on 06 Nov 2024 19:28 collapse

don’t forget to spit

NaibofTabr@infosec.pub on 05 Nov 2024 22:47 next collapse

You jest but… delay line memory

themoonisacheese@sh.itjust.works on 05 Nov 2024 22:58 collapse

youtu.be/JcJSW7Rprio

grubbyweasel@sh.itjust.works on 05 Nov 2024 23:22 next collapse

Top 5 YouTube videos this one

hperrin@lemmy.world on 05 Nov 2024 23:41 collapse

This is amazing and I love it.

bulwark@lemmy.world on 05 Nov 2024 22:40 next collapse

I wish there was some version of PBS for Lemmy, like public funds for hosting. I’ll admit I haven’t really thought this through, so there’s probably some problems with my idea.

Trainguyrom@reddthat.com on 12 Nov 2024 17:09 collapse

At least as far as US law is concerned, a federally hosted and administrated social media platform gets interesting with America’s unusually strong free speech laws, since there’s content which is legal but unethical which they likely would not be allowed to block or moderate, such as bullying, hate speech, misinformation, etc. but also illegal content would be immediately moderated away, which might include content that falls into legal grey areas or ethical but technically illegal content, like someone copy/pasting the contents of a paywalled article, or discussing any kind of DRM or digital security bypass

Honestly I think there’s good reason for governments to host a Mastodon instance for their representatives to use for communications, but inviting the public to use it might get weird for sure

bulwark@lemmy.world on 12 Nov 2024 18:08 collapse

Oh yeah, I totally agree with you that governments should at least host their own Mastodon instances. I thought it was weird when Twitter became the go to for communication from the US Government.

Lost_My_Mind@lemmy.world on 05 Nov 2024 22:41 next collapse

What is stopping some big giant, let’s say Yahoo/Verizon from buying a shitload of storage, starting their own private instance which is open to the public, but private in the sense that only Verizon employees are admins and mods. Only Verizon controls things. Then advertise to the point that the average person on the street knows that Verizon.Lemmy exists, and assosiates Lemmy with being a Verizon thing? What is stopping big tech from pouring the money required for this concept to take off, and using their control over their instance from making the decentralized a centralized service in the general public’s minds?

Right now Lemmy is 60k people. Ok. What if Lemmy was 200 million people, and only 60k knew it was a decentralized service? Everyone else just thought Verizon owned Lemmy?

CarbonIceDragon@pawb.social on 05 Nov 2024 22:51 next collapse

Isnt this the exact reason why there was such concern over the idea of Threads federating with the fediverse at large?

themoonisacheese@sh.itjust.works on 05 Nov 2024 22:59 next collapse

This is literally exactly what happened to email. It didn’t go great

smeg@feddit.uk on 05 Nov 2024 23:57 collapse

Either they federate and all their users are exposed to the rest of the fediverse, or they don’t and they may as well be a separate thing

Lost_My_Mind@lemmy.world on 06 Nov 2024 00:17 collapse

Yeah. What I’m saying is, they federate, but people have no idea what “federate” means. So they’d come here, and see “@smeg@feddit.uk” and not understand what feddit.uk was.

They would see you, and think you are a user of the verizon owned service. Not question it one bit, and just move on thinking it’s all verizon.

The same way people in Atlanta will say “I want a coke” “What kind of coke?” “Root Beer”.

Or the same way parents in the 90s would say “I bought you a Nintendo Game!” then you open it, and it’s a Sega Saturn disc, when you have Sony Playstation. It’s all just a Nintendo to them.

I’m saying if Verizon grew Lemmy to 200 million users, and all except 60k were on the Verizon instance, then despite being incorrect, Lemmy becomes “The Verizon owned Facebook”.

Doesn’t matter that it’s federated.

smeg@feddit.uk on 06 Nov 2024 00:42 collapse

I guess that’s what instances are trying to avoid by preemptively blocking Threads. If everyone else blocks it then Lemmy carries on existing as it is. And I can’t imagine big corpo wouldn’t want to create their own name.

NuXCOM_90Percent@lemmy.zip on 05 Nov 2024 22:52 next collapse

We totally need sustainable file hosting. Freedom!

Wait… the fuck did you just upload? Oh god. Oh god no. Do I have to call the cops on you? Oh no. Wait, does this count as possession? FUCK!!!

We need someone else to handle the totally sustainable file hosting. Freedom!

Kalkaline@leminal.space on 05 Nov 2024 22:57 next collapse

Yep, there needs to be moderation tools that can be quickly deployed to stop the illegal/immoral/evil stuff from spreading and taking over self-hosted servers.

NuXCOM_90Percent@lemmy.zip on 05 Nov 2024 23:04 next collapse

And moderation of this kind of content almost always sounds like torture when you hear about what facebook and the like are outsourcing.

Theoretically, this is a good problem for computer vision/machine learning. But there are a LOT of false positives (I think it was Aftermath who did an article on a study of when a nipple becomes female?). And… what ethical responsibility do you have to report on the fiftieth time that SheIsReallyAnEightThousandYearOldDragon_6969 uploaded CSAM? And how quick do you think people are going to lose faith in you and start wondering if you’ll also report on the rampant piracy?

And… there are also false negatives. At which point you find out you have been hosting something truly heinous for the past few months… possibly when local law enforcement tells you.

Like a lot of things: it sounds great. But nobody in their right mind is going to host this for free. And once you start accepting money you start opening yourself up to a LOT of regulations.

rigatti@lemmy.world on 05 Nov 2024 23:19 next collapse

A nipple becomes female precisely when it wants to!

grue@lemmy.world on 06 Nov 2024 01:25 collapse

Nipples are wizards, confirmed.

Kalkaline@leminal.space on 05 Nov 2024 23:48 collapse

It doesn’t even have to be to that extent, just being able to slow/stop that awful content from being uploaded by a bunch of malicious bots. Even if it’s not malicious content, you could still have people uploading spam that eats up the server space.

Lost_My_Mind@lemmy.world on 06 Nov 2024 00:02 collapse

Illegal I can begrudgingly agree with. Even though I am a proponent for piracy, I will conceed that for growth’s sake, the tools need a clear well defined path to moderation.

That being said, who’s to say what IS immoral and evil?

In the republicans minds, porn is evil and should be banned. Trans rights are evil and should be banned. Abortion is evil and should be banned.

I disagree with all those claims. I do not think any of them are immoral, or evil.

I think pineapple on pizza is wrong, and evil. Some agree, others don’t. If I had my way, promoting of pineapple on pizza would be banned.

Now, who’s to say what is, and what isn’t evil? I think the only clear line to a moderation approach is to have a clear, unquestionable set of rules. These rules are to be based on public laws.

Everything else, I feel you should have the freedom to do as you wish. But also, I believe other people that you don’t agree with should be free to do as they wish.

You may never know how someone feels, or understand their perspective, but as long as they aren’t breaking laws, I feel they should have the ability to feel that way consequence free.

I may not like that you put pineapples on your pizza, but I feel that you should have the right to enjoy it. Even if it goes against MY views as to what constitutes a REAL pizza! Much to my surprise, pineapple on pizza ISN’T illegal. So you should have the right to enjoy it…

And yes. I did take the most pandtentic example I could think of, in order to display the absurdity of the concept of how easy it is to accept others rights in this world that don’t affect you.

Now just apply that same concept to every other example in the world. Then take into consideration that by using vague undefined terms to define your rules, you create grey area that’s easy to exploit. Who’s to say what IS evil? Adults told their teenagers in the 1950s that Elvis was evil. Parents in the 1920s told their teenagers that jazz was evil.

We need to define the terms that define our rules.

hendrik@palaver.p3x.de on 06 Nov 2024 00:57 next collapse

In the federated world it's the moderators and admins who get to make the rules and/or decide what they deem appropriate. It's as simple as that.

Kalkaline@leminal.space on 06 Nov 2024 01:43 collapse

I would say you go to the extremes and work back from there for what’s immoral/evil.

grue@lemmy.world on 06 Nov 2024 01:33 collapse

Seems to me that this is a use-case Freenet Hyphanet would be good for, both because it distributes the problem of file storage load and because it eliminates responsibility for each host to police his node by making it impossible for anyone to know which file chunks said node is hosting.

NuXCOM_90Percent@lemmy.zip on 06 Nov 2024 01:37 collapse

Nothing solves the problem of CSAM quite like… making everyone partially culpable in the storage and distribution of CSAM.

You can’t prove I was hosting child porn. Statistically, we all only had a 70% probability of having it on our computers

grue@lemmy.world on 06 Nov 2024 01:50 collapse

Stuff that isn’t accessed eventually gets deleted. If the Lemmy instances (which are clearnet, of course) delete the references to it, it would go away.

NuXCOM_90Percent@lemmy.zip on 06 Nov 2024 02:25 collapse

Which gets back to volunteers going through and moderating it. And the ethical and moral question of whether people who upload it are reported.

And… honestly? if there is even a 20% chance that running a file sharing node (because I just love to give away both bandwidth and storage…) is being used to store CSAM? I ain’t doing that shit and most people will similarly run screaming and call the cops.

Valmond@lemmy.world on 05 Nov 2024 23:32 next collapse

I think Tenfingers could be an interesting option as hosters do not know what they host, the data can be modified, and it’s 100% decentralised.

fishcharlie@eventfrontier.com on 05 Nov 2024 23:44 next collapse

I know I’m not necessarily the target audience for this. But it feels too expensive. 6x the price of Cloudflare R2, almost 13x the price of Wasabi. Even iCloud storage is $0.99 for 50 GB with a 5 GB free tier. But again, I know I’m not necessarily the target audience as I have a lot of technical skills that maybe average users don’t have.

If you ever get around to building an API, and are interested in partnerships, let me know. Maybe there is a possibility for integration into !echo@eventfrontier.com 😉.

sosodev@lemmy.world on 05 Nov 2024 23:56 collapse

Yeah, I wish it could be cheaper but I’m not a corporation. Instead I’m dependent on them to make a simpler product.

The target audience is certainly not developers because they can jump through the hoops to setup their own S3 + CDN or similar.

muntedcrocodile@lemm.ee on 06 Nov 2024 00:35 next collapse

I found this github.com/Marie673/Torrent_Proxy

Its in chinese so idk if its whats needed but if each instance also acted as a torrent proxy then thats decentralised domain agnostic file hosting that doesnt break frontends but also allows clients to update to do resource resolution themselves while helping to serve the fediverses files as a whole.

tehn00bi@lemmy.world on 06 Nov 2024 01:22 next collapse

Is file hosting really a must? I mean Reddit and feddit are basically forums. And not many forums allow file uploads. Also, we should have retention limits. Low value posts are allowed to fade away. High value posts that have some level of interaction stay alive longer.

hendrik@palaver.p3x.de on 06 Nov 2024 01:26 next collapse

A lot of pictures and memes get posted here. And every other post shows a thumbnail picture. These images are all files.

tehn00bi@lemmy.world on 06 Nov 2024 01:29 collapse

Not denying that. But maybe we should accept that photos and memes and whatnot aren’t that valuable and limit their size or the volume allowed per user. Just a thought.

hendrik@palaver.p3x.de on 06 Nov 2024 01:41 next collapse

Yeah, I wonder if that would fly with the users. I just scrolled through my timeline and nearly every post has some colorful image to it. (except in Ask Lemmy and No Stupid Questions.) I'm not sure if users would accept this platform if it were mostly textual. And putting restrictions in place would certainly reduce the number of images. Scrolling through Lemmy would feel like Hackernews, not any modern social media platform. I doubt mainstream people appreciate that.

But yeah, that'd be possible. We could just close the meme communities for example. Or exclude them from individual instances to save some space there.

nasi_goreng@lemmy.zip on 06 Nov 2024 04:09 collapse

limit their size or the volume allowed per user

Fedi software like Misskey already did exactly that. Each user have limited “drive” which can be upgraded/customized per user. People even reuse image they already have on their drive, so it won’t be any duplicate files.

Azzu@lemm.ee on 06 Nov 2024 04:08 next collapse

Reddit is basically entirely image or video posts, all hosted by reddit directly.

sean@lemmy.wtf on 09 Nov 2024 21:30 collapse

People forget why Imgur was created

TORFdot0@lemmy.world on 06 Nov 2024 02:33 next collapse

Is a p2p system for media with the instances just hosting magnet links too slow for fediverse purposes? To me this seems like the most resilient way to handle media in a decentralized system

ayyy@sh.itjust.works on 06 Nov 2024 02:47 collapse

If a social network is to take off, it must be accessible from mobile devices behind CGNAT (carrier grade network address translation).

pinkystew@reddthat.com on 06 Nov 2024 02:51 next collapse

Why?

ayyy@sh.itjust.works on 06 Nov 2024 02:55 collapse

Because that’s where all the users are. The “social” aspect of a “social” network. Anyone can host a forum but it’s useless without users.

56_@lemmy.ml on 06 Nov 2024 11:25 collapse

p2p from behind a CGNAT works just fine as long as a single server is accessible and can mediate connections between other peers. Most non-servers are behind some sort of NAT these days.

M0oP0o@mander.xyz on 06 Nov 2024 04:18 next collapse

Too wet for server racks in the forest.

sosodev@lemmy.world on 06 Nov 2024 04:37 collapse

They grew there

M0oP0o@mander.xyz on 06 Nov 2024 04:42 collapse

Look I know there called “farms” but like I told the last forest gnome, the dank woods is no place to host data.

moon@lemmy.cafe on 06 Nov 2024 05:18 next collapse

Personally I’m in the camp that I want history to be lost. That’s part of the appeal to me. In fact my favorite feature in the fedi is Mastodon’s option to enable auto-deleting posts of a certain age.

Only content that is explicitly pinned or reaches a certain amount of interactions should be saved imo. Since that’s the stuff you’d actually want to preserve rather than the 99% of forgettable content, and it would also drastically cut down on file hosting.

Another thing is that a federation should only act as the exchange between users on ActivityPub. It should only cache relevant information and not be expected to store everything, like I wrote before. The user should be a portable account that is stored on a device. The federation server would sync your account between your devices, but not store it. You send your content to the federation, and then the federation sends it out into the world where they choose to do what they want with it. The federation shouldn’t hoard it indefinitely.

Also this makes sense from a privacy perspective. If you care about privacy, why would you also want all your data indefinitely stored? Unless certain things are relevant and explicitly kept, it should be expected to expire and be lost by default. Where did we get this expectation that data should be stored forever? Also you expect it to be stored forever and not be trained on by AI?

This comment for example, after about a week or two most of the visibility and interaction of it will drop to zero. At that point, this comment should expire and no longer exist. I wrote this comment, it reached some people, and served it’s purpose and should expire. I’m not going to pretend like this comment is some kind of historic document that should be indefinitely preserved, nor do I expect or want it to be.

Lemmchen@feddit.org on 08 Nov 2024 04:02 collapse

This comment for example, after about a week or two most of the visibility and interaction of it will drop to zero. At that point, this comment should expire and no longer exist.

That’s an incredible naive and egoistic take. Think about all the knowledge that is getting lost by applying this approach. How many times have you searched for some obscure thing and found the answer only on some five years old reddit post? That information would be lost for ever if you had your way.

moon@lemmy.cafe on 08 Nov 2024 06:34 collapse

I think the massive privacy benefits outweigh things like that, which should be documented properly anyways

mlg@lemmy.world on 06 Nov 2024 06:14 next collapse

IPFS?

sosodev@lemmy.world on 06 Nov 2024 07:39 collapse

What would an IPFS solution look like here? That’s a genuine question. I don’t have much experience with IPFS. It seems like it isn’t really used outside of blockchain applications.

taanegl@lemmy.ml on 06 Nov 2024 08:37 collapse

The sustainability of it is questionable. If I’m not mistaken, IPFS is based on Ethereum, which has gone over to proof of stake rather than proof of work, but it’s still a pretty cumbersome system.

We’re talking about something that needs to compete with Quic and CloudFlare. I’m not sure that Ethereum or even crypto itself is efficient enough as a content delivery method, that IPFS - though a nice idea - is unrealistic.

But that’s just speculation from someone who has zero knowledge behind IPFS as a technology and protocol, so take it with a grain of salt.

EDIT: honestly, why qualify with “I’m not sure” when besserwissers and their alts roam the fediverse instead of going to therapy. Smh. Give the people a Tl;Dr at least. I’m not here for long form content.

Scio@lemmy.world on 06 Nov 2024 10:03 collapse

IPFS has absolutely nothing whatsoever to do with Ethereum, or indeed any blockchain. It is a protocol for storing distributing and addressing data by hashes of the content over a peer to peer network.

There is however an initiative to create a commercial market for “pinning*”, which is blockchain based. It still has nothing to do with Ethereum, and is a distinct project that uses IPFS rather than being part of the protocol, thankfully. It is also not a “proof of work” sort of waste, but built around proving content that was promised to be stored is actually stored.

Pinning in IPFS is effectively “hosting” data permanently. IPFS is inherently peer to peer: content you access gets added to your local cache and gets served to any peer near you asking for it—like BitTorrent—until it that cache is cleared to make space for new content you access. If nobody keeps a copy of some data you want others to access when your machines are offline, IPFS wouldn’t be particularly useful as a CDN. So peers on the network can choose to pin some data, making them exempt from being cleared with cache. It is perfectly possible to offer pinning services that have nothing to do with Filecoin or the blockchain, and those exist already. But the organization developing IPFS wanted an independent blockchain based solution simply because they felt it would scale better and give them a potential way to sustain themselves.

Frankly, it was a bad idea then, as crypto grift was already becoming obvious. And it didn’t really take off. But since Filecoin has always been a completely separate thing to IPFS, it doesn’t affect how IPFS works in any way, which it continues to do so.

There are many aspects of IPFS the actual protocol that could stand to be improved. But in a lot of ways, it does do many of the things a Fediverse “CDN” should. But that’s just the storage layer. Getting even the popular AP servers to agree to implement IPFS is going to be almost as realistic an expectation as getting federated identity working on AP. A personal pessimistic view.

taanegl@lemmy.ml on 06 Nov 2024 11:17 collapse

TL;Dr. From Wikipedia

IPFS allows users to host and receive content in a manner similar to BitTorrent. As opposed to a centrally located server, IPFS is built around a decentralized system of user-operators who hold a portion of the overall data. Any user in the network can serve a file by its content address, and other peers in the network can find and request that content from any node who has it using a distributed hash table (DHT).

So it’s BitTorrent in the web browser… thanks. How is that to be competitive with CloudFlare and Quic again? It has the same network issues that the blockchain has, in that it will be cumbersome and slow - for anyone else that doesn’t have millions to throw into infrastructure. Welcome to the same problem again, but in a different way.

Scio@lemmy.world on 06 Nov 2024 11:29 collapse

Ironically, because there’s no UDP in browsers, we can’t actually get proper p2p on the web. WebRTC through centralized coordination servers at best. Protocol Labs has all but given up on this use-case in favor of using some bootstrapped selection of remote helper nodes.

C126@sh.itjust.works on 06 Nov 2024 10:54 next collapse

anyway to use torrent protocol somehow? Like popcorn time did?

nutsack@lemmy.world on 06 Nov 2024 11:34 next collapse

this is actually a super interesting idea of which i have never seen proof of concept. other than maybe freenet or something.

tiddy@sh.itjust.works on 06 Nov 2024 15:24 next collapse

Ipfs would be similar but more purpose based

C126@sh.itjust.works on 06 Nov 2024 19:24 collapse

Never heard of that for, it looks exactly built for this problem, better than torrent. Good call.

TriflingToad@sh.itjust.works on 06 Nov 2024 19:53 collapse

if it was easy to set up id definitely host a terabyte of Lemmy. As a pet.

moseschrute@lemmy.world on 07 Nov 2024 13:21 collapse

What would you name your pet

glowing_hans@sopuli.xyz on 08 Nov 2024 03:09 collapse

am I the only one who would advocate for text only storage: no. This comment also gets my point? There should be text only lemmy instances which only save text and do not allow any kind of image posting or storage.

  • text is less offensive to consume and moderate than evil images or video
  • text is way more information dense and can be even compressed more! Truly the green biosphere friendly data format. I would be willing to save text only data of strangers on my hard-drive, but not images or video. Could even be valuable llm analysis training data.

Yes people could post base64 encoded images, but that is a larger technical barrier and can be detected. If image storage is really need, images should be heavily compressed (webp 90% quality loss), provided as links to external sites, and whenever possible svg / vector graphics should be preferred.