Sign in
Log inSign up
Samadrit Sarkar

64 likes

·

924 reads

10 comments

AbulAsar S.
AbulAsar S.
Jun 27, 2024

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.

1
·
·2 replies
Samadrit Sarkar
Samadrit Sarkar
Author
·Jun 27, 2024

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?

·
AbulAsar S.
AbulAsar S.
Jun 28, 2024

Yes. I was talking about PM2 in cluster mode. I believe its fork method can be useful in such a scenario.

·
Spotify Freek
Spotify Freek
Jul 3, 2024

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! 🙌

·
Sudhansu Bandha
Sudhansu Bandha
Aug 1, 2024

Insightful!!!

·