Andrew Svetlov: "asyncio pitfalls"
Description
asyncio pitfalls
asyncio becomes quite popular now.
At first glance the approach looks very similar to classic synchronous way: just put `await` before every async function call, that's it.
But the real usage feedback demonstrates non obvious pitfalls.
Surprisingly it's not task synchronization but timeouts and task cancellation.
Another pain is async API design: there is no guideline for async approach published yet. The speaker went through this way, he paid fare share of mistakes.
The talk collects learned lessons of four years of development such libraries: asyncio itself, aiohttp, database drivers like aiopg/aiomysql and other projects under https://github.com/aio-libs umbrella.
At first glance the approach looks very similar to classic synchronous way: just put `await` before every async function call, that's it.
But the real usage feedback demonstrates non obvious pitfalls.
Surprisingly it's not task synchronization but timeouts and task cancellation.
Another pain is async API design: there is no guideline for async approach published yet. The speaker went through this way, he paid fare share of mistakes.
The talk collects learned lessons of four years of development such libraries: asyncio itself, aiohttp, database drivers like aiopg/aiomysql and other projects under https://github.com/aio-libs umbrella.
Andrew is a passionate Python developer with 17 years experience for the language usage.
He is Python Core Developer and author of several Open Source libraries under https://github.com/aio-libs umbrella.
The most famous his product for last years is aiohttp -- a library for making HTTP requests and buildng Web servers in asyncio style.
He is Python Core Developer and author of several Open Source libraries under https://github.com/aio-libs umbrella.
The most famous his product for last years is aiohttp -- a library for making HTTP requests and buildng Web servers in asyncio style.
Contacts
По вопросам выступления
Ирина Сарибекова
+7 921 903-45-17
irina@it-events.com
Skype:
irina.saribekova