64 likes
·
924 reads
10 comments
Nice article and a nice bug fix. I got something to learn about streams.
About restarting the server on the crash, I was wondering if you could have used cluster
to avoid a manual server restart.
Hey, thanks first of all. This was my first blog. Can you explain what you meant by cluster? You meant running the nodejs server in pm2 in cluster mode? Or kubernetes Cluster?
Yes. I was talking about PM2 in cluster mode. I believe its fork
method can be useful in such a scenario.
Great job, Samadrit! Dealing with server issues like these can be such a headache. Your detailed approach to fixing the stream handling problem is really commendable. It's true, the devil is often in the details when it comes to server performance. Thanks for sharing your experience and solution! 🙌
Insightful!!!