Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Intro to Node.JS
Search
Joe Andaverde
May 02, 2013
Programming
3
240
Intro to Node.JS
Joe Andaverde
May 02, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
使ってみよう Azure AI Document Intelligence
kosmosebi
2
360
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
1k
Go製Webアプリケーションのエラーとの向き合い方大全、あるいはやっぱりスタックトレース欲しいやん / Kyoto.go #50
utgwkk
6
1.8k
Elm 0.19.0 Changes
bkuhlmann
0
510
What We Can Learn From OSS
inouehi
0
440
Node.js v22 で変わること
yosuke_furukawa
PRO
11
3.9k
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
1k
Hanami and htmx
bkuhlmann
0
220
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
510
Code Reviews
bkuhlmann
4
900
Git Rebase
bkuhlmann
11
1.6k
Implementing Design Systems in Swift
seyfoyun
1
460
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
649
58k
Why Our Code Smells
bkeepers
PRO
331
56k
What's in a price? How to price your products and services
michaelherold
238
11k
Unsuck your backbone
ammeep
663
57k
Bootstrapping a Software Product
garrettdimon
PRO
302
110k
Raft: Consensus for Rubyists
vanstee
133
6.3k
Scaling GitHub
holman
457
140k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
Building Effective Engineering Teams - LeadDev
addyosmani
31
1.9k
Optimizing for Happiness
mojombo
370
69k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
13
8.3k
Gamification - CAS2011
davidbonilla
77
4.6k
Transcript
Intro to Node.JS
What is Node.JS? • JavaScript out of the browser •
Bindings to perform File and Network I/O ◦ Behavior not present in JavaScript
Who uses Node.JS? • Trello http://blog.fogcreek.com/the-trello-tech-stack/ • Microsoft • Yahoo!
• eBay • LinkedIn • Twitter More listed at: https://github.com/joyent/node/wiki/Projects,-Applications,- and-Companies-Using-Node
What are some benefits of using Node.JS? • Very easy
to get started • Handles I/O elegantly • Concurrency made easy ◦ Blocking operations use callbacks ◦ Single threaded ◦ Thread pool for I/O ◦ Handles thousands of concurrent users • It's friggen' JavaScript!
A reference point http://blog.mixu.net/2011/02/01/understanding-the-node-js-event-loop/
How do we perform I/O? What's different about the Node.JS
example?
Different ways of handling I/O
The event loop
Node.JS Architecture
None
None
None
None
• I/O intensive API's • Realtime apps • Most websites
• When you want your API to speak JSON natively Use Node Don't use Node • CPU bound • You hate JavaScript
None