Asynchronous Web Apps in Python

Поделиться
HTML-код
  • Опубликовано: 31 дек 2024

Комментарии •

  • @AntonioZL
    @AntonioZL 8 месяцев назад +192

    You fill a really important niche on programming youtube, which is that of intermediate+ Python content. Throughout the past 2/3 years you helped me a lot in becoming a much better developer. Thanks a bunch, James!

    • @walkdead94
      @walkdead94 8 месяцев назад +9

      True.. is hard to find new content when you are intermediate + developer

    • @Ca1vema
      @Ca1vema 8 месяцев назад

      sorry, but wsgi and asgi basics is a junior level nowadays.

    • @kaosce
      @kaosce 8 месяцев назад +9

      ​@@Ca1vema Absolutely not. Junior level is understanding what is http and how it works + basics of frameworks like Django or FastAPI but certainly not how they are implemented

    • @Ca1vema
      @Ca1vema 8 месяцев назад

      @@kaosce What you described is 12h courses, you put the bar too low :^)
      I'm not asking for implementation details, knowlege about HOW http request comes to django is enough. You know, browser, web-server, wsgi, django interaction.

  • @temik26
    @temik26 8 месяцев назад +51

    This is pure gold, thanks

    • @khanra17
      @khanra17 8 месяцев назад

      The topic is gold but this video is dog poop !

  • @draufunddran
    @draufunddran 8 месяцев назад +3

    As someone already mentioned, this channel is pure gold... The topics are awesome and the knowledge density is from another planet. This mixed with his unmatched humor is the best RUclips channel of all time. Please don't stop making python videos. You rock!

  • @smnomad9276
    @smnomad9276 8 месяцев назад +9

    Thanks for this really valuable content. Teaching the fundamentals of a technology and not just an implementation tutorial is what is really lacking in the youtube space!

  • @nitishvirtual4745
    @nitishvirtual4745 7 месяцев назад +1

    Wow! This is one of the best ASGI videos out there. Pure information for fundamentals building. Thank you very much. Keep posting more such videos.

  • @jewpcabra666
    @jewpcabra666 8 месяцев назад

    This series will be one of the best series for developers for years to come. Can't wait for the next video. Absolute banger of a vid!

  • @jurgenrusch4041
    @jurgenrusch4041 8 месяцев назад

    Hi James, a big thumbs up 👍 for your clear and excellent explanation connecting the ASGI theory/defintion to actual REST API building libraries. Some time ago a colleague asked me to write a simple REST API. I used used FastAPI. That was quite easy to do but then he asked me a feature I did not know how to implement, simply because I did not know about the 'structure' of ASGI that you have explained so well here.
    As another viewer wrote, your videos are true gold! Keep 'm coming.

  • @robosergTV
    @robosergTV 7 месяцев назад +2

    dude, thanks! I was just tasked to understand our core FastAPI app at my company, this is perfect!

  • @ejovo
    @ejovo 8 месяцев назад

    Awesome content! Been using FastAPI at work and this content is so illustrative of technical details behind the scenes. Mission accomplished, thank you!

  • @adamdapatsfan
    @adamdapatsfan 8 месяцев назад

    YES, so glad we're getting a series on this!
    It's such a great project design, can't wait to find out all the little things I've been doing wrong :P

  • @slash_me
    @slash_me 8 месяцев назад +1

    This is perfectly timed, just this week I started converting a sync web application (using uwsgi) to ASGI with Starlette, and there's another app which I think I'll want to convert next.
    I think I already know the fundamentals, but I'm excited to learn more!
    From what I've seen of Starlette, I like it a lot already. Since both of my apps are rather simple, I wanted to keep it low level and not use something like Flask or FastAPI, but Starlette feels like the perfect middle point of being somewhat low level without me having to reinvent any wheels.

  • @Khushpich
    @Khushpich 8 месяцев назад +1

    Best python content on youtube. Thanks James.

  • @matis9783
    @matis9783 8 месяцев назад +1

    Quality content as usual, the ASGI series will be great!

  • @Sandeep-zd6dq
    @Sandeep-zd6dq 8 месяцев назад +3

    Thanks for starting this amazing series 🙌

  • @nicolaipre
    @nicolaipre 8 месяцев назад +1

    This was a great video, thank you! Would also be very cool to see you implement routers, route ordering, subdomain routing and middlewares in a part 2.

  • @dirtdart81
    @dirtdart81 8 месяцев назад

    This comes at a perfect time, thank you for making this series!

  • @farhadeviltrg6116
    @farhadeviltrg6116 8 месяцев назад

    this was perfect, I couldn't understand asgi before but now its a lot more clear

  • @manuelangelsuarezalvarez3355
    @manuelangelsuarezalvarez3355 8 месяцев назад +1

    Loved the video, thanks for this kind of low level content!!

  • @Ontaro
    @Ontaro 8 месяцев назад +1

    What a genius, 10/10, liked, suscribed, and will patreon.

  • @sandie_jr
    @sandie_jr 8 месяцев назад

    Much needed! Thanks for the making series for it.

  • @AaronGayah-dr8lu
    @AaronGayah-dr8lu 4 месяца назад

    Thank you for this. Struggling with async presently.

  • @AntonLebedevEsq
    @AntonLebedevEsq 7 месяцев назад

    That's a cool quest to undertake. I'll make sure to follow along, going to be an interesting journey. Thanks!

  • @shadowviper95
    @shadowviper95 8 месяцев назад +1

    Love this content idea. Please keep it up!

  • @bool2max
    @bool2max 8 месяцев назад

    very eye opening, waiting for future installments!

  • @svaponi
    @svaponi 8 месяцев назад

    Great content! Thanks for breaking this down

  • @ramimashalfontenla1312
    @ramimashalfontenla1312 7 месяцев назад

    Waw, what a video! Thanks, awesome content!

  • @PaulaBean
    @PaulaBean 7 месяцев назад

    Very enlightening! Thanks!

  • @blitzarsun
    @blitzarsun 8 месяцев назад

    This is great! I would love to learn about deployment too.

  • @trupalcanada
    @trupalcanada 8 месяцев назад +1

    great series🎉

  • @Razerblue6
    @Razerblue6 8 месяцев назад +3

    I'm probably misunderstanding but why would a standard such as ASGI be designed for/tailored specifically towards Python? Is this not something that multiple languages (that of course support async programming) could benefit from ASGI? Is there anything fundamentally standing in the way to implement an ASGI protocol server for use in other languages?

  • @Neuroszima
    @Neuroszima 6 месяцев назад

    Now tell me if your GPT-4 explained this to you in such way. Insane quality and no bullshit

  • @nemoumbra0
    @nemoumbra0 8 месяцев назад

    4:57 Can this be expressed via the `Coroutine` from `typing`?
    (btw, I use Manjaro, not Arch)

  • @dojjy5798
    @dojjy5798 8 месяцев назад

    Another master piece

  • @MocSomething
    @MocSomething 8 месяцев назад

    The opening description of all the magic sounded like Laravel for Python!

  • @mistervallus185
    @mistervallus185 8 месяцев назад +9

    i actually want to see the regex for the http request header

    • @failgun
      @failgun 8 месяцев назад

      stack overflow question 1732348. _that_ answer. It is not possible to do this.

    • @noel.friedrich
      @noel.friedrich 8 месяцев назад

      It's not possible to create such a regex, as the spec for it isn't a regular language! Fun - right?

  • @Ca1vema
    @Ca1vema 8 месяцев назад

    2:20, you could and you should write an HTTP parser, as en exercise. It's easy to understand and work with. After that you got a knowledge not only on protocol but also on how it works.
    With such great number of frameworks, new coming developers do not understand basics, and it's a shame.

  • @this-one
    @this-one 8 месяцев назад

    Great content, as always.

  • @RoyAAD
    @RoyAAD Месяц назад

    Great series.
    I am working on ML solutions. These work better in batches. Is there a way to batch several requests together, process, then send them back separately? If yes, what would be the best approach?

  • @jakedunn9241
    @jakedunn9241 8 месяцев назад +3

    Whats the stack overflow pic?

    • @mr.vladislav5746
      @mr.vladislav5746 8 месяцев назад +2

      Google: RegEx match open tags except XHTML self-contained tags.
      It's the top answer to that stack overflow post (won't link cuz my comment will probably be removed then)

  • @aashayamballi
    @aashayamballi 8 месяцев назад

    Thank you!

  • @yomajo
    @yomajo 7 месяцев назад

    What is print(objects...)?

  • @sakost
    @sakost 8 месяцев назад +3

    ..... 0:53 and authorization
    (sry, I couldn't resist)
    (btw I use arch (and keycloack) )

    • @mCoding
      @mCoding  8 месяцев назад +6

      Authorization was actually cut in the edit for time :)

  • @CASnumber
    @CASnumber 7 месяцев назад

    Quality content

  • @prakashkalluri64
    @prakashkalluri64 7 месяцев назад

    Instructions unclear. Started raising a whole herd of goats

  • @JohnWasinger
    @JohnWasinger 8 месяцев назад

    Would this be an alternative to using Django or as a companion to?

    • @mCoding
      @mCoding  8 месяцев назад +2

      Django is primarily a synchronous framework that uses WSGI, the synchronous predecessor to ASGI. Django has added ASGI support, so it is technically "companion to," but the support is more like a wrapper that speaks ASGI to the outside but remains synchronous on the inside. Support continues to improve with each release, though, so it may add native asynchronous support in the future.

  • @YuvrajRaghuvanshiS
    @YuvrajRaghuvanshiS 8 месяцев назад +2

    Yesss❤

  • @monorepo
    @monorepo 8 месяцев назад +1

    When's the Litestar series drop? 👀

  • @JohnFallot
    @JohnFallot 8 месяцев назад +3

    Discord gang lets goooo

    • @mCoding
      @mCoding  8 месяцев назад

      First, gratz!

  • @sscapture
    @sscapture 8 месяцев назад

    Super!

  • @tan.nicolas
    @tan.nicolas 8 месяцев назад

    u rock! thank you so much

  • @agb2557
    @agb2557 7 месяцев назад

    Amazing

  • @iury664
    @iury664 7 месяцев назад

    no need to pass self as the first argument in get, post, patch...functions ?

  • @BR-lx7py
    @BR-lx7py 8 месяцев назад

    So ASGI is the newfangled CGI?

  • @jdratlif
    @jdratlif 8 месяцев назад

    This was really interesting. Thanks!

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 8 месяцев назад

    Great!

  • @thisoldproperty
    @thisoldproperty 7 месяцев назад

    Kill -9
    Similar to other times when you have shown that Python isn't in complete control of its facilities.

    • @mCoding
      @mCoding  7 месяцев назад

      I think this might actually be a uvicorn issue. I know they set up signal handlers, and they probably just aren't handling sigint properly.

  • @hoteny
    @hoteny 8 месяцев назад

    2:32 im very curious now

  • @baja
    @baja 8 месяцев назад

    As always, great video but the `q: str = None` is really killing me 😬

  • @glorytoarstotzka330
    @glorytoarstotzka330 7 месяцев назад

    I am worried that it won't get many views and that the series will stop, even if it will be really useful for a bunch of people (if not now, in the future, when algorithm might decide so)

  • @soyitiel
    @soyitiel 8 месяцев назад +1

    0:25 that's exactly how I feel whenever I'm learning a new python library

  • @denispmaciel
    @denispmaciel 8 месяцев назад

    T-H-A-T
    I-S
    G-R-E-A-T
    !!!

  • @jullien191
    @jullien191 7 месяцев назад

    No he entendido

  • @jadore801120
    @jadore801120 8 месяцев назад

    Gj

  • @b33thr33kay
    @b33thr33kay 7 месяцев назад

    Asynchronous programming is still so weird to me 😭

  • @Mekuso8
    @Mekuso8 8 месяцев назад

    I really like this video. The only real problem is that you keep referring to FastAPI, as if it were some sort of de-facto standard ASGI server in Python. I don't think this is fair. Litestar in particular is drastically more based

    • @ejovo
      @ejovo 8 месяцев назад

      FastAPI _is_ the de facto standard. Doesnt mean its the best though!

  • @greob
    @greob 8 месяцев назад +1

    Great demonstration! Very excited for other videos about this topic! Thanks for sharing!

  • @abhijithalder4996
    @abhijithalder4996 8 месяцев назад

    24k gold 🪙