Before diving deep into singleton pattern we need to know what are State full and Stateless node.js application/server.
Stateless Server
Usually when we write HTTP servers, they don’t hold any state. This means, they don’t have any in memory variable...