Scaling & Caching¶
Guidelines for handling higher traffic and reducing load.
App Workers¶
Start with 2–4 workers; monitor CPU and latency.
Use UNIX sockets for local proxying (lower overhead than TCP).
Caching¶
Enable HTTP caching for static assets in Nginx.
Consider a reverse proxy cache (e.g., Nginx proxy_cache) for public pages.
Database¶
Index frequently queried columns.
Use connection pooling if available.