Ismayil Khayredinov
1 min readNov 25, 2019

--

There is time for everything. There are examples, when using async/await is going to hurt your user experience. When you are routing a Node request, for example, there are compelling cases to `then` your logic, send back the response and let the server finish handling additional logic: you may be sending out multiple notifications, generating PDFs, doing DB writes — all of which do not need to black the thread and keep the user waiting.

--

--

Ismayil Khayredinov
Ismayil Khayredinov

Written by Ismayil Khayredinov

Software engineer who combines optimism with pessimism to build robust and idiot-proof solutions

Responses (1)