paint-brush
How to Improve Django 3.1 View Performance with Async Supportby@NextLink Labs
637 reads
637 reads

How to Improve Django 3.1 View Performance with Async Support

by NextLink Labs4mJanuary 2nd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - How to Improve Django 3.1 View Performance with Async Support
NextLink Labs HackerNoon profile picture
NextLink Labs

NextLink Labs

@NextLink Labs

We're a Pittsburgh-based DevOps consulting and technical execution company founded by developers.

Learn More
L O A D I N G
. . . comments & more!

About Author

NextLink Labs HackerNoon profile picture
NextLink Labs@NextLink Labs
We're a Pittsburgh-based DevOps consulting and technical execution company founded by developers.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite