Django async HTTP requests with asyncio and aiohttp

  Рет қаралды 22,759

Very Academy

Very Academy

Күн бұрын

Пікірлер: 52
@janakisasidhar7582
@janakisasidhar7582 3 жыл бұрын
Nice , please do more about event loop and tasks in general. Great content btw
@ytg6663
@ytg6663 2 жыл бұрын
He is already teaching this in his course. Have a look on his udemy course
@Mathias-cq3zo
@Mathias-cq3zo 3 жыл бұрын
Yes!!!! been waiting for this so long!!! Thanks!
@veryacademy
@veryacademy 3 жыл бұрын
Hope you like it!
@jairajsahgal7101
@jairajsahgal7101 8 ай бұрын
Very good tutorial. This can improve the speed of APIs a lot.
@veryacademy
@veryacademy 8 ай бұрын
Yes, definitely
@CoentraDZ
@CoentraDZ 3 жыл бұрын
This was a super clear explanation and good example used, keep going you are the best.
@justacasualdeveloper
@justacasualdeveloper 3 жыл бұрын
Great Video. 😁😁😁. Only one way to describe it would be to say "Perfect"
@StoneZhong
@StoneZhong 2 жыл бұрын
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.
@hernanfigueroa6149
@hernanfigueroa6149 2 жыл бұрын
Good tutorial and with pokemons :))
@orkhanrustamli2039
@orkhanrustamli2039 3 жыл бұрын
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!
@razzsawhoney2818
@razzsawhoney2818 3 жыл бұрын
@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
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Razz - I will just talk as though you might not had thought about this first. Encryption of data might add quite a bit of processing on the server side. Might HTTPS not be suitable for your situation?
@razzsawhoney2818
@razzsawhoney2818 3 жыл бұрын
Exactly we need to cross check whether we got the genuine data or not in the backend. Please go through my previous comment once again I have edited it somewhat. Thank you.
@버터-v1t
@버터-v1t Жыл бұрын
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?
@noonespecial270
@noonespecial270 2 жыл бұрын
greate content. just what I searched for.
@ogzhn
@ogzhn 2 жыл бұрын
​ 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.
@AcademyOmen
@AcademyOmen 3 жыл бұрын
This is awesome, Thanks Sir🙏
@djangodeveloper2973
@djangodeveloper2973 2 жыл бұрын
real django coding. why he can't much views? please help him to get a lot of views.
@seandiamond7983
@seandiamond7983 2 жыл бұрын
Great tutorial. Going to subscribe. Please do a tutorial for adding async data to the database please.
@Newascap
@Newascap 3 жыл бұрын
You are the best man
@veryacademy
@veryacademy 3 жыл бұрын
👍
@salahuddinbangash4785
@salahuddinbangash4785 2 жыл бұрын
Take a look of concurrent futures package you will love it.
@dasetwas1745
@dasetwas1745 2 жыл бұрын
Why cant I render my Api call? It says use async to sync or threads. I could not solve that with research
@ahmedghallab5342
@ahmedghallab5342 Жыл бұрын
شكرا Thanks
@codedjango
@codedjango 3 жыл бұрын
Excellent tutorial :)
@daiyanhossainchowdhury5867
@daiyanhossainchowdhury5867 3 жыл бұрын
I wrote my code exactly like yours but I am getting content type error at / please help
@truthdawn7773
@truthdawn7773 2 жыл бұрын
Does that work with WSGI app?!?
@dipendranath6429
@dipendranath6429 3 жыл бұрын
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.
@taepark5222
@taepark5222 3 жыл бұрын
Is anyone able to explain me what * in the *action does?
@veryacademy
@veryacademy 3 жыл бұрын
The operators + and * can be used to concatenate lists - here we choose everything in the list
@evgenyocean426
@evgenyocean426 2 жыл бұрын
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?
@djangodeveloper07
@djangodeveloper07 2 жыл бұрын
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 ?
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome
@armanahmed4806
@armanahmed4806 3 жыл бұрын
Hy zander plz make react django integration video
@navarajpokharel8980
@navarajpokharel8980 3 жыл бұрын
he already did how much do you want?
@kevinpaullamadrid9621
@kevinpaullamadrid9621 3 жыл бұрын
Thank you for Sharing do more video sir!!!
@veryacademy
@veryacademy 3 жыл бұрын
More to come!
@davishek7
@davishek7 3 жыл бұрын
👌💁
@НикитаСавченко-и6ч
@НикитаСавченко-и6ч 2 жыл бұрын
MAN, you cool!) Thanks
@tungleanh9993
@tungleanh9993 3 жыл бұрын
just super. can not believe this video get under 100k views...
@veryacademy
@veryacademy 3 жыл бұрын
Thanks Tung, the main thing is you found it, and am happy it was useful for you 👍
@gabbe2124
@gabbe2124 2 жыл бұрын
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!
@veryacademy
@veryacademy 2 жыл бұрын
Thanks Gabbe, good luck with your project.
@detofaentreprise9427
@detofaentreprise9427 2 жыл бұрын
hi . what is the difference between this and django channels??
@veryacademy
@veryacademy 2 жыл бұрын
Channels extends Django's abilities beyond HTTP - to handle WebSockets, chat protocols, IoT protocols.
@detofaentreprise9427
@detofaentreprise9427 2 жыл бұрын
@@veryacademy thank you
@AcademyOmen
@AcademyOmen 3 жыл бұрын
This is awesome, Thanks Sir🙏
Sentry Django Integration - Error Reporting
14:32
Very Academy
Рет қаралды 8 М.
Python Async |  Asynchronous IO Introduction
31:10
Very Academy
Рет қаралды 34 М.
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 132 МЛН
Самое неинтересное видео
00:32
Miracle
Рет қаралды 2,9 МЛН
Requests vs HTTPX vs Aiohttp
15:11
ArjanCodes
Рет қаралды 37 М.
Django Aggregation
19:13
Very Academy
Рет қаралды 18 М.
Async Django - presented by Ivaylo Donchev
30:47
EuroPython Conference
Рет қаралды 6 М.
django Architecture - Connection Management
15:10
Hussein Nasser
Рет қаралды 48 М.
ASYNCIO НА ПРАКТИЧЕСКОМ ПРИМЕРЕ
22:44
luchanos
Рет қаралды 28 М.
DjangoCon 2020 | How To Break Django: With Async - Andrew Godwin
31:21
DjangoCon Europe
Рет қаралды 9 М.
Python Asyncio, Requests, Aiohttp | Make faster API Calls
17:56
Patrick Collins
Рет қаралды 132 М.
Celery for asynchronous tasks in Django
8:46
Django road
Рет қаралды 7 М.