{"id":2706,"date":"2013-05-10T22:18:41","date_gmt":"2013-05-11T02:18:41","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2013\/05\/10\/nodejs\/"},"modified":"2025-11-17T15:09:44","modified_gmt":"2025-11-17T20:09:44","slug":"nodejs","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/","title":{"rendered":"What is Node.js?"},"content":{"rendered":"\n<p><strong>Node.js<\/strong> is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome. Programs for <strong>Node.js<\/strong> are written in JavaScript using event-driven, asynchronous I\/O requests which can help allow for handling of tens of thousands of simultaneous client connections efficiently.<\/p>\n\n\n\n<p><strong>Node.js<\/strong> is built around a server network library, and it contains built-in HTTP communication methods. So it&#8217;s possible to run a web server using just <strong>Node.js<\/strong> without any external software such as Apache. It also allows more control over how the web server works and it enables for an entire application, both client-side, and server-side, to be written in JavaScript.<\/p>\n\n\n\n<p>Already know the deal on <strong>Node.js<\/strong>? You might want to just jump right to how to <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/install-nodejs\/\">install Node.js<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Asynchronous vs Thread-based Requests<\/h2>\n\n\n\n<p>Common server-side programs written in languages like PHP, Python, or Perl, rely on a traditional thread based model for client connections, where each connection creates an OS thread to execute the request. These typically take around 2MB of system memory at a minimum, so if you&#8217;re on a server with 1024MB of RAM, chances are when you&#8217;re approaching around 512 simultaneous client connections to the server, you could be exhausting your server&#8217;s memory.<\/p>\n\n\n\n<p><strong>Node.js<\/strong> instead uses event-driven programming, so each connection uses a very small amount of memory while connecting. Then <strong>Node.js<\/strong> uses callbacks or references to inform the OS that a new connection is being requested. So the majority of the time <strong>Node.js<\/strong> does not disturb the OS, and this can lead to increased performance and efficiency.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">No or minimal file locking<\/h2>\n\n\n\n<p>When two or more processes share the same resource from most other server-side programs, one would have to be locked temporarily in order to allocate resources to the other process. That can cause problems where essentially processes are deadlocked and battling back and forth for the required resource, leading to delays in execution.<\/p>\n\n\n\n<p><strong>Node.js<\/strong> doesn&#8217;t have this same problem as it handles almost no direct input or output operations, and so it doesn&#8217;t cause a deadlock on server resources.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What can you do with <strong>Node.js<\/strong><\/h2>\n\n\n\n<p>There are a ton of different types of applications that you can build using <strong>Node.js<\/strong>, and while it is still a somewhat newer entry into the server-side programming realm, there are already a lot of options out there.<\/p>\n\n\n\n<p>Here are just a few examples of the types of applications that can be built using <strong>Node.js<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Application server<\/li>\n\n\n\n<li>Client of web service (FaceBook or Twitter client)<\/li>\n\n\n\n<li>Log and log monitoring<\/li>\n\n\n\n<li>Web based software<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Node.js<\/strong> Advantages<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Handles concurrent connections efficiently due to being event-driven and non-blocking.<\/li>\n\n\n\n<li>Common language on both client-side and server-side<\/li>\n\n\n\n<li>Fuctional API<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Node.js<\/strong> Disadvantages<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Can&#8217;t be run on most shared-hosting servers<\/li>\n\n\n\n<li>Still new and lacks some wider database support<\/li>\n<\/ul>\n\n\n\n<p>You should now have a bit clearer picture about what <strong>Node.js<\/strong> is, and how it could possibly help you write more efficient server-side applications for handling large amounts of concurrent requests. In other articles, we&#8217;ll cover installing <strong>Node.js<\/strong> as well as some real world examples of the types of applications you can create with it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome. Programs for Node.js are written in JavaScript using event-driven, asynchronous I\/O requests which can help allow for handling of tens of thousands of simultaneous client connections efficiently. Node.js is built around a server network<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-2706","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Node.js? | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Node.js? | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-11T02:18:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-17T20:09:44+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"What is Node.js?\",\"datePublished\":\"2013-05-11T02:18:41+00:00\",\"dateModified\":\"2025-11-17T20:09:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\"},\"wordCount\":542,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\",\"name\":\"What is Node.js? | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2013-05-11T02:18:41+00:00\",\"dateModified\":\"2025-11-17T20:09:44+00:00\",\"description\":\"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is Node.js?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Node.js? | InMotion Hosting","description":"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/","og_locale":"en_US","og_type":"article","og_title":"What is Node.js? | InMotion Hosting","og_description":"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2013-05-11T02:18:41+00:00","article_modified_time":"2025-11-17T20:09:44+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"What is Node.js?","datePublished":"2013-05-11T02:18:41+00:00","dateModified":"2025-11-17T20:09:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/"},"wordCount":542,"commentCount":4,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/","name":"What is Node.js? | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2013-05-11T02:18:41+00:00","dateModified":"2025-11-17T20:09:44+00:00","description":"Node.js is a popular server-side JavaScript framework built off the impressively fast open source V8 JavaScript engine used in Google Chrome.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/nodejs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"What is Node.js?"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=2706"}],"version-history":[{"count":4,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2706\/revisions"}],"predecessor-version":[{"id":131155,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/2706\/revisions\/131155"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=2706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=2706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=2706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}