3 ms·
Or you could simplify the whole thing and just host it yourself. It isn’t worth that level of complication.
by afavour 3y ago
Or you could simplify the whole thing and just host it yourself. It isn’t worth that level of complication.
- alzoid 3y agoIn this situation server bandwidth was an issue. Using an available CDN with the fall back was what we decided to do. It's not that complicated, from the client check if the object you expect to exist in the library exists, if not load it from your server.
- afavour 3y agoI’m curious, in what scenario was bandwidth for static resources an issue? It’s one of the most trivial things to serve cheaply.
- alzoid 3y agoWhen the server is behind a pipe of limited size. When most of your new visits happen all at once over a short period of time. When you can't rely on a mobile phones cache like a desktop because 90% of your visitors are using one. A CDN is a easy win to off load resources, even if they are small.
- afavour 3y ago> A CDN is an easy win to off load resources, even if they are small. Yes and setting up your own CDN config (Cloudfront, whatever) is minutes of work and brings all of the benefits you’ve outlined. And costs pennies.