Yeah i guess you could look at it that way. Each instance would have to scale horizontally to handle the load, which is waste.
I could be wrong, but my understanding is that ActivityPub is just a rest api contract that one can implement in order to communicate with the rest of the “network”. Its simple, but its such massive overhead to do this all via http. Pushing all your instances events to a dedicated stream and letting the other instnaces read it can be more performant and handle the load better. The downside though is who controls the streams?
IRC is the OG of federation, i am sure we could learn something from it and have federated networks that are in turn federated with eachother. I dunno, just thinking out loud here.
wisdomchicken@piefed.social 1 day ago
i ddos my wordpress-activitypub-enabled website every time i boost a post made from there to my 10k followers. tried every single caching plugin for it as well.
activitypub scaling is a very real issue
rimu@piefed.social 12 hours ago
Cloudflare caching can solve this. Cache based on the user agent.
poVoq@slrpnk.net 1 day ago
ActivityPub is designed to scale well for millions of users with a low number of subscribers each (dunbars number and so on). It is not designed as a mass media publishing tool where a few have tens of thousands or even millions of followers.
I consider this a feature, but feel free to disagree.
INeedMana@piefed.zip 1 day ago
It gets DDOSed because after the boost, all the subscribers’ instances are calling it to retrieve the content?
Do you think a load balancer might help?
chilicheeselies@lemmy.world 1 day ago
OP would have to have their wordpress site running on multiple instances to leverage that. It would work, but now they are paying for more infrastructure.
INeedMana@piefed.zip 1 day ago
Yes, but those could be just “read instances” spinned up by a peak in requests at load balancer. Not running all the time