AsyncIO vs Multi Threading vs Multi Processing

Those are the 3 big options to speed up python code. The globally accepted answer on the internet focuses on resources bound to help you decide. I think inter task dependencies and code complexity should also be taken into account.
Last updated on Aug 31, 2024

Multi Processing

Use for independant CPU bound tasks.

Pros:

Cons:

AsyncIO

Use for I/O Bound tasks either:

Pros:

Cons:

Multi Threading

Use to run a few (<500) independant I/O bound tasks.

Pros:

Cons: