Django async HTTP requests with asyncio and aiohttp

preview_player
Показать описание
In this tutorial we explore, for reference only, using async within django views. The tutorial goes a long way towards illustrating its core functionality of async functions and more specifically showcasing the speed and performance of async functions in contrast this to the synchronous approaches.

Code Repository:

🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.

👍SUBSCRIBE to get more free tutorials, courses and code snippets!
Рекомендации по теме
Комментарии
Автор

Nice, please do more about event loop and tasks in general. Great content btw <3

janakisasidhar
Автор

i was losing it before this video, didn't know how i would handle the performance issues on my django project. Now i know. Thank you alot!

gabbe
Автор

Yes!!!! been waiting for this so long!!! Thanks!

Mathias-cqzo
Автор

Very good tutorial. This can improve the speed of APIs a lot.

jairajsahgal
Автор

This was a super clear explanation and good example used, keep going you are the best.

CoentraDZ
Автор

Nice and clear description, but what about posting to external APIs and performing action according to return status ( ok, error, server down, no response etc ). I am very much interested to know about it.

dipendranath
Автор

I think running django development server won't allow you to fully leverage the benefit of async view, since django development server will spawn new thread for each "async" view, run it in a true asgi server (e.g. uvicorn) would allow you to fully leverage the advantage of async view.

StoneZhong
Автор

Great Video. 😁😁😁. Only one way to describe it would be to say "Perfect"

justacasualdeveloper
Автор

Hey, again as same as before great content! But, could you please do a detailed tutorial about asynchronous programming with Python so that understanding asyncio with Django will be more efficient! Thanks in advance!

orkhanrustamli
Автор

@Zander Can you please make a video on how to implement an api(POST) accepting data in encrypted form not just plain text as usual ? I mean how can we implement end to end encryption on whatever data we post through our rest api.
Or something like appending the signature along with the post data. And signature will be nothing but the encrypted data itself encrypted using some public key which can later be cross checked in the backend side.
I really love your contents.
Love 😍 from Nepal

razzsawhoney
Автор

Hey! Is it right that before django 3 to implement what you have shown in the video, we had to manually create an event loop and run it?

evgenyocean
Автор

Great tutorial. Going to subscribe. Please do a tutorial for adding async data to the database please.

seandiamond
Автор

Why is Second Implementation also so much faster?
Shouldn't it be similar to the first implementation(synchronous) because in the for loop, it seems to be waiting for the response before going to the next iteration?

버터-vt
Автор

​ Hi @Very Academy ı can't find your django core sessions. When you have a time, Could you please make a playlist of all your dkango core related videos ? Thank you.

ogzhn
Автор

greate content. just what I searched for.

noonespecial
Автор

Take a look of concurrent futures package you will love it.

salahuddinbangash
Автор

just super. can not believe this video get under 100k views...

tungleanh
Автор

Why cant I render my Api call? It says use async to sync or threads. I could not solve that with research

dasetwas
Автор

hi great tutorial as usual. i was finding something else and found you again. for example if we have 1000 requests data to show in template. can we show data of each request whenever request data returns like
request 1: loading
request 2: success here is your data value
request 3: success here is your data value
request4: loading
request5: fail etc
and each request is on different api
. feel like real app data. need it very badly any guide or help ?

djangodeveloper
Автор

hi . what is the difference between this and django channels??

detofaentreprise