Categories: Hostripples Featured

Node.js Architecture

Node.js Architecture

So! In the last article we have learned that a Node is a runtime environment for executing JavaScript code. But what is the runtime environment means?

Well! Before we knew JavaScript only to build applications only to run inside our browser. So every browser out there has what we call is a JavaScript Engine that takes the JavaScript code and converts it into a code that a computer can understand.

For Ex: – Microsoft uses e chakra, Firefox uses SpiderMonkey and Chrome uses V8. And because of these varieties of these engines that sometimes JavaScript code can behave differently in one browser or in another. Now a browser provides runtime environment for JavaScript code. For example you probably know in browsers we have the window or a document objects these objects allow us to work with the environment in which our code is running.

Now up to 2009 only way to execute a JavaScript code was inside of a browser. In 2009 Ryan Dahl came up with a brilliant idea, he thought it would be great to execute JavaScript outside of a browser. So he took Google’s V8 engine which is the fastest JavaScript engine out there and embedded it inside a C++ program and called that program as Node.exe.

So similar to a browser Node is a runtime environment with JavaScript code. It contains the JavaScript engine that can execute a JavaScript code. It contains the JavaScript engine that can executes a JavaScript code.

But it also has certain objects that provide an environment for a JavaScript code. But these objects are different from the environment objects we have in browsers. For Ex: We don’t have the document object instead we have other objects that gives us more interesting capabilities. For example we can work with a file system, listen for request and give reports and so on.

We cannot do stuff like that easily inside of a browser right! So in a sense Node is a program that includes a V8 JavaScript engine plus some additional modules that gives us capabilities not available inside browsers. We can work with the file system or the network and so on.

Most chrome and Node share the same JavaScript engine but they provide different run time environment for JavaScript’s. Now there are people who compare node to C# or ruby or some other programming languages. These comparisons are fundamentally wrong because Node is not a programming language.

It is like comparing a car with an apple. By the same token Node should not be compared between frameworks such as ASP.NET or Django and so on.

These are frameworks building web applications, Node is not a framework! It is a runtime environment for executing JavaScript code.

Visit: Hostripples


Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

Meet Sora: The Game-Changing AI Video Model from ChatGPT

The world of artificial intelligence is evolving faster than ever — and one of the biggest breakthroughs is here. Sora,…

13 hours ago

How to Design a Website for Black Friday 2025 (Complete Guide)

Black Friday 2025 is here — the biggest shopping moment of the year, where customers expect unbeatable prices, fast performance,…

2 weeks ago

301 Redirects for WordPress: What, Why & How (SEO Best Practices)

When you move or delete a page on your WordPress website, visitors — and search engines — can easily hit…

2 weeks ago

Meet Perplexity: AI That Thinks Like a Researcher

Introduction Artificial Intelligence has made remarkable strides — from writing poetry to generating code. Yet, most AIs still act like…

4 weeks ago

Top 15 AI Text Writers in 2025 — Features, Uses, Pros & Cons Explained

Introduction Artificial Intelligence has revolutionized the way we create, refine, and scale written content — from blogs and marketing campaigns…

4 weeks ago