Chapter 5
Answer 1
For handling requests through the use of multiple application instances, we use the concept of horizontal scaling, where we launch more than one instance of the same application behind a load balancer. The load balancer is then responsible for distributing the incoming requests across this pool of application instances.
Answer 2
The process pools can be implemented through the use of ProcessPoolExecutor from the concurrent.futures library in Python. An example of how to use ProcessPoolExecutor to distribute the requests over a pool can be seen in the...