Introduction Who am I Saman Baboli Cofounder and
Introduction
Who am I? Saman Baboli Co-founder and CTO Tabriz Open talks
Agenda 1 – What is Node. js? 10 – Don’t use it! 2 – How it works? 11 – Where Node. js Should Be Used? 3 – Why Node. js? 12 – load balancing 4 – Async 13 - Memory Management 5 – Package Managers 14 - Top Companies Using Node. js 6 – ECMAScript 15 – Ides 7 – Template Engines 16 - References 8 – Web Socket 9 – Frameworks Tabriz Open talks
What is Node. js? Node. js® is a Java. Script runtime built on Chrome’s V 8 Java. Script engine. Tabriz Open talks
How it works? JS Code Engine Machine Code Tabriz Open talks
How it works? V 8 Chakra Tabriz Open talks Spider. Monkey
Why Nodejs? Non-blocking I/O Tabriz Open talks
Async Tabriz Open talks
Async 1 2 3 Tabriz Open talks
Async 1 3 2 // after 3 s Tabriz Open talks
Why Nodejs? one single language in both client and server side. Java. Script everywhere ; ) Tabriz Open talks
Why Nodejs? Rich ecosystem Tabriz Open talks
Package Managers Node package manager Tabriz Open talks
Package Managers $ npm install "package-name" --save Save this module name in package. json file Tabriz Open talks
Package Managers Tabriz Open talks
Package Managers Tabriz Open talks
Package Managers express — Express. js, a Sinatra-inspired web development framework for Node. js. hapi — a very modular and simple to use configuration-centric framework for building web and services applications socket. io and sockjs — Server-side component of the two most common websockets components out there today. Redis — Redis client library. pm 2 — run and monitoring Node. js apps in background Tabriz Open talks
Template Engines Tabriz Open talks
Template Engines Pug (jade) example Tabriz Open talks
Frameworks Tabriz Open talks
ECMAScript Is the name of the international standard that defines Java. Script Tabriz Open talks
ECMAScript Tabriz Open talks
Web Socket Tabriz Open talks
Web Socket Tabriz Open talks
Don’t use it! for CPU-intensive operations Tabriz Open talks
Don’t use it! Serve static files Tabriz Open talks
Where Node. js Should Be Used? Real time apps Tabriz Open talks
Where Node. js Should Be Used? Tabriz Open talks
load balancing Tabriz Open talks
load balancing Tabriz Open talks
Memory Management garbage collection Tabriz Open talks
Top Companies Using Node. js https: //stackshare. io/nodejs/in-stacks Tabriz Open talks
Ides Tabriz Open talks
Be aware! Node. js is not a programming language! Node. js Tabriz Open talks
References https: //medium. com/the-node-jscollection/why-the-hell-would-you-use-node-js -4 b 053 b 94 ab 8 e https: //medium. com/@samanbaboli/how-toload-balancing-nodejs-apps-using-nginxa 3 b 4 ceb 7 c 782 Tabriz Open talks
Thanks a lot Everywhere @samanbaboli Tabriz Open talks
- Slides: 36