Take a bow, developers of kbin.social

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.

AucT,

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.

https://cdn.thenewstack.io/media/2018/05/3730357d-results-energy-time-and-memory-usage-screenshot-from-research-paper.png

Balemi,
Balemi avatar

PHP is fine. Lets not forget it's been used by the likes of Facebook, Wikipedia etc. which are much bigger websites then Kbin.

Kuiche,

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...

Datsourdo,
Datsourdo avatar

Lemmy is written in rust.

symfonystation,
symfonystation avatar

@AucT

@rgb_leds_are_love Kbin uses Symfony so it can scale as much as it needs to. Ernest knows what he is doing.

Kuiche,

Not sure why symfony is relevant. If it's stateless then yes, it can go horizontally as much as he likes. Question is, can he pay for it?

Symfony is solid tho. If I was to go back to PHP, that's what I'd use...

ernest,
ernest avatar

@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.

@rgb_leds_are_love @AucT

Sam_uk,
Sam_uk avatar

If someone can get a docker image up on Dockerhub then it should be fairly easy and accessible to spin up instances on elest.io

Kuiche,

IIRC Lemmy is Rust, Mastadon is Rails, Pleroma is Erlang. I'm not a huge fan that Kbin was PHP, but PHP is a lot better than it was. Presumably the dev is more capable with PHP and for basic web work it's fine.

What I think they should probably focus on is offloading some of the work for search etc. onto external services like Elasticsearch. As far as I have seen Mastadon is the only one that makes use of this. Maybe it's too expensive to run up other services like this though.

Lazycog,
Lazycog avatar

PHP today is amazing compared to the version 5.0 days, it persists because it is actively worked on and is very mature. Can't speak for symphony though, never tried that framework. Laravel is another nice framework for php.

symfonystation,
symfonystation avatar

@Kuiche

@rgb_leds_are_love @AucT Symfony works well with Elasticsearch. It’s strength is modularity.

jdp23,
jdp23 avatar

Fediverse servers are written in all kinds of languages. Mastodon is in Ruby (using Rails), Pleroma, Akkoma, and Bonfire in Elixir, GoToSocial is in Go, Misskey and Calckey in typescript (using Node). Whatever works!

EnglishMobster,
EnglishMobster avatar

Lemmy is Rust, adding on to this.

biscotty,

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?

Kuiche,

Not to mention that paper doesn't list the versions of those languages being used. PHP has some major performance improvements over the last few years.

anony-mous356,
anony-mous356 avatar

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

StaticBoredom,
StaticBoredom avatar

Early adoption of new tech usually requires a couple things from users, in my experience. Patience, and a willingness to contribute in whatever way you can. If Kbin, Lemmy et al can get an influx of users that bring at least one of these two things, we’ll go far.

That, and @ernest will need some kind of support from many of us.

lixus98,
lixus98 avatar

You can already contribute here! https://www.buymeacoffee.com/kbin

StaticBoredom,
StaticBoredom avatar

I most certainly did. Thx for spreading that link.

StaticBoredom,
StaticBoredom avatar

….and the fact that you’re even showing appreciation is a huge step in the right direction.

iByteABit,
iByteABit avatar

@ernest you're doing an amazing job, it's insane that all this is being ran by one person

Just out of curiosity, had you considered going with Rust like Lemmy instead of PHP?
What were your incentives for choosing PHP?

VulcanSphere,
VulcanSphere avatar

Here's Vulcan salute to @ernest and the whole kbin community!

rgb_leds_are_love,

And true to my word, I haven't opened Reddit since yesterday. Social media post-2008 was unsustainable and at someone else's expense (the investors). Now that they want their money back, social media will go to shit until better business models are developed.

Since the lockdowns of 2020, social media in the form of highly concentrated chat rooms became popular again (Discord, please don't become any more shit than you already are!). If social media will be going monke again, 1997-style, so be it.

I'm considering hosting my own instance. I have a spare Windows/Linux dual boot laptop. Mf can stay connected to the internet and sit right underneath my router. Lemme sift through the docs see what I can find.

PiedPipetter,

Another refugee here checking things out, figuring out how to share and interact. Boy I'd love to contribute on the development side by my coding expertise is definitely dated, lol.

noodlejetski,

*guy.

porn_alt,

Seriously. Keep up the good work. I've been trying to break into any of the Lemmy servers, but none of them have the smooth UX and seamless login you guys have brought.

doofdilla,

Yes i love the UX too. Incredible smooth and sleek

EnderWi99in,

I agree. How do I help fund their efforts? I want to make this thing buzz, and I have money to invest.

Noirezcent,
JamesMowery,

Thanks for putting this together. Love the fediverse!

Mastur,
Mastur avatar

Apparently it's just one guy running this site!

Pablo,

Damn, that's really impressive.

themadcodger,
themadcodger avatar

It really is. @ernest has done so much by himself in so little time. I'm hoping people who have the know how will step up and contribute code-wise to the project!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • PowerRangers
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • ethstaker
  • Youngstown
  • vwfavf
  • slotface
  • rosin
  • ngwrru68w68
  • khanakhh
  • kavyap
  • Durango
  • anitta
  • everett
  • mdbf
  • modclub
  • cisconetworking
  • osvaldo12
  • GTA5RPClips
  • tacticalgear
  • cubers
  • normalnudes
  • Leos
  • tester
  • provamag3
  • megavids
  • All magazines