How does federation actually work?
How does federation actually work?
...and why is it often PAINFULLY slow to acknowledge an up/down vote or to open the reply dialog?
How does federation actually work?
...and why is it often PAINFULLY slow to acknowledge an up/down vote or to open the reply dialog?
I've never admined a lemmy server but rate limits are probably why it feels slow.
Federation works by each server sharing new activity with each other and rate limits help not crash the server or accidentally DOS smaller servers.
Your server sends a message to other servers saying what you voted or replied.
A reply dialog being slow to open sounds like an issue with your client, not federation.
Huh. I'm just browsing Lemmy in a Firefox tab - and the reply dialog sometimes opens right up and other times leaves me wondering if I really hit that button! I wasn't sure if that was another thing where my instance had to "ask" the federation if I could reply before giving me the dialog or something.
I have no idea how any of this works. Im just happy to be here.
It uses activity pub, a protocol that allows servers to share content. So when you post on an instance, it became available for other instances to consume your content.
About slowness, it can be that your instance it being rate limited, or it is not powerful enough to process all its users. You can try another instance.
Activity pub documentation: https://www.w3.org/TR/activitypub/
If you're replying to a community on your home server, all actions should be similar levels of responsiveness, I think replying to another servers community may involve "some" active communication with the instance? Simple way to test this, if you are replying a lot on to another servers community, since you are browsing anyway, would be to just open the server/community directly and click around, if it's feels a bit slow, then that server is overloaded by a bit and that's probably the source of your issue. Otherwise we need someone with deeper knowledge in this thread.
Everything you do on your own instance is against a cached version of the original post that is saved on your instance. Your instance sends updates in the background, the other instance can be entirely down and you can still browse, comment, and vote as normal on your own. The updates will just stay local though.