Learn Python with Talk Python's Python courses

Async for the Pythonic web with Sanic

Episode #188, published Sat, Dec 1, 2018, recorded Tue, Nov 20, 2018.

This episode is carbon neutral.
What do most web servers do most of the time? They wait. They wait on external systems while processing a request.

Think about a standard web request to an ecommerce site where you are logged in. You send it a session cookie and a URL. It pulls a bunch of items from a database, a Redis cache, and an external API.

Virtually all this time is spent waiting. That is exactly what asyncio is built for. But to take advantage of it in Python web frameworks, the framework itself has to support async methods.

That's what Sanic was built to do. On this episode, you'll meet Adam Hopkins who is leading the Sanic project.

Links from the show

Adam on Twitter: @admhpkns
Sanic: sanicframework.org
Matrix Retail (Adam's workplace): matrixretail.com
Sanic discussion and community: community.sanicframework.org
awesome-asyncio list: github.com/timofurrer/awesome-asyncio
Sanic extensions: sanic.readthedocs.io
pytest-sanic: sanic.readthedocs.io
Django async roadmap: aeracode.org
Episode transcripts: talkpython.fm

Stay in touch with us
Subscribe on YouTube (for live streams): youtube.com
Follow Talk Python on Twitter: @talkpython
Follow Michael on Twitter: @mkennedy

Want to go deeper? Check out our courses

Adam Hopkins
Adam Hopkins
Episode sponsored by
Ads served ethically
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.