by sudosysgen · 3y ago · 0 comments
As far as I'm concerned there aren't any core issues. There are a lot of queries to a single DB which is one the same server, but there's nothing preventing you from running the DB on another server and sharding it if need be. I wouldn't call that a core architectural issue because the way you set up your DB is not core to the architecture.
Yes of course in theory you can beef up any instance, and shard, and add a caching and queueing layer while you’re at it. And tada you’ve just redid Reddit.
As the ecosystem grows, a shortlist of popular, robust, federated instances will crop up for people who just don't want to bother.
Again, if you have any core flaws, I'm all ears.
I didn’t say it did, but it doesn’t enhance it either.
> As the ecosystem grows, a shortlist of popular, robust, federated instances will crop up
How short is a shortlist? When does that mean just new Reddit?
I suppose I would be more enthused if at the least the basic design eased standing up high traffic (or let’s be honest even mild traffic) instances. The performance story right now is: it’s written in rust - which is not nothing but it would be more interesting if supporting even a moderate amount of traffic on minimal hardware was an architectural priority. The flaw as I see it is that this is just not a design goal.
https://github.com/LemmyNet/lemmy/issues/2877
https://github.com/LemmyNet/lemmy/issues/2910
You can argue that things can be improved but initially well engineered systems help to enhance initial mindshare.
The performance story isn't just that the backend is written in Rust. It's also that the front is very lightweight (80kB), that the architecture is horizontally scalable, etc...
I don't see in any of those links a core flaw, a problem in the initial engineering that makes it impossible for the architecture to scale. All I see are some poorly written queries, for which the main devs made a root cause analysis and described how it can be fixed. Is that evidence that the inherent design isn't capable of adequate performance? No, it isn't. It's evidence that there are some small performance gotchas that can be fixed easily, and this is normal for an ambitious project.
But even as it is, yes, it can handle mild traffic. lemmy.ml runs on potato hardware, hexbear.net is an example of an instance which has ~3'000 comments a day, which is roughly the scale of this website, and it runs fine on a single dedicated server.