A guide in this repository, Nodejs/guides/express-bff-production-deployment/README.md, for deploying a generic Express backend-for-frontend (BFF) on a Linux VM, with PM2 running several workers as an unprivileged account behind an optional Nginx or OpenResty gateway. It is a repeatable baseline, not evidence about any production service.1
Takeaways
- Cluster mode requires stateless workers. See Backend for frontend.
- Releases go into immutable directories, switch with a symlink, and roll back by repointing it.1 See Express BFF deployment.
Footnotes
-
Node.js / Express BFF Production Deployment for Beginners, original on GitHub ↩ ↩2