In this section, we're going to take a look at the motivations and reasons for asynchronous request processing and why this matters to you. One thing I need to tell you is that the free lunch is over! concurrency counts.
Let's take a look at the following diagram:
We can see that the number of transistors on a processor is constantly rising; however, the clock speed pretty much stayed constant since 2004. This means you need to be more concurrent in order to get more speed, and we usually do this by using threads.
By default, the request processing on the server usually works in a synchronous mode, which means that each request is processed in a single HTTP thread. This is what we are used to; we had one thread and we performed request responses in it. Unfortunately, threads are very expensive, so under a high...