If you are already using NodeJS for a while, you might already know that NodeJS is, by default, made up of single-threaded architecture. That means all your application logic will be run as a single thread for any amount of traffic requests. So, whenever it's doing one operation, it won't be doing anything else at that moment, even if there is a new request at the same time, … [Read more...] about Getting Started With Nodejs Cluster
javascript
Object Oriented JavaScript: Inheritance, (Static) Method
This is a follow-up article of my earlier post on JavaScript class basics. There are some few more things that we actually need to dive into object-oriented programming in JavaScript. Today, In this tutorial, I will try to describe how we can leverage the power of inheritance in JavaScript program. We will also learn, how to declare a normal instance method and as well static … [Read more...] about Object Oriented JavaScript: Inheritance, (Static) Method
Create Multi-Process NodeJS Server With ‘Clustered-Node’
If you are a NodeJS application developer, by default you are developing it in single threaded/single process based. If you are deploying it on a multi-cpu/core based server, then you are only under-utilizing it. Sure, we can do better, right? Nodejs also provide some facility to improve its default single-thread nature by its cluster module. Sure you will have to know first … [Read more...] about Create Multi-Process NodeJS Server With ‘Clustered-Node’
Object Oriented JavaScript: Class Basics
JavaScript has become one of the most dominating programming languages of modern software development era. From browser client side development to server side development(nodejs) to mobile app development(phonegap), it's everywhere. However, unfortunately, it doesn't provide traditional object-oriented API. May be that's why everywhere all we see functional styled straight … [Read more...] about Object Oriented JavaScript: Class Basics
How To Work With JSON In Node.js / JavaScript
Recently I started learning and working on the Node.js platform. So, now I am again brushing up on my long-forgotten JavaScript skill. JSON is a common format you face 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 systems, … [Read more...] about How To Work With JSON In Node.js / JavaScript