Skip to Content
Modern Python Standard Library Cookbook
book

Modern Python Standard Library Cookbook

by Alessandro Molina
August 2018
Intermediate to advanced
366 pages
10h 14m
English
Packt Publishing
Content preview from Modern Python Standard Library Cookbook

AsyncIO

While asynchronous solutions have been around for years, they are getting more and more common these days. The primary reason is that having an application without thousands of concurrent users is not an uncommon scenario anymore; it's actually the norm for a small/medium-sized application and we can scale to millions with major services used worldwide.

Being able to serve such volumes doesn't scale well with approaches based on threads or processes. Especially when many of the connections that users are triggering might be sitting there doing nothing most of the time. Think of a service such as Facebook Messenger or WhatsApp. Whichever you use, you probably send a message once in a while and most of the time your connection to the ...

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.
Start your free trial

You might also like

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Matthew Wilkes

Publisher Resources

ISBN: 9781788830829Supplemental Content