News for hackers. Stuff that matters.
Re:Go with PHP by marcus_holmes on Thursday May 11, 2023 @03:45AM (#35899078)
> It can handle more than 500,000 orders per month

Hilarious because other languages are capable of that per minute not per month

Re:Go with PHP by hakube on Thursday May 11, 2023 @04:34AM (#35899426)
on a $6/month server. Are we also losing the ability to read now because of AI?
Re:Go with PHP by alexriddle on Thursday May 11, 2023 @04:06AM (#35899234)
What stack can handle 500,000 orders per minute - 22.3 billion a month - on a $6/month server?
Re:Go with PHP by callahad on Thursday May 11, 2023 @05:34AM (#35899827)
Most of them? 500k per minute is around 8k reqs/sec. $6 will get you 2 vCPU, so each CPU only needs to handle 4k requests per second.

I'd at least expect that to be possible in Node, and would be somewhat surprised if a Go or Rust framework didn't hit that mark.

Re:Go with PHP by cutler on Thursday May 11, 2023 @06:34AM (#35900255)
Maybe with "Hello world" in Node but not orders. Business-grade Rust web framework? Give me a break.
Re:Go with PHP by jeroenhd on Thursday May 11, 2023 @06:55AM (#35900409)
I think 4k requests per second is quite ambitious even for native languages or garbage collected languages like Go.

Hello world will work, but once parsing, validation, and database queries get involved, you'll need some beefier hardware to get those numbers.

I can't get the cloud benchmarks for 2022 to work (a dedicated PowerEdge is the standard physical benchmark and that's not very realistic here), but according to these benchmarks: https://www.techempower.com/benchmarks/#section=data-r20&hw=... you're going to need some very optimized code to get close to 8k reqs/s.

Re:Go with PHP by marcus_holmes on Thursday May 11, 2023 @08:47PM (#35910417)
OK, 10 minutes then ;)

My point was that the article quotes orders per month, while other systems are quoting requests per second. I found it funny that they tried to mask the low speed by using big numbers.

Re:Go with PHP by cntrl on Thursday May 11, 2023 @04:02AM (#35899189)
500,000 orders per minute on a $6/month server? Which language is able to achieve that?
Re:Go with PHP by zer0tonin on Thursday May 11, 2023 @05:38AM (#35899859)
Go
Re:Go with PHP by cutler on Thursday May 11, 2023 @06:37AM (#35900273)
If you're going to pull numbers out of a hat at least provide some evidence, especially evidence based on a comparable workload.
Re:Go with PHP by zer0tonin on Thursday May 11, 2023 @12:14PM (#35904318)
I actually wrote a whole article about this myself: https://alicegg.tech/2023/02/06/4dollar-vps.html

TL;DR: go can handle 1000+ RPS on a ridiculously small server

Re:Go with PHP by tredre3 on Thursday May 11, 2023 @07:29PM (#35909766)
But creating an order isn't just a request. PHP will also handle 1000 RPS of hello world just fine on a 4 dollars VPS.

Maybe (probably) Go is still faster than PHP, but the hyperbole is being pushed a bit too far here.

Re:Go with PHP by 00deadbeef on Thursday May 11, 2023 @07:00AM (#35900451)
And what about the database?
Re:Go with PHP by MarvinYork on Thursday May 11, 2023 @04:03AM (#35899201)
I think the point was the $6/month server here.