In this tutorial, we'll build an example using the async view and compare it to a sync view using a mock HTTP request service.

Async views are a great way to handle concurrency in an application and provide many advantages over their synchronous view counterpart. If a task is CPU bound, your web application will have to wait for a response when sending a request. This leads to a blocking I/O and may require more cores on the operating system processes the server is running on. Until the database is done running the query or the image loading is complete, the browser running the web app will be blocked.


How to Build Django Currently Handles Asynchronous Views
1.80 GEEK