Hacker News new | ask | show | jobs
by aragilar 3 days ago
Oh, 100% CDNs for JS shouldn't be a thing that's needed, but there's the other static content (video being the obvious example where this makes sense, but even audio might make sense if it is large enough), and having it closer to the user gives a more reliable service, given increased latency makes packet loss much more painful.
1 comments

You're still missing the point that the sheer majority of "static content" is the result of centralization. Video conferencing is the only real thing latency matters for, and a CDN can't help with that. If starting to play a video clip takes 10 seconds versus 1 second, that really only affects "engagement" (ie digital dopamine). Meanwhile I don't particularly care if a torrent takes all day to download as long as it's there by the time I want to watch it.
Except with video conferencing you would just assume packets are dropped and keep going (there's not much else you can do), but if you want to stream or download something then you do want all the data. Mirrors (which are really all CDNs are, and effectively what the machine a torrent is downloaded to as well) have been around for decades for good reason, because it means less wasted network capacity dealing with error handling (see e.g. https://en.wikipedia.org/wiki/TCP_tuning).
Sure, CDNs are an optimization. My point is that they're hill climbing within a local maximum. The thrust of my comments is a reminder to not get carried away trying to hyper-optimize within the local maximum.