If you are a NodeJS application developer, you are developing it in a single-threaded/single-process-based manner by default. If you deploy it on a multi-CPU/core-based server, you are only under-utilizing it. Sure, we can do better, right? Nodejs also provides some facilities to improve its default single-thread nature through its cluster module. Sure, you will have to know … [Read more...] about Create Multi-Process NodeJS Server With ‘Clustered-Node’
Recently, I started learning and working on the Node.js platform, so I am again brushing up on my long-forgotten JavaScript skills. JSON is a common format you encounter every now and then in JavaScript, whether it's on the client side or server side. As NodeJs is a server-side platform, it has a little more capability than browser-based JavaScript, like writing to file … [Read more...] about How To Work With JSON In Node.js / JavaScript
Most new programmers start learning NodeJS, assuming they already have knowledge of JavaScript, by creating a web server with a simple, easy few lines of code. Well, do you know that the same HTTP module, which helps us create a web server, can also be used to perform HTTP requests to another remote server? Today, in this tutorial, which is intended for NodeJS beginners, I will … [Read more...] about How To Create HTTP Request In NodeJS