Learning Python Networking - Second Edition
by José Manuel Ortega, Dr. M. O. Faruque Sarker, Sam Washington
Introducing Tornado
The traditional model for creating applications such as web servers that support several clients concurrently is based on a multithread system in which a new thread is created for each client that connects to the service. This results in a fairly high consumption of system resources and performance problems, which can be quite serious.
Tornado is a module written in Python that allows you to create asynchronous and non-blocking systems for network operations, where each request executed by a client can be asynchronous. The way in which the library is implemented allows you to scale to several thousand open connections, something that is ideal for applications that require connections with a long lifetime.
You can install ...
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