Asynchronous with Executors

In this lesson we introduce executors within an asynchronous program and examine how the right choice can significantly improve performance.

We'll cover the following...

Asynchronous with Executors

In the previous section, we wrote an asynchronous version of our service that used the same event loop to juggle between incoming requests and performing calculations. A long-running request made the service completely unavailable. One mitigation we can apply is to offload the calculation work to thread or process pools, same as what we did in our multithreaded approach. The changes ...