December 2019
Intermediate to advanced
510 pages
11h 33m
English
The first thing to underline is that asynchronous code is not about speed. As mentioned before, asynchronous programming is just about not blocking incoming requests. Therefore, the real benefit is about better vertical scalability, instead of increasing the speed of our code. For example, let's suppose that our web services perform some I/O operations such as queries on a database: in case we run our code stack in a synchronous way, the thread used by an incoming request will be blocked and not used by any other request until the read or write (I/O operation) process is completed. By taking an asynchronous approach we are able to release the thread as soon as the read/write operation is executed. ...
Read now
Unlock full access