Async application classes vs. functions

Поділитися
Вставка
  • Опубліковано 26 вер 2024

КОМЕНТАРІ • 14

  • @draufunddran
    @draufunddran 4 місяці тому +21

    Are you by any chance writing a book about python or creating a course? I would 100% buy anything that was created by you.

    • @mCoding
      @mCoding  4 місяці тому +13

      I don't have any plans to write a book or make a course at the moment, my consulting business keeps me quite busy! But thank you for saying so, I appreciate your support, and I'll keep it in mind for the future.

  • @TheFerdi265
    @TheFerdi265 4 місяці тому +4

    I really love your videos!
    I started watching back when you mostly did short Python and C++ videos, and watched them even though I knew most of it already, mostly because of the clear way you presented things, and it allowed me to gain an even better understanding of it.
    Thank you!
    EDIT: Now, you increasingly cover topics that are a bit new to me, but you cover it so well that I immediately understand. You're a great teacher!

  • @lm-gn8xr
    @lm-gn8xr 4 місяці тому +4

    Where is the better place to store a database connection: as a global variable or as a member variable of the application object ?

    • @doctor_py42
      @doctor_py42 4 місяці тому +1

      You mostly won't use ASGI directly, but I think you should use a connection pool (for example sqlalchemy comes with one already) and get a connection from it when you need it. Since requests would be performed concurrently you can't use single connection (most dbs, e.g. postgres don't support performing multiple operations concurrently on a single connection).

  • @aashayamballi
    @aashayamballi 4 місяці тому

    thank you!

  • @bereck7735
    @bereck7735 4 місяці тому

    nice video

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 4 місяці тому

    Letsgoo

  • @ЕвгенийКрасилов-о9о
    @ЕвгенийКрасилов-о9о 4 місяці тому +1

    That was... Fast 😢 But stick to your plan if you think this is better! Though I really enjoy your godlike videos and wish it was a little bit longer😅

  • @30IYouTube
    @30IYouTube 4 місяці тому

    fIsrt!

  • @kicknotes
    @kicknotes 4 місяці тому +2

    Why so many ho-bots here only 12 minutes after the video went live? sigh.

  • @Landee
    @Landee 4 місяці тому +29

    I thought you were joking when you said "thanks for watching..." But no 🥲