this post was submitted on 21 Jul 2023
76 points (92.2% liked)

Fediverse

28396 readers
600 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
 

What are you thoughts about this?

you are viewing a single comment's thread
view the rest of the comments
[–] cerevant@lemmy.world 30 points 1 year ago (6 children)

I'm not sure ActivityPub is suitable for implementation of Lemmy/Kbin. ActivityPub seems to be a push (with retry) protocol, where if a message gets lost, the protocol doesn't seem to have a means to recover synchronization. Theoretically, instances could verify synchronization on a periodic basis, but that would be a massive increase in traffic.

[–] lackthought@lemmy.sdf.org 6 points 1 year ago (4 children)

I haven't looked at the specs but it is similar to UDP vs TCP?

[–] cerevant@lemmy.world 8 points 1 year ago (3 children)

Kind of. My observed behavior of Lemmy, combined with comments from some developers (I haven't read the code):

Post goes up on community hosted on instance A, Message goes out to B and C: "here's a new post"

User x@B comments on post. Message goes from B to A saying "here's a new comment". A adds the comment, then sends a message to C "here's a new comment"

User y@C upvotes the comment. Message goes from C to A, then A sends a message to C.

Each of those messages are confirmed by the recipient, and there are timed retries. However, there have been plenty of cases where one of those messages get lost, and the communities get out of sync. As I understand it, the message traffic is only changes. They don't talk to each other to see what the current state of the content is. So whenever a sync break happens, it is permanent. New content/changes are fine, but stuff that gets lost in transit is lost for good.

[–] redcalcium@c.calciumlabs.com 4 points 1 year ago (1 children)

At least for Lemmy, you can "force" it to sync a particular post or comment by pasting the url into your instance's search bar.

[–] cerevant@lemmy.world 3 points 1 year ago

Interesting - TIL. I wonder how Lemmy resolves the post #, since it is different between instances, and if it re-syncs comments when you do that. The post # thing is annoying, btw, because it makes it impossible to use relative links in posts/comments.

load more comments (1 replies)
load more comments (1 replies)
load more comments (2 replies)