I do a lot of work with Nodejs and currently with some of my colleagues ( remote php developer colleagues, should I say ) we developed a solution that needed a lot of interaction with rides pub sub and socketio. Everything was going great until we found some connections just started dropping from our self spawned servers. We had a 4 CPU dedicated to that server instance. We were scratching our heads and trying to figure out whats causing that, till we saw that 100% of one CPU was being used and rest of the 3 CPU had 0% to 1% usage.
Well that the nature of nodejs. Its a single threaded operation and for a very good reason, but for our work we needed it to be a multi threaded operation using multiple cores…… (more coming soon)

Leave a Reply

Your email address will not be published. Required fields are marked *