Session 9: Concurrency & Async Programming

  • Concurrency
  • Threading and Multiprocessing
  • Message Queues
  • Coroutines
  • Async

Supplemental Readings

Fluent Python:

  • Ch. 16: Coroutines
  • Ch. 17: Concurrency with Futures
  • Ch. 18: Concurrency with asyncio

Multiprocessing

Async:

https://glyph.twistedmatrix.com/2014/02/unyielding.html

The build in asyncio suffers from a lot of legacy – for a new take, try:

https://github.com/python-trio/trio

(This is also one of the few places to see async discussed without any pre- 3.5 legacy…)