News for hackers. Stuff that matters.
Re:Uber Eats Canada Ran Production in a MacBook Air by endisneigh on Wednesday July 12, 2023 @07:07PM (#36702884)
Legality aside I’d love how many people you could serve with $2000 worth of hardware (used or new) and a 1gbit up/down home internet connection With max p99 latency of 500ms.

It is strange that they didn’t at least use a Mac mini, but I assume they already had the hardware.

Re:Uber Eats Canada Ran Production in a MacBook Air by thequadehunter on Wednesday July 12, 2023 @07:34PM (#36703141)
I wonder if it's because the laptop sorta has its own built in UPS.
Re:Uber Eats Canada Ran Production in a MacBook Air by hot_gril on Wednesday July 12, 2023 @07:15PM (#36702968)
Built-in UPS and peripherals are nice advantages of a laptop as a server.
Re:Uber Eats Canada Ran Production in a MacBook Air by sedatk on Wednesday July 12, 2023 @08:02PM (#36703375)
The problem with a laptop is terrible cooling that you can't sustain high performance. They say new Macbooks are better in that aspect but didn't have a chance to try one.
Re:Uber Eats Canada Ran Production in a MacBook Air by hot_gril on Sunday July 16, 2023 @02:05AM (#36744125)
Yeah. M1/2 ones are a lottt better than Intel in this regard but still slower than the M1/2 MBP or mini.
Re:Uber Eats Canada Ran Production in a MacBook Air by euroderf on Thursday July 13, 2023 @03:49AM (#36706176)
Good point.
Re:Uber Eats Canada Ran Production in a MacBook Air by sedatk on Wednesday July 12, 2023 @08:01PM (#36703365)
I ran one of the popular web sites in Turkey on a AMD Duron 600Mhz 512MB RAM server until 2003. It used to serve 70 million pages per month on a Windows Server when it was retired. Because the site is a social platform, most of the content had to be dynamically generated too. I believe the PC had cost me around $500 when I bought it in 2000 or so, obviously a lower spec than even a Raspberry Pi4 today.
Re:Uber Eats Canada Ran Production in a MacBook Air by joiqj on Thursday July 13, 2023 @04:20AM (#36706334)
And then people started writing code in Python.
Re:Uber Eats Canada Ran Production in a MacBook Air by deterministic on Friday July 14, 2023 @08:21PM (#36731786)
Exactly. Developers seems to be hell bent on making software as slow as possible and/or maximising the cost of running servers. I bet that 99% of businesses out there could comfortable run on a single server with lots of RAM. With another servers on warm stand-by.
Re:Uber Eats Canada Ran Production in a MacBook Air by CSMastermind on Wednesday July 12, 2023 @08:10PM (#36703421)
It's more fun to try and figure out where the bottleneck would be.

Back in the early 00s I hosted websites on my local off the shelf Dell desktop on a cable internet connection.

Cloud computing wasn't really a thing and I didn't know better / have much better options (eventually I did migrate to some webhost bundled with the DNS registar).

For the longest time network bandwidth was my limiting factor. I remember finally upgrading my connection, NIC, etc. to the point where it was actually harddrive write speed that was the bottleneck.

Probably depends on your application but harddrive I/O does seem like a likely limiting factor to me today.

Re:Uber Eats Canada Ran Production in a MacBook Air by throwaway742 on Wednesday July 12, 2023 @09:24PM (#36703971)
SSDs are pretty fast.
Re:Uber Eats Canada Ran Production in a MacBook Air by kodah on Wednesday July 12, 2023 @09:39PM (#36704054)
Hardware wise, kinda depending on the characteristics of the app. Network wise, I've seen this tried. Commercial internet, even if it is symmetrical 1Gibps has nearly no SLA tied to it and is subject to traffic shaping. Not only could you be turned off at the companies whim if you began to saturate the points up to your demarcation point, but they could also traffic shape you for a time (or indefinitely). This all largely has to do with how internet telephone companies and cable companies categorize and pool traffic in their regions up to backbones.

Also save for the fact that commodity hardware lacks a lot of the hardware safeties a server does. For instance, your m.2 under sustained load would not perform at the same rate that an enterprise server hard drive can; we're talking on an order of 180MiB/s vs 550MiB/s per drive.

Re:Uber Eats Canada Ran Production in a MacBook Air by barbazoo on Wednesday July 12, 2023 @09:45PM (#36704097)
It seems that you might be assuming the entire stack ran on that laptop which is probably not the case.
Re:Uber Eats Canada Ran Production in a MacBook Air by endisneigh on Wednesday July 12, 2023 @09:47PM (#36704111)
I’m assuming it’s a service, so I’m curious how many people the Mac is responsible for serving. Of course more likely to be innocuous and maybe not in the serving path at all