WebApps - gdamjan/gdamjan.github.io GitHub Wiki

How not to make your System Administrator angry when writing web (and other) applications.

a WebApp has the following resources:

on the file-system

  • read-only code
    • including read-only templates
    • read-only public static files (images, css and js)
  • read-only config file
    • not public, also secrets
    • shouldn't be in source revision control
  • read/write public files (optional, things users upload)
  • read/write temporal state (caches, sessions; can be a database, files, memcache…)
  • read/write persistent storage (usually a database)

runtime

  • working directory
  • user/group id
  • ulimits/priorities/io scheduling…
  • stdin/stdout/stderr/logs

Examples

⚠️ **GitHub.com Fallback** ⚠️