A place to cache linked articles (think custom and personal wayback machine)
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. title: Is the fediverse about to get Fryed? (Or, “Why every toot is also a potential denial of service attack”)
  2. url: https://ar.al/2022/11/09/is-the-fediverse-about-to-get-fryed-or-why-every-toot-is-also-a-potential-denial-of-service-attack/
  3. hash_url: a6257c9517a4e07d4d4ccfa872cbf08b
  4. <h1>Is the fediverse about to get Fryed? (Or, “Why every toot is also a potential denial of service attack”)</h1>
  5. <time class="single" datetime="2022-11-09T19:00:00Z">09 Nov 2022</time>
  6. <figure>
  7. <img src="https://ar.al/2022/11/09/stephen-fry-mastodon-banner.png" alt="Screenshot of Stephen Fry’s Mastodon account banner on mastodonapp.uk"> <figcaption>
  8. <p>Stephen is a big fish to fry. (I’m here all week.)</p>
  9. </figcaption>
  10. </figure>
  11. <p>Warning: the fediverse is about to get Fryed.</p>
  12. <p><a href="https://www.stephenfry.com/">Stephen Fry</a>ed, that is.</p>
  13. <p>Following the recent takeover of Twitter by a proto-fascist billionaire man-baby, people have been fleeing<sup id="fnref:1"></sup> to the fediverse<sup id="fnref:2"></sup>. Among them are folks who, on Twitter, at least, had millions of followers like <a href="https://mastodon.nu/@gretathunberg">Greta Thunberg</a> and, more recently, <a href="https://mastodonapp.uk/@stephenfry">Stephen Fry.</a><sup id="fnref:3"></sup></p>
  14. <p>“Well, surely that’s a good thing? It’ll get everyone talking about the fediverse, decentralisation, and maybe even that <a href="">Small Web</a> thing you keep harping on about all the time, Aral, no?”</p>
  15. <p>Well, yes and no… you see, there is such a thing as <strong>too much of a good thing.</strong> And, on the fediverse today, that appears to be “engagement when you’re popular.” In fact, it could be deadly (to Mastodon instances, that is).</p>
  16. <p>Read on and I’ll try to explain what I mean by using my own account as an example.</p>
  17. <h2 id="how-to-kill-a-mastodon-hint-by-being-chatty-when-youre-popular">How to kill a Mastodon (hint: by being chatty when you’re popular)</h2>
  18. <p>Needless to say, I’m not a celebrity.</p>
  19. <p>And yet, on the fediverse, I find myself in a somewhat unique situation where:</p>
  20. <ol>
  21. <li>
  22. <p><strong>I have my own personal Mastodon instance, just for me.</strong><sup id="fnref:4"></sup></p>
  23. </li>
  24. <li>
  25. <p><strong>I’m followed by quite a number of people.</strong> Over 22,000, to be exact.<sup id="fnref:5"></sup></p>
  26. </li>
  27. <li>
  28. <p><strong>I follow a lot of people and I genuinely enjoy having conversations with them.</strong> (I believe this is what the cool kids call “engagement”.)</p>
  29. </li>
  30. </ol>
  31. <p>Unfortunately, the combination of these three factors creates a perfect storm<sup id="fnref:6"></sup> which means that now, every time I post something that gets lots of engagement, I essentially end up carrying out a <a href="https://en.wikipedia.org/wiki/Denial-of-service_attack">denial of service attack</a> on myself.</p>
  32. <h2 id="mastodon-denial-of-service-as-a-service">Mastodon: denial-of-service as a service?</h2>
  33. <p>Yesterday was my birthday.</p>
  34. <p>So, of course, I posted about it on my Mastodon instance.</p>
  35. <p>It got quite a few replies. And, because it’s only polite, I started replying to everyone with thank-you messages.</p>
  36. <p>Oh, no, you poor, naïve man, you. What were you thinking?!…</p>
  37. <p>I’ll let my friend <a href="https://hugo.gameiro.pt/">Hugo Gameiro</a>, who runs <a href="https://masto.host">masto.host</a> and hosts my instance, explain what happened next:<sup id="fnref:7"></sup></p>
  38. <blockquote>
  39. <p>You just get a lot of engagement and that requires a ton of <a href="https://sidekiq.org/">Sidekiq</a> power to process.</p>
  40. <p>For example, let’s look at your birthday post …  besides requiring thousands of Sidekiq jobs to spread your post through all their servers (you have 23K followers, let’s assume 3K different servers<sup id="fnref:8"></sup>), as soon as you create the post 3K Sidekiq jobs are created. At your current plan you have 12 Sidekiq threads, so to process 3K jobs it will take a while because it can only deal with 12 at a time.</p>
  41. <p>Then, for each reply you receive to that post, 3K jobs are created, so your
  42. followers can see that reply without leaving their server or looking at
  43. your profile. Then you reply to the reply you got, another 3K jobs are
  44. created and so on. </p>
  45. <p>If you replied to the 100 replies you got on that post in 10 minutes (and assuming my 3K servers math is right). You created 300K jobs in Sidekiq. That’s why you get those queues.</p>
  46. </blockquote>
  47. <p>So what does that mean if you’re not into the technical mumbo-jumbo?</p>
  48. <p>It means I was too chatty while being somewhat popular.</p>
  49. <figure>
  50. <img src="https://ar.al/2022/11/09/sidekiq-stats-during-my-birthday-post.png" alt="Screenshot of my Sidekiq stats, showing 175,082 enqueued tasks as I was replying to folks on my birthday post"> <figcaption>
  51. <p>What a traffic jam looks like in Mastodon.</p>
  52. </figcaption>
  53. </figure>
  54. <p>So, what’s the solution?</p>
  55. <p>Well, there’s only one thing you can do when you find yourself in such a pickle: scale up your Mastodon instance.<sup id="fnref:9"></sup> The problem with that? It starts getting expensive.</p>
  56. <p>Prior to the latest Twitter migration<sup id="fnref:10"></sup>, I was paying around €280/year (or a little over €20/month) for my Mastodon instance on a custom plan I had with Hugo from the early days. This week, I upped that to a roughly €50/month plan. And that’s still not enough as my birthday post just showed so Hugo, kindly, has suggested he might have to come up with a custom plan for me.</p>
  57. <p>And yet, the problem is not one that will go away. We can only kick the ball down the road, as it were.</p>
  58. <p>(Unless I piss everyone off with this post, that is.)</p>
  59. <p>Thankfully, by running my own instance, the only person I’m burdening with this additional expense is me. But what if I’d been on a public instance run by someone else instead?</p>
  60. <h2 id="musk-you">Musk you?</h2>
  61. <p>If Elon Musk wanted to destroy <a href="https://mastodon.social">mastodon.social</a>, the flagship Mastodon instance, all he’d have to do is join it.<sup id="fnref:11"></sup></p>
  62. <p>Thank goodness Elon isn’t that smart.</p>
  63. <p>I jest, of course… <a href="https://en.wikipedia.org/wiki/Eugen_Rochko">Eugen</a> would likely ban his account the moment he saw it. But it does illustrate a problem: Elon’s easy to ban. Stephen, not so much. He’s a national treasure for goodness’ sake. One does not simply ban Stephen Fry.</p>
  64. <p>And yet Stephen can similarly (yet unwittingly) cause untold expense to the folks running Mastodon instances just by joining one.<sup id="fnref:12"></sup></p>
  65. <p>The solution, for Stephen at least, is simple: <a href="https://mastodon.ar.al/@aral/109311046067489334">he should run his own personal instance.</a></p>
  66. <p>(Or get someone else to run it for him, like I do.)<sup id="fnref:13"></sup></p>
  67. <p>Running his own instance would also give Stephen one additional benefit: he’d automatically get verified.</p>
  68. <p>After all, if you’re talking to, say, <em>@stephen@social.stephenfry.com</em>, you can be sure it’s really him because you know he owns the domain.</p>
  69. <h2 id="personal-instances-to-the-rescue">Personal instances to the rescue</h2>
  70. <figure>
  71. <p class="videoWrapper">
  72. </p>
  73. <figcaption><p>My speech at the European Parliament on the problem with Big Tech and the different approaches provided by Mastodon, the fediverse, and Small Web.</p></figcaption>
  74. </figure>
  75. <p>Wait, I’m confused… didn’t you say that personal instances were part of the problem?</p>
  76. <p>Yes and no: they are and they shouldn’t be.</p>
  77. <p>If ActivityPub (the protocol) and Mastodon (a server that adheres to that protocol) were designed to incentivise decentralisation, having more instances in the network would not be a problem. In fact, it would be the sign of a healthy, decentralised network.</p>
  78. <p>However, ActivityPub and Mastodon are designed the same way Big Tech/Big Web is: to encourage services that host as many “users”<sup id="fnref:14"></sup> as they can.</p>
  79. <p>This design is both complex (which makes it difficult and expensive to self-host) and works beautifully for Big Tech (where things are centralised and scale vertically and where the goal is to get/own/control/exploit as many users as possible).</p>
  80. <p>In Big Tech, the initial cost of obtaining such scale is subsidised by vast amounts of venture capital (rich people investing in exploitative and extractive new businesses – which Silicon Valley calls Startups™ – in an effort to get even richer) and it leads to the amassing of the centres<sup id="fnref:15"></sup> we know today as the Googles, Facebooks, and Twitters of the world.</p>
  81. <p>However, unlike Big Tech, the stated goal of the fediverse is to decentralise things, not centralise them. Yet how likely is it we can achieve the opposite of Big Tech’s goals while adopting its same fundamental design?</p>
  82. <p>When you adopt the design of a thing, you also inherit the success criteria that led to the evolution of that design. If that success criteria does not align with your own goals, you have a problem on your hands.</p>
  83. <p>What I’m trying to say is:</p>
  84. <p><a href="https://mastodon.ar.al/@aral/109274437122830092">Do not adopt the success criteria of Big Tech lest you should become Big Tech.</a></p>
  85. <h2 id="bigger-is-not-better">Bigger is not better</h2>
  86. <p>Today, we equate the size of mastodon.social (the instance run by Eugen) with how successful Mastodon (the software created by Eugen) is. This is very dangerous. The larger mastodon.social gets, the more it will become like Twitter.</p>
  87. <p>I can almost hear you shout, “But Aral, it’s federated! At least there’s no lock-in to mastodon.social!”</p>
  88. <p>This is true.</p>
  89. <p>You know what else is federated? Email.</p>
  90. <p>Have you ever heard of a little old email instance called Gmail? (Or perhaps the term <a href="https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguish">“embrace, extend, extinguish?”</a>)</p>
  91. <p>Do you know what happens to your email if Google says (rightly or wrongly) that you’re spam? No one sees your email.</p>
  92. <p>You know what happens if mastodon.social blocks your instance? Hundreds of thousands of people (soon, millions?) do not get a choice in whether they see your posts or not.</p>
  93. <p>What happens when your instance of one blocks mastodon.social? Nothing, really.</p>
  94. <p>That’s quite a power imbalance.</p>
  95. <h2 id="decentralisation-begins-at-decentring-yourself">Decentralisation begins at decentring yourself</h2>
  96. <p>Mastodon is a not-for-profit, and I have no reason to believe that Eugen has anything but the best of intentions.</p>
  97. <p>However, <a href="https://ar.al/2022/02/16/decentralisation-begins-at-decentring-yourself/">decentralisation begins at decentring yourself</a>.</p>
  98. <p>It’s in the interests of the fediverse that mastodon.social sets a good example by limiting its size voluntarily.</p>
  99. <p>In fact, this should be built right into the software. Mastodon instances should be limited from growing beyond a certain size. Instances that are already too large should have ways of encouraging people to migrate to smaller ones.</p>
  100. <p>As a community we should approach large instances as tumours: how do we break them up so they are no longer a threat to the organism?</p>
  101. <p>If you take this approach to its logical conclusion, you will arrive at the concept of the <a href="https://ar.al/2020/08/07/what-is-the-small-web/">Small Web</a>; a web where we each own and control our own place (or places).</p>
  102. <figure>
  103. <video id="small-is-beautiful" controls="" preload="none" src="https://player.vimeo.com/progressive_redirect/playback/762676594/rendition/1080p/file.mp4?loc=external&amp;signature=6f327f42324b157a97add4fd4c532c69e0cdd29b206ff93f79f4cdae570ed922#t=185" poster="https://small-tech.org/videos/small-is-beautiful-23/poster.jpg">
  104. <img src="https://small-tech.org/videos/small-is-beautiful-23/poster.jpg" alt="">
  105. <p>Sorry, your browser doesn't support embedded videos. But that doesn’t mean you can’t watch it! You can <a href="https://player.vimeo.com/progressive_redirect/playback/762676594/rendition/1080p/file.mp4?loc=external&amp;signature=6f327f42324b157a97add4fd4c532c69e0cdd29b206ff93f79f4cdae570ed922#t=27">download
  106. Small Is Beautiful #23 directly</a>, and watch it with your favourite video player.</p>
  107. </video>
  108. <figcaption><p><a href="https://owncast.small-web.org">Small Is Beautiful</a> (Oct, 2022): What is the Small Web and why do we need it?</p>
  109. </figcaption>
  110. </figure>
  111. <p>I’m not saying that the current fediverse protocols and apps can, will, or even necessarily <em>should</em> evolve into the Small Web.<sup id="fnref:16"></sup> In the here and now, the fediverse is an invaluable stopgap that provides a safer haven than the centralised cesspits of Silicon Valley.</p>
  112. <p>How long the stopgap lasts will depend on how successful we are at resisting centralisation. Protocol and server designs that incentivise vertical scale will not necessarily make this easy. However, there are social pressures we can use to counter their effects.</p>
  113. <p>The last thing you want is a handful of mini Zuckerbergs running the fediverse. Or worse, to find yourself having become one of those mini Zuckerbergs.</p>
  114. <p>I love that the fediverse exists. And I have the utmost respect for the gargantuan effort that’s going into it.</p>
  115. <p>And yet, I am also very concerned<sup id="fnref:17"></sup> that the design decisions that have been made incentivise centralisation, not decentralisation. I implore us to acknowledge this, to mitigate the risks as best we can, to strive to learn from our mistakes, and to do even better going forward.</p>
  116. <p>So to the ActivityPub and Mastodon folks, I say:</p>
  117. <p>Consider me your canary in the coal mine…</p>
  118. <p><strong>«Chirp! Chirp! Chirp!»</strong></p>