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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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のプラクティスを用いた3領域同時 マネジメントへの挑戦 〜SRE・情シス・セキュリティを統合した チーム運営術〜
coconala_engineer
2
590
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
67k
なぜ今、コスト最適化(倹約)が必要なのか? ~AWSでのコスト最適化の進め方「目的編」~
htan
1
110
GitLab Duo Agent Platform × AGENTS.md で実現するSpec-Driven Development / GitLab Duo Agent Platform × AGENTS.md
n11sh1
0
120
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
210
今日から始めるAmazon Bedrock AgentCore
har1101
4
390
(金融庁共催)第4回金融データ活用チャレンジ勉強会資料
takumimukaiyama
0
120
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
170
MySQLのJSON機能の活用術
ikomachi226
0
150
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
150
Azure Durable Functions で作った NL2SQL Agent の精度向上に取り組んだ話/jat08
thara0402
0
140
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
440
Featured
See All Featured
Six Lessons from altMBA
skipperchong
29
4.1k
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.6k
Side Projects
sachag
455
43k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
60
42k
How to Ace a Technical Interview
jacobian
281
24k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
89
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
97
Practical Orchestrator
shlominoach
191
11k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.6k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
2k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
72
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?