$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Asynchronous JS in Node
Search
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
RAG/Agent開発のアップデートまとめ
taka0709
0
190
Snowflakeでデータ基盤を もう一度作り直すなら / rebuilding-data-platform-with-snowflake
pei0804
6
1.6k
re:Invent2025 コンテナ系アップデート振り返り(+CloudWatchログのアップデート紹介)
masukawa
0
390
NIKKEI Tech Talk #41: セキュア・バイ・デザインからクラウド管理を考える
sekido
PRO
0
160
MySQLとPostgreSQLのコレーション / Collation of MySQL and PostgreSQL
tmtms
1
1k
AI駆動開発の実践とその未来
eltociear
1
280
プロンプトやエージェントを自動的に作る方法
shibuiwilliam
13
14k
Oracle Cloud Infrastructure IaaS 新機能アップデート 2025/09 - 2025/11
oracle4engineer
PRO
0
170
ウェルネス SaaS × AI、1,000万ユーザーを支える 業界特化 AI プロダクト開発への道のり
hacomono
PRO
0
160
たまに起きる外部サービスの障害に備えたり備えなかったりする話
egmc
0
310
ペアーズにおけるAIエージェント 基盤とText to SQLツールの紹介
hisamouna
0
430
エンジニアリングをやめたくないので問い続ける
estie
2
1.2k
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
0
21
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
2
2.7k
Designing Experiences People Love
moore
143
24k
How to build a perfect <img>
jonoalderson
0
4.6k
Designing for Performance
lara
610
69k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
Highjacked: Video Game Concept Design
rkendrick25
PRO
0
240
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
200
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Code Reviewing Like a Champion
maltzj
527
40k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
2
59
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
60
37k
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?