asset compilation
Turning source files such as stylesheets and scripts into the optimised files a web app serves.
In more detail
The twelve-factor app says to do it in the build stage. Compiling on first request uses local disk as a hidden cache: every new process pays again, processes may disagree, and a container starting under load is slowest when you need it fastest.
Related terms
- build, release, run — Three strictly separate stages: build turns code into a bundle, release joins it to one deploy config with an identifier, and run starts processes from a chosen release.
- stateless process — A process that keeps nothing it needs between requests in its own memory or disk, so it can be restarted or replaced at any moment.
Taught in
- Build, Release, Run And Processes — DevOps & Site Reliability Engineering