Node.js: Callbacks and Promises

preview_player
Показать описание
JavaScript development is inherently done as a single execution thread with gratutious use of events to prevent blocking. The end result of the most common method, callbacks, is difficult to read code and a decidedly difficult to read codebase for developers used to most blocking procedural languages. Promises, added natively to Node in the 4.x release, offer a better way to handle the parallel operation of blocking operations in an asynchronous environment.

Recorded: Thursday, September 22nd 2016
Рекомендации по теме
Комментарии
Автор

thank you man i really needed this. but is it possible to get this slid show or at least the examples provided within the slides ?

AliSultan
Автор

do you have github link to your demo project?

badaljain
Автор

Isn't the way Node.js handles async callbacks similar to how the CPU scheduler uses semaphores?

Mrchingchingdingding
Автор

Non-Node applications are making use of Hystrix (queueing application) to solve the problems that Node already solves :) 10:50

zaboomafia
Автор

ps -T only gives you processes, not really thread

paulop
Автор

call a promise wrapped in a promise with a promise that wraps a fuction that's not a

nicholashanson