9 Web applications

This chapter covers

  • Creating web applications with aiohttp
  • The asynchronous server gateway interface (ASGI)
  • Creating ASGI web applications with Starlette
  • Using Django’s asynchronous views

Web applications power most of the sites we use on the internet today. If you’ve worked as a developer for a company with an internet presence, you’ve likely worked on a web application at some point in your career. In the world of synchronous Python, this means you’ve used frameworks such as Flask, Bottle, or the extremely popular Django. With the exception of more recent versions of Django, these web frameworks were not built to work with asyncio out of the box. As such, when our web applications perform work that could be parallelized, ...

Get Python Concurrency with asyncio now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.