Learning Python Network Programming

(Sean Pound) #1
Chapter 9

With pre-forking and web application embedding, our request's journey might look
like this:


Here, the request is transformed by the language binding code, and the request our
web application sees depends on the design of the binding itself. This approach to
managing a web application works fairly well for general web loads, and remains
a popular way to host web applications today. Modern browsers usually also offer
multithreaded variants, where each process can handle requests using multiple
threads, one for each client connection, further improving efficiency.

Free download pdf