SlideShare ist ein Scribd-Unternehmen logo
1 von 24
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
NODE.JS | Introduction & Basics
Kanika Gera
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Agenda
• Why Node.jS?
• What is Node.js?
• Architecture of Node.js
• Evented I/O
• Node.js Event Loop
• Where to use Node JS
• Demo
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Why Node.JS?
3
• Provide Easy Way to Build Scalable
Network Programs
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
What is a Node.JS?
4
• Server Side JavaScript
• Platform built on Chrome’s JavaScript runtime i.e. V8 script engine
• Lightweight and Efficient
• Event-Driven, works on the Non-Blocking Model
• Can Handle Thousands of Concurrent Connections with Minimal Overhead on a Single Process.
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Run JavaScript on Server Side
Allows to run Javascript code in the backend,
outside a browser.
Using Google’s V8 Engine
Has Runtime environments and NPM library.
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
What is a Node.JS?
6
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Synchronous vs Asynchronous
7
Synchronous Asynchronous
Waits for each operation to
complete, after that executes next
operation.
Never waits each operation to
complete, executes all at one time.
Results handled as available.
Step by Step execution Callbacks used to handle results
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Synchronous Example
8
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Asynchronous Example
9
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Single Thread, Synchronous I/O
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Multiple Thread, Synchronous I/O
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Single Thread, Asynchronous I/O
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Single Thread, Asynchronous I/O
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Event Loop
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Event Loop
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Non – Blocking I/O
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Non – Blocking I/O
• Use Events
• Never wait for I/O
• I/O is expensive
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Where to Use Node.JS?
18
• Few CPU Cycles
• I/O Operations
• Chat/ messaging
• Real – Time Applications
• Communication Hubs
• High Concurrency Applications
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Where You Cannot Use Node.JS?
19
• Heavy Computation
• Large and Complicated Web Applications
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Getting Started
20
• http://nodejs.org
• Download tar.gz
• Extract to a directory
• $ ./configure
• $ make install
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
DEMO
21
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
Who Uses Node.Js?
22
© 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.
THANK YOU !
Node.Js: Basics Concepts and Introduction

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Introduction to Node.js
Introduction to Node.jsIntroduction to Node.js
Introduction to Node.js
 
Node js introduction
Node js introductionNode js introduction
Node js introduction
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
 
Node.js Express
Node.js  ExpressNode.js  Express
Node.js Express
 
An Introduction of Node Package Manager (NPM)
An Introduction of Node Package Manager (NPM)An Introduction of Node Package Manager (NPM)
An Introduction of Node Package Manager (NPM)
 
Node js
Node jsNode js
Node js
 
NodeJS - Server Side JS
NodeJS - Server Side JS NodeJS - Server Side JS
NodeJS - Server Side JS
 
Nodejs presentation
Nodejs presentationNodejs presentation
Nodejs presentation
 
Introduction to NodeJS
Introduction to NodeJSIntroduction to NodeJS
Introduction to NodeJS
 
Nodejs
NodejsNodejs
Nodejs
 
Angular 8
Angular 8 Angular 8
Angular 8
 
Express node js
Express node jsExpress node js
Express node js
 
ES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern JavascriptES2015 / ES6: Basics of modern Javascript
ES2015 / ES6: Basics of modern Javascript
 
Solid NodeJS with TypeScript, Jest & NestJS
Solid NodeJS with TypeScript, Jest & NestJSSolid NodeJS with TypeScript, Jest & NestJS
Solid NodeJS with TypeScript, Jest & NestJS
 
TypeScript - An Introduction
TypeScript - An IntroductionTypeScript - An Introduction
TypeScript - An Introduction
 
Reactjs
ReactjsReactjs
Reactjs
 
Node.js Basics
Node.js Basics Node.js Basics
Node.js Basics
 
Nestjs MasterClass Slides
Nestjs MasterClass SlidesNestjs MasterClass Slides
Nestjs MasterClass Slides
 
MongoDB and Node.js
MongoDB and Node.jsMongoDB and Node.js
MongoDB and Node.js
 

Ähnlich wie Node.Js: Basics Concepts and Introduction

Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017Amazon Web Services
 
LNUG: Having Your Node.js Cake and Eating It Too
LNUG: Having Your Node.js Cake and Eating It TooLNUG: Having Your Node.js Cake and Eating It Too
LNUG: Having Your Node.js Cake and Eating It TooRob Tweed
 
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackAdobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackNicolas Brousse
 
Introducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech TalksIntroducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech TalksAmazon Web Services
 
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...Amazon Web Services
 
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...Amazon Web Services
 
Brownbag on basics of node.js
Brownbag on basics of node.jsBrownbag on basics of node.js
Brownbag on basics of node.jsJason Park
 
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...Nicolas Brousse
 
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...Puppet
 
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical Strategy
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical StrategyIBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical Strategy
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical StrategyOpenWhisk
 
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon Alexa
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon AlexaBuild a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon Alexa
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon AlexaAmazon Web Services
 
DevNetCreate Workshop - build a react app - React crash course
DevNetCreate Workshop - build a react app - React crash courseDevNetCreate Workshop - build a react app - React crash course
DevNetCreate Workshop - build a react app - React crash courseCisco DevNet
 
CON203_Driving Innovation with Containers
CON203_Driving Innovation with ContainersCON203_Driving Innovation with Containers
CON203_Driving Innovation with ContainersAmazon Web Services
 
Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017Amazon Web Services
 
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...Amazon Web Services
 
OpenWhisk Meetup - Austin, TX 07/2017
OpenWhisk Meetup - Austin, TX 07/2017OpenWhisk Meetup - Austin, TX 07/2017
OpenWhisk Meetup - Austin, TX 07/2017Carlos Santana
 
Design, Build, and Modernize Your Web Applications with AWS
 Design, Build, and Modernize Your Web Applications with AWS Design, Build, and Modernize Your Web Applications with AWS
Design, Build, and Modernize Your Web Applications with AWSDonnie Prakoso
 
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: Keynote
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: KeynoteIBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: Keynote
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: KeynoteOpenWhisk
 
Yes, AWS *is* a Fantastic Environment for .NET!
Yes, AWS *is* a Fantastic Environment for .NET!Yes, AWS *is* a Fantastic Environment for .NET!
Yes, AWS *is* a Fantastic Environment for .NET!Andy Hopper
 

Ähnlich wie Node.Js: Basics Concepts and Introduction (20)

Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
Move Your .NET Apps to AWS Without Betting the House - WIN303 - re:Invent 2017
 
LNUG: Having Your Node.js Cake and Eating It Too
LNUG: Having Your Node.js Cake and Eating It TooLNUG: Having Your Node.js Cake and Eating It Too
LNUG: Having Your Node.js Cake and Eating It Too
 
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStackAdobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
Adobe Advertising Cloud: The Reality of Cloud Bursting with OpenStack
 
Introducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech TalksIntroducing AWS Cloud9 - AWS Online Tech Talks
Introducing AWS Cloud9 - AWS Online Tech Talks
 
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
 
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
NEW LAUNCH! Introducing AWS Cloud9, a cloud IDE to write, run, & debug your c...
 
S903 palla
S903 pallaS903 palla
S903 palla
 
Brownbag on basics of node.js
Brownbag on basics of node.jsBrownbag on basics of node.js
Brownbag on basics of node.js
 
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...
PuppetConf 2017 | Adobe Advertising Cloud: A Lean Puppet Workflow to Support ...
 
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...
PuppetConf 2017: Adobe Advertising Cloud: Lean Puppet Workflow to Support Mul...
 
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical Strategy
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical StrategyIBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical Strategy
IBM Bluemix OpenWhisk: IBM InterConnect 2017, Las Vegas, USA: Technical Strategy
 
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon Alexa
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon AlexaBuild a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon Alexa
Build a Voice Enabled Modern App with GraphQL, AWS AppSync, and Amazon Alexa
 
DevNetCreate Workshop - build a react app - React crash course
DevNetCreate Workshop - build a react app - React crash courseDevNetCreate Workshop - build a react app - React crash course
DevNetCreate Workshop - build a react app - React crash course
 
CON203_Driving Innovation with Containers
CON203_Driving Innovation with ContainersCON203_Driving Innovation with Containers
CON203_Driving Innovation with Containers
 
Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017Driving Innovation with Containers - CON203 - re:Invent 2017
Driving Innovation with Containers - CON203 - re:Invent 2017
 
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...
Start Building CI/CD as Code. The 7 Lessons Learnt from Deploying and Managin...
 
OpenWhisk Meetup - Austin, TX 07/2017
OpenWhisk Meetup - Austin, TX 07/2017OpenWhisk Meetup - Austin, TX 07/2017
OpenWhisk Meetup - Austin, TX 07/2017
 
Design, Build, and Modernize Your Web Applications with AWS
 Design, Build, and Modernize Your Web Applications with AWS Design, Build, and Modernize Your Web Applications with AWS
Design, Build, and Modernize Your Web Applications with AWS
 
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: Keynote
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: KeynoteIBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: Keynote
IBM Bluemix OpenWhisk: Serverless Conference 2017, Austin, USA: Keynote
 
Yes, AWS *is* a Fantastic Environment for .NET!
Yes, AWS *is* a Fantastic Environment for .NET!Yes, AWS *is* a Fantastic Environment for .NET!
Yes, AWS *is* a Fantastic Environment for .NET!
 

Mehr von Kanika Gera

Aem markdown importer github love in aem
Aem markdown importer  github love in aemAem markdown importer  github love in aem
Aem markdown importer github love in aemKanika Gera
 
AEM target Integration
AEM target IntegrationAEM target Integration
AEM target IntegrationKanika Gera
 
AEM - Key Learning from Escalations
AEM - Key Learning from EscalationsAEM - Key Learning from Escalations
AEM - Key Learning from EscalationsKanika Gera
 
Heap Dump Analysis - AEM: Real World Issues
Heap Dump Analysis - AEM: Real World IssuesHeap Dump Analysis - AEM: Real World Issues
Heap Dump Analysis - AEM: Real World IssuesKanika Gera
 
Aem asset optimizations & best practices
Aem asset optimizations & best practicesAem asset optimizations & best practices
Aem asset optimizations & best practicesKanika Gera
 
AEM MSM: Basics & More
AEM MSM: Basics & MoreAEM MSM: Basics & More
AEM MSM: Basics & MoreKanika Gera
 
MSM Basics & More
MSM Basics & MoreMSM Basics & More
MSM Basics & MoreKanika Gera
 
Intelligent assets_kanikagera
Intelligent assets_kanikageraIntelligent assets_kanikagera
Intelligent assets_kanikageraKanika Gera
 

Mehr von Kanika Gera (10)

Aem markdown importer github love in aem
Aem markdown importer  github love in aemAem markdown importer  github love in aem
Aem markdown importer github love in aem
 
AEM target Integration
AEM target IntegrationAEM target Integration
AEM target Integration
 
AEM - Key Learning from Escalations
AEM - Key Learning from EscalationsAEM - Key Learning from Escalations
AEM - Key Learning from Escalations
 
Heap Dump Analysis - AEM: Real World Issues
Heap Dump Analysis - AEM: Real World IssuesHeap Dump Analysis - AEM: Real World Issues
Heap Dump Analysis - AEM: Real World Issues
 
Aem asset optimizations & best practices
Aem asset optimizations & best practicesAem asset optimizations & best practices
Aem asset optimizations & best practices
 
AEM MSM: Basics & More
AEM MSM: Basics & MoreAEM MSM: Basics & More
AEM MSM: Basics & More
 
MSM Basics & More
MSM Basics & MoreMSM Basics & More
MSM Basics & More
 
Intelligent assets_kanikagera
Intelligent assets_kanikageraIntelligent assets_kanikagera
Intelligent assets_kanikagera
 
ace 2015 (1)
ace 2015 (1)ace 2015 (1)
ace 2015 (1)
 
ace 2015
ace 2015ace 2015
ace 2015
 

Kürzlich hochgeladen

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 

Kürzlich hochgeladen (20)

Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 

Node.Js: Basics Concepts and Introduction

  • 1. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. NODE.JS | Introduction & Basics Kanika Gera
  • 2. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Agenda • Why Node.jS? • What is Node.js? • Architecture of Node.js • Evented I/O • Node.js Event Loop • Where to use Node JS • Demo
  • 3. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Why Node.JS? 3 • Provide Easy Way to Build Scalable Network Programs
  • 4. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. What is a Node.JS? 4 • Server Side JavaScript • Platform built on Chrome’s JavaScript runtime i.e. V8 script engine • Lightweight and Efficient • Event-Driven, works on the Non-Blocking Model • Can Handle Thousands of Concurrent Connections with Minimal Overhead on a Single Process.
  • 5. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Run JavaScript on Server Side Allows to run Javascript code in the backend, outside a browser. Using Google’s V8 Engine Has Runtime environments and NPM library.
  • 6. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. What is a Node.JS? 6
  • 7. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Synchronous vs Asynchronous 7 Synchronous Asynchronous Waits for each operation to complete, after that executes next operation. Never waits each operation to complete, executes all at one time. Results handled as available. Step by Step execution Callbacks used to handle results
  • 8. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Synchronous Example 8
  • 9. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Asynchronous Example 9
  • 10. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Single Thread, Synchronous I/O
  • 11. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Multiple Thread, Synchronous I/O
  • 12. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Single Thread, Asynchronous I/O
  • 13. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Single Thread, Asynchronous I/O
  • 14. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Event Loop
  • 15. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Event Loop
  • 16. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Non – Blocking I/O
  • 17. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Non – Blocking I/O • Use Events • Never wait for I/O • I/O is expensive
  • 18. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Where to Use Node.JS? 18 • Few CPU Cycles • I/O Operations • Chat/ messaging • Real – Time Applications • Communication Hubs • High Concurrency Applications
  • 19. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Where You Cannot Use Node.JS? 19 • Heavy Computation • Large and Complicated Web Applications
  • 20. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Getting Started 20 • http://nodejs.org • Download tar.gz • Extract to a directory • $ ./configure • $ make install
  • 21. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. DEMO 21
  • 22. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. Who Uses Node.Js? 22
  • 23. © 2017 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential. THANK YOU !

Hinweis der Redaktion

  1. ----- Meeting Notes (8/24/17 13:58) ----- * Node.js is an open source server framework * Node.js is free * Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.) * Node.js uses JavaScript on the server What Can Node.JS Do? * Node.js can generate dynamic page content * Node.js can create, open, read, write, delete, and close files on the server * Node.js can collect form data * Node.js can add, delete, modify data in your database What is a Node.js File? * Node.js files contain tasks that will be executed on certain events * A typical event is someone trying to access a port on the server * Node.js files must be initiated on the server before having any effect * Node.js files have extension ".js"
  2. Event Loop is a queue of callback function. When an Async function execute, the callback function is pushed into the queue,
  3. Event Loop is a queue of callback function. When an Async function execute, the callback function is pushed into the queue,
  4. Event Loop is a queue of callback function. When an Async function execute, the callback function is pushed into the queue,
  5. Event Loop is a queue of callback function. When an Async function execute, the callback function is pushed into the queue,
  6. Event Loop is a queue of callback function. When an Async function execute, the callback function is pushed into the queue,