HNHacker News
TopNewBestAskShowJobs

jay6282

6 karma · joined December 26, 2022

submissionscomments
jay6282··on Writing a Mini-CDN to Learn Nginx/Prometheus/Grafana/Lua
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)
jay6282··on Writing a Mini-CDN to Learn Nginx/Prometheus/Grafana/Lua
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.