this post was submitted on 23 Nov 2023
98 points (98.0% liked)

Fediverse

28224 readers
453 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

It kind of makes me think of how odd it would have been if many of the old forums named themselves like bookclub.phpbulletin.com, metalheads.vbulletin.net, or something.

There's nothing wrong with doing that, obviously, but it's struck me as another interesting quirk of fediverse instances/sites. Generally as soon as you visit them you can tell by the site interface or an icon somewhere what software they're using.

you are viewing a single comment's thread
view the rest of the comments
[–] CrayonRosary@lemmy.world 35 points 11 months ago* (last edited 11 months ago) (3 children)

Because Lemmy is bigger than one domain. If it were just one domain it would be Lemmy.com, but since it's federated, the names must be different, but you still want people to know it's a Lemmy instance because they all interoprate.

"Hmm, what's bajesus.com? Oh, its a Lemmy instance. What's lemmy.bajesus.com? A Lemmy instance, of course."

Lemmy is a technology where each instance follows the same rules: a compatible federation API. You want people to know your website is a Lemmy instance.

A bulletin board might one day change to entirely different back-end and migrate all of the posts and users. That's highly unlikely you're going to do that with a Lemmy instance. It will always be a Lemmy instance or it will go away. You're not going to migrate the content and users to some other technology. And even if you did, you can buy a second domain easy peasy!

[–] rglullis@communick.news 4 points 11 months ago (2 children)

you still want people to know it’s a Lemmy instance because they all interoprate.

No, no, no. I don't care that the server on the other side is running Lemmy, kbin, mastodon, wordpress or some dude running his own scripts. The only that should matter is that everyone uses the same protocol. The server should be nothing but a detail.

That’s highly unlikely you’re going to do that with a Lemmy instance.

If this whole threadiverse thingie ever takes off, It's highly likely that Lemmy will not be a good fit for the majority of users. We will likely have servers working only to validate and relay messages from clients, and data will be fully distributed (instead of replicated to every instance). Any substantial growth will quickly show the limits of the current architecture.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

You do care, though. Mastodon is a social network. You want to know if this server is part of that social network. Lenny is the same, even if "social network" doesn't apply to it in the traditional sense.

Not all the networks on the fediverse interoperate, and that's not even the goal with activitypub. All servers of the same network should interoperate, but Pixelfed doesn't and shouldn't need to integrate with Lemmy, for example.

[–] rglullis@communick.news 3 points 11 months ago (1 children)

You want to know if this server is part of that social network.

Hard disagree. There are no separate social networks, and it is not the software that makes the network. That is the whole point of the Fediverse. I shouldn't care about the identity of the servers, all I should care is about the having a common language and a way to identify the actors.

If a user can not post a picture on Pixelfed and other people can not vote on it, then it's a shortcoming of the software, not an integral quality of the system. I could switch my Lemmy server to, e.g. Takahe with extensions to support voting and you would be none the wiser.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

Idk what to tell you then. Not only is that not how activitypub works, not all fediverse networks even use activitypub. Idk where you're getting your definition of fediverse, or how you think that's even possible. You can't have every app/network support every feature of every other.

Imagine I make a fediverse MMO turn based RPG. How is a Lemmy app support to present that? How am I supposed to consume that from a mastadon server? Mastadon shouldn't need to support turn based MMORPGs, and MMORPGs shouldn't need to support streaming video.

There is not only is there no common API for fediverse networks, there isn't even a common protocol.

[–] rglullis@communick.news 1 points 11 months ago (1 children)

How is a Lemmy app support to present that? How am I supposed to consume that from a mastadon server?

You don't.

There is no place that says that a client needs to process every message that is received on an actor inbox. It doesn't mean that one client should support only one specific type of activity, or even servers for that matter.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

Maybe I don't understand your position then.

Fediverse doesn't make any claims for SSO or shared user accounts between server types. And servers aren't required to interoperate with servers of other types. And clients aren't required to interoperate with multiple server types.

It's nice when servers and client do Interop between types (what I'm calling networks for lack of better word), but that's not really fundamental to the fediverse, and is pretty rare. Afaict the only requirement is that servers of the same type can interoperate with eachother and user accounts from other servers of the same type are addressable.

[–] rglullis@communick.news 1 points 11 months ago (1 children)

server types

That is the problem. Assuming that we need different "server types" is a mistake made by Mastodon that benefitted them in the short term but screwed the developers who were looking at activitypub as a simple protocol for bidirectional exchange of data.

What we need is smarter clients and let the servers be completely dumb relays. Instead of thinking of "Mastodon API" or "Pixelfed API" or "Lemmy API", we could be looking at a single browser extension that could talk Activity Stream directly with the server, let the client be responsible for signing messages and know how to present the context when/how to serve the different activity types.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

Isn't this just the difference between an API and a protocol?

The payload of a message for one social network will be different based on the capabilities of that type. There are API architectures that are discoverable, like HATEOAS, but that only gets you so far (and that example is based on HTTP not Activitypub).

I don't really see anything wrong, in the absence of a standard body, for each social network to define its own activity type, since they typically have some degree of unique capabilities anyways.

[–] rglullis@communick.news 1 points 11 months ago (1 children)

Isn’t this just the difference between an API and a protocol?

Maybe? I don't know. Is that a relevant distinction on a decentralized system where the application logic can live on whatever side of the network?

There are API architectures that are discoverable, like HATEOAS, but that only gets you so far

Because they are constrained by the "client-server" paradigm. If you spend some time working with decentralized apps that assume that data is available to any nodes on the network, all your "protocol" really needs to do is to provide the primitives to query, pull and push the data around. I kinda got to write about it on an old blog post

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

I think it's still relevant. I mean... It's turtles all the way down, but applications on equivalent layers need to share a common API.

I don't think it's reasonable to ask voluntary instance hosts to pay for bandwidth and storage for networks they don't want to host, so mirroring the all Activitypub on all servers doesn't seem reasonable, especially if any of the networks take off on popularity. Imagine if every single fediverse instance of any type needed to be twitter-scale just because some instance of mastadon took off.

I think it's correct for servers of a specific network/type to only subscribe to messages of the type they care about, as a purely practical matter. It'd be nice if there was a fediverse standard used to announce capabilities, along with standards for common capabilities and restrictions, but there is none that I'm aware of.

[–] rglullis@communick.news 1 points 11 months ago (1 children)

storage for networks they don’t want to host, so mirroring the all Activitypub on all servers

In my dream world, servers are only relays. They don't store anything, unless it wants to keeps a copy for one of its clients, like POP3.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago (1 children)

In my dream world, servers are only relays. They don’t store anything That sounds a lot like an ISP, except an ISP can relay anything, not just activitypub, which makes it even better. unless it wants to keeps a copy for one of its clients ISP plus a CDN :p

for the same reason that ISPs don't solve the need for servers and serverside storage, moving all your storage to the edge is usually a bad idea. You're basically describing a serverless P2P social network, but with it comes all of the pitfalls of strictly-p2p apps. mainly, searching becomes prohibitively expensive, and if your client goes offline (eg you need to go on an airplane or your phone runs out of batteries) reliably catching up can be problematic. How would this work for PeerTube, for example. would ever client that cared about peertub need to keep a copy of every peertube video on every peertube server, just in case you wanted to search it? My phone would fill up instantly. Would my phone just save an address to look up the video from the original author's personal device? not only does that sound like a security nightmare, but also RIP to the author's data usage caps if they published from their mobile device.

I think that servers are needed. IDK if we need servers to partially mirror eachother like mastadon does, but i think that hosting the content on the servers themselves is the right practical move. and given that we're more or less boxed into a federated server-client architecture, then I think that we're getting it as good as we're going to get, until we choose some standards body to govern how to expose capabilities.

I do think that the right approach is to have a discoverable API where clients can discover what capabilities a certain piece of content has, and what those capabilities mean. Just like how javascript feature detection is far better than user agent detection, servers can integrate with any social network that supports some minimum set of capabilities, and clients can present all capabilities to the user (while ignoring unsupported capabilities) regardless of originating social network. but we're not there yet, we need that standard first, and major players need to agree on it.

[–] rglullis@communick.news 1 points 11 months ago (1 children)

That sounds a lot like an ISP,

No, that sounds exactly like Nostr, which is a lot more practical and cheap to run that a Mastodon server and actually scales quite well.

moving all your storage to the edge is usually a bad idea.

No. You just need to move the application state to the edge. Storage itself can still be in content-addressable data servers, like IPFS, magnet links or plain-old (S)FTP servers.

When someone posts a picture on Mastodon, the picture itself is not replicated, just a link to it. Now, imagine that your "smart client" version of Mastodon (or Peertube, or Lemmy) wants to post a picture. How would it work?

  • User posts the photo to an IPFS server. It could be a cloud server or it could be their own NAS they have it running at home.
  • The uploaded photo generates a hash.
  • Client takes the hash of the photo and puts in the message.
  • Client signs a message and send to the server
  • Server receives the message, processes it (index metadata, puts the image in its cache to help with seeding, etc)
  • The server has a policy of keeping the image in the cache in the outbox until it has been delivered to at least 70% of the other clients or 5 days, whichever happens first.

I think that servers are needed.

If by "servers" you mean "nodes in the network that are more stable and have stronger uptime/performance guarantees", I agree 100%. If by "servers" you mean "centralized nodes responsible for application logic" then I'd say you can be easily be proven wrong by actual examples of distributed apps.

[–] PeriodicallyPedantic@lemmy.ca 1 points 11 months ago

Looking at nostr, I generally like the architecture, although the it's very similar in broad strokes.

I like the simplification and separation of the responsibilities. I don't like using self signing as an identification mechanism for a social network.

But crucially it seems like it has the same problem we're discussing here, wrt different social networks based on that protocol, having different message schemas and capabilities, making them incompatible.

[–] CrayonRosary@lemmy.world 1 points 11 months ago* (last edited 11 months ago) (1 children)

Uh, OK. I have a Lemmy client on my phone. It doesn't work with anything else you mentioned. Those are different apps with different features. I need to know if a server is a Lemmy instance, not Mastadon, etc.

[–] rglullis@communick.news 4 points 11 months ago
  • This is for you to connect with your server, not for people who are interacting with you via your server.

  • Clients can be made to work with different servers. e.g Soapbox can work with both Pleroma and Mastodon servers.

  • My server's name is communick.news . Can you tell that is a Lemmy instance by looking at its name? You can go look at the API and see that it responds as being a Lemmy server. What if I told you that someone could take another software like GoToSocial and implement Lemmy's API to make it usable for both microblogging and link sharing? This is perfectly possible, and wouldn't need to know or care what is behind the API

[–] ALostInquirer@lemm.ee 3 points 11 months ago (1 children)

Lemmy is a technology where each instance follows the same rules: acompatible federation API. You want people to know your website is a Lemmy instance.

I kind of see where you're coming from, and I think the reason I wasn't thinking of it in those terms is that I see ActivityPub as the more important underlying tech across the fediverse than say Lemmy/Mastodon/Friendica/etc.

I say that in part as I've come into the fediverse from Mastodon, where there's more than two options in play, e.g. Akkoma/Firefish/Misskey/Pleroma/etc. each of which has some commonalities, but also some pretty distinctive features, particularly from the Misskey side. Hell, Mastodon itself even has Glitchsoc, which is what the original instance I joined on that side of things runs.

On reflection, I don't know that the microblogging instances mix in the name of the software they're using as much, which you'd think with more options they might be inclined to, but the more I think of it the more I remember a lot of them use some fun, odd names instead.

[–] PeriodicallyPedantic@lemmy.ca 4 points 11 months ago

Activitypub is the protocol. Mastadon/Lemmy is the API. Just because two applications share a protocol doesn't mean they can talk to eachother.

The Spotify app uses the HTTP protocol, like your browser does, but that doesn't mean you can view any webpage from the Spotify app. Idk if activitypub is actually a protocol, but it is at least analogous.

While it makes sense for apps/networks of a similar type to interoperate (like microblogging), apps/networks of different types may not make sense to integrate.

So for servers on the same network/app, it makes sense to include it in the server name, so that people know what app/network it belongs to.

[–] intensely_human@lemm.ee 2 points 11 months ago

Also the practice of using a subdomain to indicate which program is running is pretty old. That’s what the www subdomain on so many websites is.