ayo,
@ayo@ayco.io avatar

This has been taking down SSR projects on Netlify & Vercel free tiers
https://news.itsfoss.com/mastodon-link-problem/

teacherbuknoy,
@teacherbuknoy@masto.ai avatar

@ayo This reminds me of the Reddit Hug of Death.

thedaviddelta,
@thedaviddelta@fosstodon.org avatar

@ayo what is the reason to generate metadata on demand for every request instead of caching it using something like SSG?

ayo,
@ayo@ayco.io avatar

@thedaviddelta
That's a very important question. SSR via edge functions are popular recently because I think there are valid reasons for those, like when you need dynamic server rendered HTML and having them on edge means they are fast for users...

ayo,
@ayo@ayco.io avatar

@thedaviddelta However I think the costs should be more obvious, but I don't know on whose interests will displaying the costs fall: the framework or the deployment platform? Deployment platforms love it when we use up the budgets. Frameworks love it when we use their dependencies.

anze3db,
@anze3db@fosstodon.org avatar

@ayo I've also noticed a CPU spike on my Raspbery Pi every time I post a link that's hosted there. I have a small amount of followers so the spike was never actually problematic though.

ayo,
@ayo@ayco.io avatar

@anze3db yeah I think even a properly configured VPS could be enough, just the free-tier edge function budget on platforms like Netlify and Vercel gets used up quickly 😄 then they will put down the project

ricard,
@ricard@ricard.social avatar

@ayo I also love how you shared their link on Mastodon, of the post "please don't share us on Mastodon" 😂

ayo,
@ayo@ayco.io avatar

@ricard hehe I realized this too... too late! I hope they are ready though, people are sharing it

ricard,
@ricard@ricard.social avatar

@ayo I mean if you serve all your assets and HTML via CDN, you shouldn't notice server load 🤷

ayo,
@ayo@ayco.io avatar

@ricard Yeah, I don't know how they do it... for me because a visit to an SSR page will trigger an edge function it quickly reaches the free tier budget, so not about load but more about the platform-enforced limit.

ayo,
@ayo@ayco.io avatar

been noticing this, as I also often DDOS myself 🙈

ayo,
@ayo@ayco.io avatar

It's not just a "federation" problem... I think Mastodon's mechanism for building the preview card needs improvement

ayo,
@ayo@ayco.io avatar

As for me I'm moving stuff out of free tiers and putting them on better platforms 😄 -- that should have been my first consideration anyway 🤦‍♂️

ayo,
@ayo@ayco.io avatar

But maybe Netlify, Vercel, and other edge function platforms can ignore the Mastodon user agent? They are probably aware of this... 👀

ayo,
@ayo@ayco.io avatar

Here's a good description of the problem here: https://github.com/mastodon/mastodon/issues/23662

> "Posting an image on Mastodon causes hundreds or thousands of federated servers to fetch the preview details all at once, causing a high load for the target server and effectively creating the by now well-known "Mastodon DDoS" effect. For static websites this may not be much of an issue but it routinely brings down larger pages or those which have dynamic server-rendered content."

ayo,
@ayo@ayco.io avatar

I greatly love Mastodon, but we have to float critical issues that needs fixing. This is not shitting on the product. We want to correct what we love.

ricard,
@ricard@ricard.social avatar

@ayo Feels like the public roadmap is for one not clear enough and sometimes not well prioritized.

Working on quote posts rather than these critical DDoS issues, or moderation tools seems wrong to me.

ayo,
@ayo@ayco.io avatar

@ricard oh man, I wish they didn't promise quoted posts before... it made me stop thinking about how to implement it client-side because the API might change 😬

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • tacticalgear
  • GTA5RPClips
  • megavids
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines