Better HN
topnewbestaskshowjobs
Log inSign up

jay6282

6 karma · joined Dec 26, 2022 (3y ago) · 2 submissions

Submissions

comment 3y ago · link · parent

User-aware CDN would require scripting of some kind to handle sessions. However, if the data is not sensitive you could use random string uris to publicly available files. That way it is difficult to guess/brute force the url to the files. (sensitive=person identifiable data)

comment 3y ago · link · parent

The hard part of building a CDN is to know when you need it. 99.9% of all websites with CDN do not need it. Serving static files consumes so little resources that a single server can serve billions of users as long as you dont use script for serving the file. The most cost-effective with also the lowest latency solution is to never use CDN. If your webserver provider charge you a lot for traffic you are better off using another provider.