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?
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?
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?
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.
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.
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).
Ur home instance only has a database of posts that are on a community that at least 1 user has subscribed to.