How to Improve Django 3.1 View Performance with Async Support

Written by NextLink Labs | Published 2021/01/02
Tech Story Tags: django | django-tips | python-programming | api | good-company | asynchronous | coding

TLDR Django 3.1 was recently released and along with it came support for asynchronous views. This means Python’s Asyncio library can be used inside of Django views. The main benefits are the ability to service hundreds of connections without using Python threads. This makes it possible to make the four API calls in the previous example concurrently meaning the view could take roughly one second in total if using four workers. By all accounts, the practice cuts down on the time needed and improves the calls.via the TL;DR App

no story

Written by NextLink Labs | We're a Pittsburgh-based DevOps consulting and technical execution company founded by developers.
Published by HackerNoon on 2021/01/02