In the best case possible, you don’t use concurrency at all, because it makes things complicated. But if you really really need it, it can definitely help to speedup your code. Normally the tasks during code requests are handled simultaneously, but with concurrency tasks start, run and complete interleaved.This way your CPU processing time is decreased, sometimes by half. The more requests you handle at once the more benefit you’ll get with concurrency.
After explaining the foundations of concurrency and why to use it, Aitor showed us the benefits during some live coding. He showed the difference in CPU time between synchronous, threading and asyncio code requests.
