How a Node.js app runs
- Your appA Node.js server process
- Host runtimeKeeps the process running
- Reverse proxyHandles HTTPS and routing
- VisitorsRequests reach your app
Options for running Node.js
| Type | Control | Low effort | Low cost | Scalability |
|---|---|---|---|---|
| VPS or cloud server | ||||
| Managed platform | ||||
| Shared plan with Node app manager | ||||
| Containers |
Editorial ratings from 1 (weak) to 5 (strong).
What to check
- Node.js versionsSupported versions and how you upgrade.
- Resource limitsMemory and process limits matter most on shared plans.
- Idle behaviorSome hosts stop idle apps, causing slow first requests.
- Background jobsLong-running workers may not be allowed on shared plans.
- Logs and process controlSo you can see and restart your app.
- Database accessAnd where the database runs.
How do you run a Node.js app in production?
- Install a supported Node.js version
Use a long-term support release.
- Run it under a process manager
systemd or a manager keeps it running.
- Add a reverse proxy
For HTTPS and routing.
- Monitor and log
Watch memory and errors.
What should you check in a host?
- Node.js versions and how you upgrade.
- Memory and process limits, especially on shared plans.
- Background jobs and idle behaviour.
- Database access and backups.
Shared, VPS or platform?
Some shared plans offer a Node.js app manager for small apps. A VPS gives more control; see VPS hosting. A platform removes server work; see hosting for startups.