this post was submitted on 06 Jul 2025
45 points (94.1% liked)

Ask Lemmy

33141 readers
1393 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them


2) All posts must end with a '?'This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?


3) No spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either [email protected] or [email protected]. NSFW comments should be restricted to posts tagged [NSFW].


5) This is not a support community.
It is not a place for 'how do I?', type questions. If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email [email protected]. For other questions check our partnered communities list, or use the search function.


6) No US Politics.
Please don't post about current US Politics. If you need to do this, try [email protected] or [email protected]


Reminder: The terms of service apply here too.

Partnered Communities:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS
 

So like, how does Lemmy work?

When I click on a post, let's say Lemmy.World, that server sends me the page over the Internet. I get that part. But how does it do comments? Does it tell my phone to go ask lemm.ee and blahaj servers, etc, and fetch the comments?

And why does a post on lemmy.world have have a blahaj URL when I look at it? Is my server making a copy?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 2 days ago (1 children)

Here's the basics:

Pretend that there's only three lemmy servers in the world, lemmy1/lemmy2/lemmy3.

At first they will be completely isolated and they won't talk. Until a user of lemmy1 searches for a community on lemmy2, for example [email protected]. lemmy1 will see that that community belongs to another server, reach out to it and ask for info. The user of lemmy1 will see that the community exists but not much else and unless they subscribe, not much else will happen.

But if they do subscribe, then the lemmy1 server will reach out to the other and tell them that the user subscribed. From then on out anytime anything happens on [email protected] the lemmy2 server will send a message to the lemmy1 server which will save a local copy. Any time a lemmy1 user comments or votes on content in [email protected] the lemmy1 server will similarly send a message to the other server.

So let's say something similar happens with a user on lemmy3 subscribing to that community. Then a user on lemmy1 makes a post to the lemmy2 community. The lemmy1 server will send a message to lemmy2 which will record the post and display it to its users, and then it will send a message to lemmy3 that there's a new post in the community so that their users can see it too.

[–] [email protected] 2 points 2 days ago (1 children)

So the size of the home server grows over time as it stores text comments from other places it federates with.

One thing I'm confused is if Lemmy1 and Lemmy3 aren't subscribed to each other, but they both comment on a thread on Lemmy2, will they see each other's comments?

[–] [email protected] 3 points 2 days ago

The size of all involved instances grows since they all store a copy.

if Lemmy1 and Lemmy3 aren't subscribed to each other, but they both comment on a thread on Lemmy2, will they see each other's comments?

Yes, when lemmy2 receives a comment from an outside instance it will then send that comment to all subscribed instances.