Polyglot Design Patterns for the Adventurous
summary
Describes deploying a WSGI Python app into nginx unit — a single binary that runs Python 2.7 and 3.9 side-by-side, PHP, Go, Ruby and more, serves HTTP/TLS, and replaces separate process managers. Configuration is an API-first JSON config sent via curl (PUT) over a unix socket, allowing live updates, zero-downtime version switches and thread scaling (example: 10 → 20 workers). Shows a working hello‑world that returns JSON headers and a SHA of the request.
AI-written summary · about
