this post was submitted on 15 Jul 2023
144 points (100.0% liked)

Fediverse

757 readers
2 users here now

A community dedicated to fediverse news and discussion.

Fediverse is a portmanteau of "federation" and "universe".

Getting started on Fediverse;

founded 5 years ago
MODERATORS
top 29 comments
sorted by: hot top controversial new old
[–] indigomirage@lemmy.ca 38 points 1 year ago* (last edited 1 year ago) (5 children)

This is a shame. Hosting a high visibility server is no joke, and I don't envy the admins and the very difficult work they do. It's simultaneously an argument for and against decentralization. For - a single instance can get knocked out without talking out the whole fediverse. Against - it seems as though high visibility communities are potentially fairly easy to target and take down.

I think that decentralization wins out here in the end, but it does feel like there may be a need for some sort of fallback mechanism to be in place at an instance/community level. I suspect this might evolve somehow over time. It would require some way to expand trust between instances and or portability of communities (which could be fraught with user trust/data integrity issues).

If things don't evolve it could grow into a whack-a-mole game for bad actors, or there might need to be more investment into server infrastructure (which could work against decentralization if only because of economies of scale).

Or maybe there's no issue after all? I'm just imagining potential implications of a scaling fediverse - it's fascinating and exciting stuff!

Thoughts?

[–] db0@lemmy.dbzer0.com 16 points 1 year ago (2 children)

This is the primary reason why I'm ok for my instance to not grow massively. We got 10K people and we have pretty good traffic ,without overloading us or making too much of a target. We still get new users since we allow registrations, but the application requirements retain the quality

[–] 6db@lemmy.ml 4 points 1 year ago* (last edited 1 year ago) (1 children)

I'm realizing that I signed up for a probably-at-risk instance (lemmy.ml). I'm quite left but not necessarily an anarchist so it would seem applying to lemmy.dbzer0.com wouldn't be a good move. (But I did enjoy reading your application requirements!) Recs on other small but reliable instances?

[–] db0@lemmy.dbzer0.com 3 points 1 year ago

You don't need to be an anarchist to apply to lemmy.dbzer0.com. Just follow the rules.

[–] indigomirage@lemmy.ca 2 points 1 year ago

Absolutely makes sense. If lemmy is going to have any truly large communities though, investment in infrastructure/ops as well as function/moderation will be absolutely needed. (It's an 'if', of course)

Time will tell how the community will want to lead it.

[–] Chozo@kbin.social 8 points 1 year ago

a single instance can get knocked out without talking out the whole fediverse

Honestly, it might as well have in this case. LemmyWorld is the de facto "hub" for basically the entire Threadiverse right now. All the major communities are seeing the most activity through LemmyWorld. While I'm subscribed to a lot of communities from other instances, sometimes duplicates of ones found on LemmyWorld, losing LemmyWorld would still a huge chunk of the content that I'm trying to see.

I really do wish that more specialized instances would sprout up and that some of these communities could cluster together across multiple pockets of the Threadiverse. I feel like this makes it less likely to lose huge chunks of content, and also makes fewer large targets for somebody to want to attack in the first place.

[–] anonymoose@lemmy.ca 7 points 1 year ago* (last edited 1 year ago) (2 children)

You don't need to necessarily centralize to defend against DDos or similar attacks. You can add things like Cloudflare for DDos mitigations, CDN and maybe something like Kubernetes for horizontal scaling of servers (spin up more servers to handle extended load) transparently behind the scenes. This can also get you the benefits of low geographical latency, so a load-balancer fetches you data from the closest replica of a database geographically, etc.

Of course, all this adds up in terms of cost, but I think this might be worth it for the largest instances. I suppose that can still be considered centralization.

If we wanted to encourage small many small instances instead, perhaps there could be a transparent load-balancer layer for the fediverse that instances could sign up for, that is managed by a devops group. Alternatively, lemmy could have built-in load-balancing, caching, etc. as part of its codebase that instance operators can set up with their own accounts at Cloudflare, etc.

[–] indigomirage@lemmy.ca 4 points 1 year ago (1 children)

Agreed. Ultimately, that's the point. There are solutions (with ongoing vigilance required) but it comes with an ongoing cost, be it server infrastructure or human resources).

I think the federated load balancer might be interesting but I expect there are many pitfalls that need to be considered and addressed wrt security, trust and integrity of data.

Anyway, it's amazing to see this all grow and evolve.

[–] anonymoose@lemmy.ca 3 points 1 year ago

Definitely, very exciting times!

[–] A1kmm@lemmy.amxl.com 2 points 1 year ago

Yeah everyone using Cloudflare is definitely centralisation, but maybe a kind of centralisation that allows for easier switching to something else if Cloudflare gets too crazy.

DDoS is a war of attrition - and the best way to win a war of attrition is to make it cost much more than $1 to make you spend $1, and to be able to outspend the attackers (e.g. the whole community bands together to support the victims against the attacker). I think the best response depends on who is attacking.

Network level DDoS is likely using stolen bandwidth - but the person directing the attack is probably paying someone for the use of it (i.e. they didn't compromise the equipment themselves, someone else builds botnets and rents them out). If you can identify what traffic is part of a DDoS, you can track down where it is coming from, and alert the owner of the network where it is coming from, which hurts the person providing the services to the attacker quite a lot. If I have a reputation of: if you attack me for someone else, I'll cost you a significant part of your business that will take you months to build back up, then you are not going to offer that service cheaply, or even at all.

Application level DDoS usually relies on amplification of cost - I do something relatively inexpensive (like send a packet opening a connection), and it makes you do something really expensive involving databases, disk IO etc...; a good mitigation is to redesign the API to flip that on its head, so you do something expensive, and I do something relatively cheaper for you. There is an open issue about using Hashcash to do just that at: https://github.com/LemmyNet/lemmy/issues/3204 - the downside is that it forces users (even on mobile devices) to use more compute / power for every request to Lemmy, but I think there is a balance that can be struck there where it isn't too bad for users, but makes that type of attack infeasible.

[–] bastion@lemmy.fmhy.ml 6 points 1 year ago (1 children)

I think this might be interesting:

  • permit separate, low-traffic, highly rate-limited, auth-only servers. They would be strictly rate-limited and only accept connections from whitelisted partner servers
  • any partner server can authenticate a user and handle content for the server/auth-server pair
  • user@lemmy.world can't log in, so the client tries the list of partnered servers. user/succeeds at lemmy.partner.net.
  • user@lemmy.world@partner.net says.. '..something' and all other servers accept it as being from user@lemmy.world
  • lemmy.world recovers,, and claims all of the @lemmy.world@partner.net posts. Partners then forget the extra stuff they've been hosting.
[–] Calcipher@lemmy.ml 4 points 1 year ago* (last edited 1 year ago) (1 children)

The problem with these types of redundancy schemes is that it simply takes a Internet backbone hiccough (or AWS fuck up) to cause there to be multiple primaries (i.e. lemmy.world is online still, but some portion of the internet can't see it, so a replica promotes itself to primary, people use both, how do you reconcile it).

This is not even beginning to talk about the nightmare scenarios possible if someone hacks a replica.

Edit: Still, this is a good thought and similar to how some actual software packages do things.

[–] bastion@lemmy.fmhy.ml 2 points 1 year ago

A lot of those issues of 'multiple primaries' can be resolved with intelligent data types and actions. That is, if we have a notion of how the data is organized, a lot of decisions can be made a priori. Ones that can't can be read-only during a split.

Comment groups are mergeable sets. Any unique comment is a valid comment.

For any individual comment, any tombstone causes a comment to be unseeable (and ideally be deleted). Any edits are latest-wins.

A lot can be sorted out that way - enough to be usable. Some databases even support that on a db level.

[–] vd1n@lemmy.ml 0 points 1 year ago* (last edited 1 year ago)

Can't post to op... But... Somebody just s scared.

[–] Jarmer@kbin.social 3 points 1 year ago (1 children)

Also the other instance I was using ... vlemmy.net ... has been down for like a week now. I wonder if it's completely done for?

[–] remkit@lemmy.kya.moe 7 points 1 year ago (1 children)

Definitely dead according to some of the other posts I've seen

[–] Jarmer@kbin.social 2 points 1 year ago

Do you know what happened to it? Just curious.

[–] Jaxia@toast.ooo 3 points 1 year ago

Thanks for the update. Was wondering why I was having issues logging in.

[–] TheInsane42@lemmy.ml 2 points 1 year ago

Drat, someone really doesn't like lemmy.world and how active it became.

[–] Arotrios@kbin.social 2 points 1 year ago (1 children)

Looks like lemmy.world is back up. vlemmy.net is still down.

[–] wallguy22@lemmy.ml 4 points 1 year ago (1 children)

vlemmy.net has been down for a week or two at this point and the admins took down their donation links. I think it’s safe to say they’re not coming back.

[–] mutant@kbin.social 1 points 1 year ago (3 children)

i bet a lot of people regret torching their reddit accounts lmfao

[–] czech@kbin.social 6 points 1 year ago

I knew which user this was immediately after reading the comment. Check out their post history, all they do is shit on the fediverse. Why are you here if it's so terrible? Hmmm....

[–] MeetInPotatoes@lemmy.ml 2 points 1 year ago

Just once, when I saw a post here linking to a Reddit post with all the backlash from ending awards.

I wanted to tell them all to abandon the sinking shithole of a ship that is Reddit and come to the Fediverse. Wasn't worth making an account over though, they'll figure it out.

[–] DaniAlexander@kbin.social 1 points 1 year ago

Wow. Yeah, I regret reading your history as suggested by @czech. I'm really sorry for whatever is making you such a miserable person. It just be awful. I sincerely hope things get better for you.

[–] Courbet_eiro@lemmy.ml 1 points 1 year ago

I have also had problems with my lemmy.ml account. Maybe the same attack??

[–] gonta@mander.xyz 1 points 1 year ago (1 children)

I wonder who is behind this and what's the intention.

[–] LoafyLemon@kbin.social 2 points 1 year ago

Speznaz, probably. ( ͡° ͜ʖ ͡°)