{"id":2754,"date":"2017-12-11T19:20:22","date_gmt":"2017-12-11T13:50:22","guid":{"rendered":"https:\/\/cns72.com\/vytcdc.com.sg\/?p=2754"},"modified":"2019-11-20T12:13:25","modified_gmt":"2019-11-20T06:43:25","slug":"node-js","status":"publish","type":"post","link":"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/","title":{"rendered":"Node.js"},"content":{"rendered":"<p>Node.js is a server-side platform built on Google Chrome&#8217;s JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and its latest version is v0.10.36. The definition of Node.js as supplied by its <a href=\"https:\/\/nodejs.org\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">official documentation<\/a> is as follows \u2212<\/p>\n<blockquote><p>Node.js is a platform built on <a href=\"https:\/\/code.google.com\/p\/v8\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Chrome&#8217;s JavaScript runtime<\/a> for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I\/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.<\/p><\/blockquote>\n<p>Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on OS X, Microsoft Windows, and Linux.<\/p>\n<p>Node.js also provides a rich library of various JavaScript modules which simplifies the development of web applications using Node.js to a great extent.<\/p>\n<pre class=\"result notranslate\">Node.js = Runtime Environment + JavaScript Library\r\n<\/pre>\n<h2>Features of Node.js<\/h2>\n<p>Following are some of the important features that make Node.js the first choice of software architects.<\/p>\n<ul class=\"list\">\n<li><b>Asynchronous and Event Driven<\/b> \u2212 All APIs of Node.js library are asynchronous, that is, non-blocking. It essentially means a Node.js based server never waits for an API to return data. The server moves to the next API after calling it and a notification mechanism of Events of Node.js helps the server to get a response from the previous API call.<\/li>\n<li><b>Very Fast<\/b> \u2212 Being built on Google Chrome&#8217;s V8 JavaScript Engine, Node.js library is very fast in code execution.<\/li>\n<li><b>Single Threaded but Highly Scalable<\/b> \u2212 Node.js uses a single threaded model with event looping. Event mechanism helps the server to respond in a non-blocking way and makes the server highly scalable as opposed to traditional servers which create limited threads to handle requests. Node.js uses a single threaded program and the same program can provide service to a much larger number of requests than traditional servers like Apache HTTP Server.<\/li>\n<li><b>No Buffering<\/b> \u2212 Node.js applications never buffer any data. These applications simply output the data in chunks.<\/li>\n<li><b>License<\/b> \u2212 Node.js is released under the <a href=\"https:\/\/raw.githubusercontent.com\/joyent\/node\/v0.12.0\/LICENSE\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">MIT license<\/a>.<\/li>\n<\/ul>\n<h2>Who Uses Node.js?<\/h2>\n<p>Following is the link on github wiki containing an exhaustive list of projects, application and companies which are using Node.js. This list includes eBay, General Electric, GoDaddy, Microsoft, PayPal, Uber, Wikipins, Yahoo!, and Yammer to name a few.<\/p>\n<ul class=\"list\">\n<li><a href=\"https:\/\/github.com\/joyent\/node\/wiki\/projects,-applications,-and-companies-using-node\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Projects, Applications, and Companies Using Node<\/a><\/li>\n<\/ul>\n<h2>Concepts<\/h2>\n<p>The following diagram depicts some important parts of Node.js which we will discuss in detail in the subsequent chapters.<\/p>\n<p><img src=\"https:\/\/www.tutorialspoint.com\/nodejs\/images\/nodejs_concepts.jpg\" alt=\"Node.js Concepts\" \/><\/p>\n<h2>Where to Use Node.js?<\/h2>\n<p>Following are the areas where Node.js is proving itself as a perfect technology partner.<\/p>\n<ul class=\"list\">\n<li>I\/O bound Applications<\/li>\n<li>Data Streaming Applications<\/li>\n<li>Data Intensive Real-time Applications (DIRT)<\/li>\n<li>JSON APIs based Applications<\/li>\n<li>Single Page Applications<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Node.js is a server-side platform built on Google Chrome&#8217;s JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and its latest version is v0.10.36. The definition of Node.js as supplied by its official documentation is as follows \u2212 Node.js is a platform built on Chrome&#8217;s JavaScript runtime for easily building fast and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2756,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[45],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.0.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Node.js - TCDC<\/title>\n<link rel=\"canonical\" href=\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Node.js - TCDC\" \/>\n<meta property=\"og:description\" content=\"Node.js is a server-side platform built on Google Chrome&#8217;s JavaScript Engine (V8 Engine). Node.js was developed by Ryan Dahl in 2009 and its latest version is v0.10.36. The definition of Node.js as supplied by its official documentation is as follows \u2212 Node.js is a platform built on Chrome&#8217;s JavaScript runtime for easily building fast and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\" \/>\n<meta property=\"og:site_name\" content=\"TCDC\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vytcdc\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-11T13:50:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-20T06:43:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cns72.com\/vytcdc.com.sg\/wp-content\/uploads\/2017\/12\/nodejs-frameworks.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"948\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vytcdc\" \/>\n<meta name=\"twitter:site\" content=\"@vytcdc\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/#website\",\"url\":\"https:\/\/cns72.com\/vytcdc.com.sg\/\",\"name\":\"TCDC\",\"description\":\"Career Development Courses\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/cns72.com\/vytcdc.com.sg\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/cns72.com\/vytcdc.com.sg\/wp-content\/uploads\/2017\/12\/nodejs-frameworks.png\",\"width\":1600,\"height\":948},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/#webpage\",\"url\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\",\"name\":\"Node.js - TCDC\",\"isPartOf\":{\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/#primaryimage\"},\"datePublished\":\"2017-12-11T13:50:22+00:00\",\"dateModified\":\"2019-11-20T06:43:25+00:00\",\"author\":{\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/#\/schema\/person\/c57e5f7b91685a93f23a57aaafd38e82\"},\"breadcrumb\":{\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/\",\"url\":\"https:\/\/cns72.com\/vytcdc.com.sg\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\",\"url\":\"https:\/\/cns72.com\/vytcdc.com.sg\/node-js\/\",\"name\":\"Node.js\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/#\/schema\/person\/c57e5f7b91685a93f23a57aaafd38e82\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/cns72.com\/vytcdc.com.sg\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8f959f70994a4401c8704d6b2143474?s=96&d=mm&r=g\",\"caption\":\"admin\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/posts\/2754"}],"collection":[{"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/comments?post=2754"}],"version-history":[{"count":0,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/posts\/2754\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/media\/2756"}],"wp:attachment":[{"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/media?parent=2754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/categories?post=2754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cns72.com\/vytcdc.com.sg\/wp-json\/wp\/v2\/tags?post=2754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}