retiolus@lemmy.cat to Lemmy@lemmy.ml · 3 years agoHow does federation work?i.ibb.coimagemessage-square35linkfedilinkarrow-up141arrow-down10
arrow-up141arrow-down1imageHow does federation work?i.ibb.coretiolus@lemmy.cat to Lemmy@lemmy.ml · 3 years agomessage-square35linkfedilink
minus-squaremycus@kbin.sociallinkfedilinkarrow-up0·3 years agowait, so if you federate with another instance through one community, you won’t get to see the rest of the feeds from that instance? would subscribing to the domain directly (like kbin allows, maybe lemmy could in the future) reduce the number of actions to 700^2?
minus-squareMartineski@lemmy.fmhy.mllinkfedilinkarrow-up0·3 years agoSorry! My bad, numbers are incorrrect but I’m not sure how to calculate correct numbers lol. Wouldn’t it be 700x699 or 699x699 because instance wouldn’t have to federate with itself?
minus-squaremycus@kbin.sociallinkfedilinkarrow-up1·edit-23 years agooh yeah, it is n * (n - 1) bc ~700 bots need to do ~700 minus 1 actions a continue inside an if statement checking if the bot domain is the same as the subscribing one would suffice or use a search algorithm to pop the element from the stack before starting the loop, that would be more efficient
wait, so if you federate with another instance through one community, you won’t get to see the rest of the feeds from that instance?
would subscribing to the domain directly (like kbin allows, maybe lemmy could in the future) reduce the number of actions to 700^2?
Sorry! My bad, numbers are incorrrect but I’m not sure how to calculate correct numbers lol. Wouldn’t it be 700x699 or 699x699 because instance wouldn’t have to federate with itself?
oh yeah, it is
n * (n - 1)bc ~700 bots need to do ~700 minus 1 actions
a
continueinside anifstatement checking if the bot domain is the same as the subscribing one would sufficeor use a search algorithm to pop the element from the stack before starting the loop, that would be more efficient