Django async HTTP requests with asyncio and aiohttp

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ •

  • @gabbe2124
    @gabbe2124 2 роки тому +1

    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.

  • @janakisasidhar7582
    @janakisasidhar7582 3 роки тому +11

    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 роки тому +3

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

  • @jairajsahgal7101
    @jairajsahgal7101 11 місяців тому +1

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

  • @CoentraDZ
    @CoentraDZ 3 роки тому

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

  • @StoneZhong
    @StoneZhong 2 роки тому +1

    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.

  • @dipendranath6429
    @dipendranath6429 3 роки тому +1

    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.

  • @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.

  • @razzsawhoney2818
    @razzsawhoney2818 3 роки тому +4

    @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 роки тому +1

      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?

  • @justacasualdeveloper
    @justacasualdeveloper 3 роки тому

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

  • @orkhanrustamli2039
    @orkhanrustamli2039 3 роки тому +1

    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!

  • @salahuddinbangash4785
    @salahuddinbangash4785 2 роки тому

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

  • @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?

  • @seandiamond7983
    @seandiamond7983 3 роки тому

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

  • @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

  • @НикитаСавченко-и6ч

    MAN, you cool!) Thanks

  • @noonespecial270
    @noonespecial270 3 роки тому

    greate content. just what I searched for.

  • @AcademyOmen
    @AcademyOmen 3 роки тому

    This is awesome, Thanks Sir🙏

  • @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?!?

  • @tungleanh9993
    @tungleanh9993 3 роки тому +1

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

    • @veryacademy
      @veryacademy  3 роки тому +1

      Thanks Tung, the main thing is you found it, and am happy it was useful for you 👍

  • @djangodeveloper07
    @djangodeveloper07 3 роки тому

    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 ?

  • @hernanfigueroa6149
    @hernanfigueroa6149 2 роки тому

    Good tutorial and with pokemons :))

  • @detofaentreprise9427
    @detofaentreprise9427 3 роки тому +1

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

    • @veryacademy
      @veryacademy  3 роки тому +1

      Channels extends Django's abilities beyond HTTP - to handle WebSockets, chat protocols, IoT protocols.

    • @detofaentreprise9427
      @detofaentreprise9427 3 роки тому

      @@veryacademy thank you

  • @taepark5222
    @taepark5222 3 роки тому +1

    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

  • @codedjango
    @codedjango 3 роки тому

    Excellent tutorial :)

  • @Newascap
    @Newascap 3 роки тому +1

    You are the best man

  • @djangodeveloper2973
    @djangodeveloper2973 2 роки тому

    real django coding. why he can't much views? please help him to get a lot of views.

  • @armanahmed4806
    @armanahmed4806 3 роки тому +1

    Hy zander plz make react django integration video

  • @ahmedghallab5342
    @ahmedghallab5342 Рік тому

    شكرا Thanks

  • @davishek7
    @davishek7 3 роки тому

    👌💁

  • @rangabharath4253
    @rangabharath4253 3 роки тому

    awesome

  • @kevinpaullamadrid9621
    @kevinpaullamadrid9621 3 роки тому

    Thank you for Sharing do more video sir!!!

  • @AcademyOmen
    @AcademyOmen 3 роки тому

    This is awesome, Thanks Sir🙏