Node in Walmart Production 1% CPU utilization and the team did a deploy with 200,000,000 users online
Node in production at Walmart
Allows you to build scalable network application using Javascript on SERVER Side
- Single Threaded Event driven
- Everything is Asynchronous
- All I/O is non blocking
Node run with the help of V8 javascript engine
What node js is not
- A Web Framework
- Multi-threaded application
- Pre-Bundled with Database
Before Working with Node.js
It is better to understand the difference between
BLOCKING and NON-BLOCKING code.
FETCHING TWO FILE IN DIFFERENT WAY
Node js vs PHP…benchmark
How to install node js
It is very simple
- Go to Node’s official website http://nodejs.org/
- Download the installer and run it
Package.json
- Contains details about the project, as well as dependencies
- This file is read for dependencies while doing a npm install
- Create new package.JSON by doing
npm.init
Node Framework
This some popular node framework
- Hapi
- Total
- MEAN
- Express
- Meteor
- Sails
- Koa
- Socket
Build On Node Js
- BookMyShow
- PayPal
- Walmart
- Uber
- Go Daddy (.net to Node js)
- Yahoo
- Trello
- The New York Times
- NetFlix (25 million over 100 countries)
In nutshell…