PM2 logo
Home Pricing Contact Documentation
Login

Stateless Application | Best Practices | PM2 Documentation

  • PM2 Plus Software
    • Overview
    • Quick Start
    • Server & Apps Overview
    • Application dashboard
    • Notifications
    • Issue Dashboard
    • Custom Metrics
    • Custom Actions
    • Realtime logs
    • pm2/io reference
    • Modules
    • Metrics Glossary
  • PM2 Enterprise Software
    • Overview
    • Distributed Tracing
    • Profiling
    • Alerting
    • Dashboards
    • Log
    • Webchecks
    • Golang
    • Prometheus Integration
  • PM2 Runtime Doc
    • Single Page Doc
    • Cluster Mode
    • Ecosystem File
    • Graceful Start/Shutdown
    • Environment Variables
    • Logs
    • Restart Strategies
    • Memory Limit Reload
  • PM2 Integration
    • AWS Elastic Beanstalk
    • Docker
    • Heroku
    • With a Cloud Provider
    • Node.js with PM2
    • Node.js without PM2
  • FAQ

Stateless Application

A stateless application has no local data stored in the process. For example, sessions/websocket connections, session-memory and related.

You must use Redis, Mongo or other databases to share all states between processes.

A useful resource on how to write efficient, production ready stateless application is The Twelve Factor Application manifesto: https://12factor.net/

PM2.io - Advanced Node.js Process Manager and Monitoring Platform

© 2026 Keymetrics Inc

PM2.IO
Pricing
Contact
Documentations
PM2 Runtime
PM2 Plus
PM2 Enterprise
Legal
Terms & Conditions
Privacy Policy