posted in Fediverse

TIL the fediverse basically DDOS's sites when you share a link.

I shared a link from NPR Tiny Desk but there was no image preview or video embed. After investigating this I learned that when you do that, each instance picks up the link and individually retrieves the link preview nearly simultaneously. For gargantuan sites like YT or Reddit, this is a trivial amount of traffic and not a problem, but for smaller sites like NPR this results in a sort of botnet DDOS attack on the site’s servers. More here. Another example here . For that reason, NPR has blocked Fediverse servers like Mastodon.

I have experienced this on my personal server as well (DDOS), but at the time didn’t know why, exactly.

This isn’t the end of the world, but certainly is not great and hurts engagement with the content. Is there a solution for this? Perhaps using some sort of webtorrent service like PeerTube where they just fetch the information from another fediverse server instead of the source server? Maybe fetching embeds client-side? At least that would stagger the requests.

E: Many people have replied comparing this to the Reddit “hug of death” or “The Slashdot effect”. This is not the same at all. Those are legitimate site visits from humans that happen over the course of several hours. This is the result of several thousand servers all automatically fetching the same image simultaneously , and without any human involvement, and potentially next to zero human traffic to the site, which is why I compared it to a botnet or DDOS attack.

Jeff SikesUnderstanding Mastodon Preview Card Display LogicEver wondered why some links you post to Mastodon show a nicely formatted preview card, but others don’t? It can seem random, even showing differently from app to app.

Replying to @⁨artyom@piefed.social⁩

I’m not exactly sure why a web server can’t handle legit web traffic, just because it’s a lot? I agree that smaller actors should be given a little breastfeeding but solving it on the other side is bad architecture. A legit request can never be compared to a a ddos attack, the overloaded net has to throttle and then the instances need to retry with a generous enough delay.

Options for solutions to another systems problems are all going to introduce more problems. Sure, the requests could honestly be routed to a cache and it would help this problem, att least until it breaks or is exploited. But it would never be truly solved that way.

Replying to an earlier post

I’m not exactly sure why a web server can’t handle legit web traffic, just because it’s a lot?

Its not because it’s a lot, it’s because it all happens in the same instant, which does not resemble any sort of normal web traffic.

but solving it on the other side is bad architecture

Solving it on the side that’s creating the problem is bad architecture? 🤔

But it would never be truly solved that way.

Several potential solutions have been posited, if you just look through the comments.

Replying to @⁨artyom@piefed.social⁩

If I just drop a link into IRC, Jabber, Matrix, and possibly Discord, every client will go to the server and request a preview. The only difference is how many clients are online. On sufficiently large servers, this can also cause a DDoS. The problem lies in server-side caching, not in the architecture of all messengers.

UPD: of course, this can be solved on the Lemmy side, but what will you do when the network grows even larger? A million servers will cause a DDoS even with random requests. You could of course send the preview with the post, but it seems that would permanently and strictly limit the type of preview, and it’s unclear how to handle custom servers.

en