Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I assume various options to the look and functionality could be added and having the request go to an application as opposed to a static file first allows that opportunity. In addition, there is nothing stopping them forwarding the request to a cached result on a CDN.


But the current version is just an imaged coded on the fly and compressed on the fly.. It's burning CPU for no real reason.

If you want flexibility for future you can use a CDN path that includes options you want and later could switch to code the makes the requested image and caches result, returning the cached result.

I imagine the concept is to code the service for fun but I have to wonder to myself when something like this is shared but no concept of scale is considered. I know premature optimization is the root of all evil but isn't building a service to serve a static image basically premature optimization that "maybe some day I'll add more dynamic features".. :-)


GitHub already caches into a CDN, so it just takes once.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: