Foundations of Python Network Programming: The comprehensive guide to building network applications with Python, Second Edition
by Brandon Rhodes, John Goerzen
Chapter 7. Server Architecture
This chapter explores how network programming intersects with the general tools and techniques that Python developers use to write long-running daemons that can perform significant amounts of work by keeping a computer and its processors busy.
Instead of making you read through this entire chapter to learn the landscape of design options that I will explore, let me outline them quickly.
Most of the network programs in this book—and certainly all of the ones you have seen so far—use a single sequence of Python instructions to serve one network client at a time, operating in lockstep as requests come in and responses go out. This, as we will see, will usually leave the system CPU mostly idle.
There are two changes you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access