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
Asynchronous JS in Node
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Sean Hagstrom
January 27, 2015
Technology
2
160
Asynchronous JS in Node
A presentation on Node's Async Operations and styles of programming used to coordinate with them.
Sean Hagstrom
January 27, 2015
Tweet
Share
More Decks by Sean Hagstrom
See All by Sean Hagstrom
Front End Ninja Training
seanstrom
3
250
Other Decks in Technology
See All in Technology
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
580
Greatest Disaster Hits in Web Performance
guaca
0
160
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.3k
広告の効果検証を題材にした因果推論の精度検証について
zozotech
PRO
0
150
レガシー共有バッチ基盤への挑戦 - SREドリブンなリアーキテクチャリングの取り組み
tatsukoni
0
210
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
210
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
0
120
Frontier Agents (Kiro autonomous agent / AWS Security Agent / AWS DevOps Agent) の紹介
msysh
3
160
入社1ヶ月でデータパイプライン講座を作った話
waiwai2111
1
280
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
460
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
120
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
590
Featured
See All Featured
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
320
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
How to train your dragon (web standard)
notwaldorf
97
6.5k
Un-Boring Meetings
codingconduct
0
200
Claude Code のすすめ
schroneko
67
210k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
How to Talk to Developers About Accessibility
jct
2
130
The Curious Case for Waylosing
cassininazir
0
230
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
22k
Facilitating Awesome Meetings
lara
57
6.8k
It's Worth the Effort
3n
188
29k
Transcript
Asynchronous Javascript in Node by Sean Hagstrom, Originate Inc.
Synchronous VS Asynchronous
None
None
None
None
None
None
None
None
None
None
Async Operations in Node IO File System Network ETC. Database
None
None
None
Callback Pattern (CPS)
Node’s Callback Pattern Callbacks Actors
None
None
None
None
None
None
Error Propagation
None
None
None
None
None
None
None
None
None
None
None
None
Don’t Rely on Return Values From Actor
None
None
None
Don’t Throw Errors in your Callbacks
None
None
None
None
None
OOPS Process Just Crashed
Limitations of The Callback Pattern
Chaining Operations B C A
None
None
None
None
None
None
None
None
None
None
None
None
Parallel Operations B C A
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Async.js - Better Callbacks
Chaining Operations with Async.js
None
None
None
None
None
None
None
None
None
None
None
Parallel Operations with Async.js
None
None
None
None
None
None
None
None
None
None
None
None
Promises
States of a Promise Pending Rejected Resolved
Actors can return Promises!
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Promises Have Better Error Handling
None
None
None
None
None
None
Promises Are Always Asynchronous
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Chaining Operation with Promises
None
None
None
None
None
None
None
None
None
None
None
None
None
None
Parallel Operations with Promises
None
None
None
None
None
None
None
None
None
Summary
Questions?