by michaelanckaert · 4y ago · 0 comments
The only way the fediverse (and by extension the internet) can remain healthy is by introducing more instances. "We don't need platforms, we need protocols."
The way Mastodon is evolving, thousands of users are concentrating on a couple of instances. What happens when a large corporation starts to "Embrace, Extend and Extinguish" again? What happens when a large instance decides to push out ads? Do we block that instance when it has 50.000 users?
I do think that's the way forward though, rather than a few big instances, but time will tell what the right percentage of the split is for good performance for everyone.
I have read the ActivitPub spec but not the Mastodon API - so I'm probably wrong on the following part.
Let's assume that we have 1000 users on a single server, posting a single message to those 1000 followers is writing a 1000 DB records (assuming a table with post - user link).
Let's assume we have one server with 500 users, and 5 other servers with 100 users each. We still write 500 DB records on the first server, and make 5 API calls to the other servers, which each write 100 DB records.
If the above holds true, the overhead is 5 extra API calls? At least, I hope Mastodon doesn't make API calls for every user on a server!
1000 new users on an existing server are 1000 app/browser instances making separate network connections and separate little queries to that server.
Whereas (I would hope) there are aggregation efficiencies in connecting a new 1000-user instance to the network.
Also remember there are certain optimizations in Mastodon. If an instance A generates a toot, but the toot has no followers on instance B, then B doesn't see it. However, an instance always processes a toot from its own directly connected user's browser or Mastodon application.
Sure… but then what?
I probably have the technical chops to setup an instance that won’t end up in a botnet in the first five minutes but that’s about it. No clue how to get people to responsibly (aka moderation) use it or even how to tell people there’s a new instance out there. Federation and all that, assuming there’s coordination between sysops in some way.
And judging by TFA the software is a dog so there’s non-trivial expenses involved. Or take a month to make my own implementation in C++ and have people accuse me of crimes against humanity because I don’t want to learn rust. Maybe there’s better options, dunno?
I assume this is all just backend stuff where people bring their own client?
I actually like figuring out how stuff like this works but “just run your own instance” isn’t helpful.
Admittedly, I haven’t even asked the google any of this but one thing I do know is I can’t afford to spend $1,800/month on anything that doesn’t generate significantly more income than that.
I just want a container or a small binary I can run on my server for myself.
Few: Akkoma? https://akkoma.dev/AkkomaGang/akkoma/ (elixir + postgres)
Few (alpha): GoToSocial? https://docs.gotosocial.org/en/latest/ (go + sqlite)
There's also honk - https://humungus.tedunangst.com/r/honk - which tends to do its own thing re: UI and terminology (go + sqlite)
Maybe PleromaPi - https://issueantenna.com/repo/guysoft/PleromaPi - if you've got a Pi lying around doing nothing (Akkoma is a fork of Pleroma)
https://docs.joinmastodon.org/admin/prerequisites/
(I don’t run one myself so would be curious if any admins have tips or suggestions.)
I have used rails in production for a company with decent traffic. It’s doable but it requires a lot of optimizations and the minimum starting requirement is high.
I think a Masto.host like model (the one Fosstodon uses) but with proper multi-tenant support and custom domain support is required for self-hosted mastodon to become a viable option.
(I have a desktop lying around unused. I’ll give another try with that but I’d probably have to measure the electricity usage and add an UPS)
As for me, I really don’t enjoy being a sysadmin in my spare time.
YMMV.