Serdar Yegulalp
Senior Writer

Django 3 taps Python async to speed web apps

news
Dec 2, 20192 mins

Popular Python web development framework adds support for async to improve web application performance

teach train direct coach stop watch speed
Credit: Thinkstock

Django 3.0, the newest version of the Python framework that allows fast creation of database-backed websites and web services, now supports Python async, one of the most powerful new features in Python to make websites and network services faster.

Async allows Python programs, especially networking apps, to run more efficiently, but existing applications must be rewritten to use it. Django 3 will only work with Python 3.6 and later versions, the better to work with Python’s async programming features. 

A key way Django provides support for async is via ASGI, a protocol that serves as a standard interface between asynchronous Python applications and async-capable web servers. Previously, Django only supported WSGI, which only supported synchronous web applications. Django 3 will only allow async features to run in an app if it’s deployed as ASGI.

Django is a long-standing fixture of the Python web development community. It provides out-of-the-box implementations of many features common to websites—database connectivity, user accounts and user management, templating (to render web pages using data), logging and error handling, uploading files, and so on.

As with Python generally, Django’s convenience comes at the cost of relatively slow performance. Adding async to Django, though, means it may enjoy a performance boost for certain operations, such as handling multiple concurrent requests with less latency.

Many of the other new features on Django 3 are incremental, such as support for MariaDB 10.1 and up, removing APIs used for backward compatibility with Python 2 (as Python 2 is fast approaching end of support), and many additional features throughout.

Serdar Yegulalp

Serdar Yegulalp is a senior writer at InfoWorld. A veteran technology journalist, Serdar has been writing about computers, operating systems, databases, programming, and other information technology topics for 30 years. Before joining InfoWorld in 2013, Serdar wrote for Windows Magazine, InformationWeek, Byte, and a slew of other publications. At InfoWorld, Serdar has covered software development, devops, containerization, machine learning, and artificial intelligence, winning several B2B journalism awards including a 2024 Neal Award and a 2025 Azbee Award for best instructional content and best how-to article, respectively. He currently focuses on software development tools and technologies and major programming languages including Python, Rust, Go, Zig, and Wasm. Tune into his weekly Dev with Serdar videos for programming tips and techniques and close looks at programming libraries and tools.

More from this author