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
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
A Collection Of Frequently Used Vim Commands
I am not a hardcore Vim/Vi user. But this tiny piece of editor is very much helpful for certain cases, such as editing files on remote server instance while connected via terminal/ssh. Thus, I have occasionally used this whenever needed. However, I felt that, as I don't use it very frequently, I often forget how to do a certain task in it and I need to google it every time I am … [Read more...] about A Collection Of Frequently Used Vim Commands