this post was submitted on 01 Jul 2023
406 points (98.6% liked)

Programming.dev Meta

2365 readers
1 users here now

Welcome to the Programming.Dev meta community!

This is a community for discussing things about programming.dev itself. Things like announcements, site help posts, site questions, etc. are all welcome here.

Links

Credits

founded 2 years ago
MODERATORS
 

I've gone and made accounts of a handful of Lemmy instances, all of them larger, more popular ones.

... and I can't access any of them directly today, likely due to the influx of users from Reddit.

Programming.dev is alive and well though.

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

No, federation is directional, so even if everything synced perfectly and instantly it wouldn't be the true version. Take this example. There is an instance that is federated with no one, but every instance is federated with it. Every other instance would see everything there but the instance it is hosted on wouldn't see any. There's no reason to say the version hosted there is the true one when it lacks so much of the conversation.

Also comments can lag when syncing to the main instance in the same way they can lag coming from the main one. All you can really say is that when viewing a post on an instance it has the true version of all of that instance's users comments.

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

Thank you! Really easy to understand

Let me ask you another question, where are my comments stored? Are they only in my instance or are they elsewhere too?

Lets say i comment on a post from my instance, if someone from another instance sees the post will il be replicated in their instances database?

What if i comment on another instances post? Will my comment be stored in the other instance database or in mine?

What if i delete a comment/post? Am i guaranteed in Will be deleted everywhere?

[–] [email protected] 4 points 1 year ago

My understanding is that everything you do is first stored on your instance and then makes its way to instances that are federated with yours. I'm not sure about the specifics of it or deletion though. I haven't doved into the spec. Because it is called ActivityPub I bet it is the "pubsub" (publisher subscriber) pattern where other instances subscribe (federate) to be published to but it might not work like that.

This is why when you're the first user on an instance to subscribe to a community from another instance that no one on your instance has subscribed to yet it is somewhat more of an involved process because your instance was not getting anything from that community before and needs to start. I'm still new to this myself and basing it off stuff I've read people say who may also be wrong themselves though.