Async Patterns in Node.js
By Brice Wilson
Course info



Course info



Description
Node.js was built to run on a single thread using non-blocking I/O calls. Building apps for this environment requires extensive use of asynchronous code. In this course, Async Patterns in Node.js, you'll learn multiple techniques to write efficient asynchronous code using modern JavaScript. First, you’ll explore how the Node event loop works and how to write asynchronous code with callbacks that adhere to conventions followed in the Node community. Next, you’ll discover how to use Promises and the async/await keywords to write asynchronous code that’s easier to read. Finally, you’ll learn how to write event-driven code with EventEmitters and use worker threads to tackle CPU-intensive tasks in your Node apps. When you’re finished with this course, you’ll have the skills and knowledge of asynchronous programming necessary to build performant Node apps using accepted best practices.
Section Introduction Transcripts
Course Overview
Hey, everybody. My name is Brice Wilson, and welcome to my course, Async Patterns in Node.js. I'm a server and client‑side web developer. Node is an increasingly popular choice for developers that want to build fast, responsive server applications. The single‑threaded nature of the node event loop makes writing asynchronous code an essential skill for every Node developer. The techniques for writing asynchronous code in JavaScript have evolved over the years, and I'll show you some classic syntax, as well as all of the most modern approaches. Some of the major topics that we'll cover include using callback functions, promises and the async and await keywords, creating and responding to events with EventEmitters, and taking advantage of worker threads. By the end of the course, you'll have a solid understanding of asynchronous programming patterns in Node and when to use different techniques in your own projects. Before beginning this course, you should be familiar with the basics of JavaScript, but you certainly don't need to be an expert. I hope you'll join me on this journey to learn asynchronous programming with the Async Patterns in Node.js course at Pluralsight.