Hats off, guys. I can’t even imagine how hard it must have been for you guys to keep kbin.social up and running since yesterday.
As a recent refugee from Reddit, I promise to wind down my use of Reddit until such a time as/if when they get rid of their API restrictions. I promise to play my part towards the newly forming community here and create content for the community at large.
I don’t understand why all fediverse CMS written in php.
If authors used go/rust/java it should handle lots of users much easier.
Imo tools that has purpose to serve thousands of concurrent users should consider energy efficiency.
@rgb_leds_are_love Kbin uses Symfony so it can scale as much as it needs to. Ernest knows what he is doing.
@symfonystation Yes, I don’t think php is the problem here. It’s rather about devops matters, in which I am completely inept. But I have already sought help, I just need a little more time.
PHP is fine. Lets not forget it’s been used by the likes of Facebook, Wikipedia etc. which are much bigger websites then Kbin.
Kinda. PHP is fine for web workloads. Don’t forget Facebook tried to move off PHP and wrote Hack/HHVM because of the performance. It just happens that PHP 7 was faster.
I’ve not looked at the codebase, but there are probably some routines (search) that could be done faster outside pure PHP/Postgres.
The dev seems to have done a pretty good job with this though, performance issues are likely server load more than the stack. Not sure what he’s running this on…
If as the link suggests this is from 2018 a lot (!) has changed at least in the JS world and the Python world. Can’t speak for the others. Would be nice to see the underlying paper to see how the author defines the measurements, ie whose time is being measured, system (speed), development?
This person (link below) is creating a nice reddit alt using Rust. I know its Rust because I spoke with them. I think this php site can work very efficient with proper caching, file storage (storing images and videos elsewhere), and db optimization. I think Flask/FastAPI is quite fast as well. I ran a small site using flask with 250 concurrent users using light calculations for the backend a couple years ago on my home server and it still loaded extremely fast. I am seriously curious what sort of server or shared hosting this site is being ran off of, because one article every 15min to an hour makes me believe its not extremely bogged down with traffic, yet its still not performant. Maybe its a host issue of being ran using a slow shared hosting service, idk.
https://www.reddit.com/comments/13x0hzo