node-express-mysql-typescript-api-boilerplate
node-express-mysql-typescript-api-boilerplate copied to clipboard
Update index.ts
i'm using here clusters which will boost the performance of the API to use all all the cpu's cores when you upload your API on the cloud so you turn the setupServer to true when you run your API on the cloud but if you gonna develop it and use it in your PC you should turn it off, cause it will use all your cpu's cores and then the PC will slow down
@Braineanear thanks for contributing. But prefer using pm2 cluster in production for stateless application than node cluster. For ref: https://stackoverflow.com/q/33981678/9821453