Write reliable asynchronous code in Node.js — model non-blocking I/O correctly, replace nested callbacks with Promises, and read and write clear async/await. You will finish able to chain, parallelise and error-handle asynchronous work without race conditions or swallowed failures.
Watch the free preview
Non-blocking I/O and the event loop — free to watch, no account needed.
What you'll learn
- Write reliable asynchronous code using callbacks, Promises and async/await
- Explain the event loop and non-blocking I/O and predict execution order
- Refactor nested callbacks into flat, readable Promise chains
- Handle asynchronous errors so no failure is ever silently swallowed
- Coordinate concurrent work with Promise.all, race, allSettled and any
Syllabus
The Event Loop & Callbacks
Non-blocking I/O and the event loopFree preview
Callbacks and callback hell
Promises — Chaining & Errors
Promises, states and chaining
Error handling with Promises
async / await
Writing async/await
Error handling and control flow with async/await
Concurrency & Interop
Promise combinators — all, race, allSettled, any
Converting callback APIs with util.promisify
Lab — 10 Exercises & Solutions
Exercises 1–5
Exercises 6–10