News for hackers. Stuff that matters.
Re:The GitHub website is slow on Safari by zozbot234 on Wednesday August 27, 2025 @10:52AM (#45040527)
They're not even saving any money. Syntax highlighting is a trivial workload, whereas the average SPA spends a lot of time in pointless roundtrips that have the server send more data down the pipe than the SSR equivalent.
Re:The GitHub website is slow on Safari by sidewndr46 on Wednesday August 27, 2025 @11:28AM (#45041038)
I'll play devils advocate - does it save them some storage space or bandwidth in the CDN that delivers Github?
Re:The GitHub website is slow on Safari by Asmod4n on Wednesday August 27, 2025 @12:31PM (#45041845)
That's a good question, without looking into any of the code id say bandwidth cost goes higher when moving away from server side rendering since you have to send the code for client side rending to each client which connects.
Re:The GitHub website is slow on Safari by scrollaway on Wednesday August 27, 2025 @10:43PM (#45047755)
Sending data is what’s trivial compared to compute… syntax highlighting is not trivial workload compared to that, you don’t know what you’re saying.
Re:The GitHub website is slow on Safari by sgarland on Thursday August 28, 2025 @08:47AM (#45051527)
You say that, until you’re one of the unlucky people who discover that cloud DBs are just cloud VMs in disguise, and those cloud VMs have network throughput limits.

A fun part of a retro at my company last year was me explaining to a team, “had all of your pods’ requests succeeded, the DB would have been pushing out well over 200 Gbps, which is generally reserved for top-of-rack switches.” Of course, someone else then had to translate that into “4K Blu-Rays per second,” because web devs aren’t typically familiar with networking, racks, data centers…

Re:The GitHub website is slow on Safari by scrollaway on Thursday August 28, 2025 @10:36AM (#45052720)
Serving static files off highly efficient, distributed CDNs is a solved problem. There's no "4K blu-rays per second" when you're talking about gzipped, highly cacheable text data.

If github has a million users visiting it per day on a FRESH cache, and all of them have to download at least 10 megabytes of text data (both of these numbers are far too high), you are at ... 0.015 "4k blurays per second". Yeah I think MS's datacenters will survive.

Re:The GitHub website is slow on Safari by zozbot234 on Thursday August 28, 2025 @11:03AM (#45053088)
A single-page app is not serving "static files". It might serve an initial bundle, but literally everything after that is dynamically generated. There's no way you could serve those responses via a CDN.