this post was submitted on 29 Dec 2024
76 points (95.2% liked)

Fediverse

29634 readers
721 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 [email protected]!

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 2 years ago
MODERATORS
 

Let's say we have lemmy instances A, B, C.

alice from A makes a post "Hello, world" to B. What happens? How is it processed on servers A, B, C and how do users from A, B, C receive her post?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 1 month ago* (last edited 1 month ago) (2 children)

Thanks but this is quite high-level.

Okay, so Alice makes a request to A. A makes a request to B. B makes requests to all other instances.

If you get posts from your home instance, does it mean that all instances duplicate the same database?

[–] [email protected] 3 points 1 month ago (1 children)

They don't duplicate the database in a technical sense, but when things go right, they each have a copy of the same post and comment text, and the same votes.

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago) (1 children)

Do you mean that the database is not identical, but still duplicates all data, basically? (you said "they each have a copy", I assume it's persistent on disk). So if we have 100 lemmy instances, they all save the same post.

[–] [email protected] 3 points 1 month ago

Correct. Each server that shows the post to its users stores a copy of the post. It does not necessarily store attached media (IIRC Mastodon usually does and Lemmy usually hotlinks media).

[–] [email protected] 1 points 1 month ago

If you get posts from your home instance, does it mean that all instances duplicate the same database?

Ur home instance only has a database of posts that are on a community that at least 1 user has subscribed to.