On-demand data in Python, Part 3: Coroutines and asyncio

Much of the data in modern big data applications comes from the web or
databases. You need to write code to process this at scale, but you don’t want
everything to grind to a halt in the process. Python 3 introduced a system for
cooperative multitasking, which alleviates this problem, using asynchronous
coroutines. Asynchronous coroutines build on similar concepts to generators.
They are objects created from special functions which can be suspended and
resumed. They make it possible to break down complex and inefficient
processing into simple tasks that cooperate to maximize trade-offs between CPU
and input/output. Learn these core techniques following a simple sequence of


  • No Related Posts

Leave a Reply