Тёмный

WSGI for Web Developers (Ryan Wilson-Perkin) 

PyCon Canada
Подписаться 15 тыс.
Просмотров 93 тыс.
50% 1

WSGI is the foundation of most Python web frameworks, but there's a good chance you've never had to interact with it directly. In this talk we'll explore why it exists, how it works, and what the heck it's doing in your stack.
A great web framework abstracts away all the low-level stuff so that you can focus on the core functionality of your application. This is helpful for getting you going quickly but can be a source of frustration when you want to start optimizing your application. In the Law of Leaky Abstractions Joel Spolsky makes the case that abstracting away the low-level stuff prevents us from learning important concepts.
So let's learn about WSGI.
WSGI is the Web Server Gateway Interface and it's the foundation of almost every Python web framework. This isn't going to be a talk that you'll walk out of with immediate tips for tuning your web service (don't worry, Graham Dumpleton has that covered). Instead, you'll develop an appreciation for the low-level goings on of your stack every time you handle a request.
This talk is intended primarily for Python web developers, but should be approachable for anyone with an intermediate experience of Python. I look forward to talking to you!
Presentation page -- 2018.pycon.ca/talks/talk-PC-5...

Наука

Опубликовано:

 

7 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 88   
@dannypringle3799
@dannypringle3799 5 лет назад
Some people are built to teach!
@crisycochea
@crisycochea 4 года назад
Totally!
@evgenyocean426
@evgenyocean426 3 года назад
Totally!
@w1d3r75
@w1d3r75 2 года назад
Totally!
@ng2250
@ng2250 2 года назад
Totally!
@fabtjar
@fabtjar 2 года назад
Totally!
@karolisg.3096
@karolisg.3096 4 года назад
This is the single most important presentation I have ever watched.
4 года назад
Wow this was the talk I never knew I needed... holy shit. This speaker is amazing. Thank you..
@Overthought7
@Overthought7 4 года назад
Holy crap, this was *such* a helpful presentation! Thank you so much!
@essamgouda1609
@essamgouda1609 2 года назад
What a brilliant presentation. Love it when people abstract ideas that simply, thank you !
@BioHazarddasdadfasfsad
@BioHazarddasdadfasfsad 4 года назад
Either this video is very underrated or nobody bothers himself thinking how the heck request is handled in Jango or in Flask in the background
@sineadward5225
@sineadward5225 Год назад
or herself
@JesusNoland
@JesusNoland 3 года назад
Such an amazing presentation. Thank you so much for that breakdown. Been using Django and Flask for years and took WSGI for granted.
@alesolano5507
@alesolano5507 3 года назад
Damn, how I love this video. I watched it 6 months ago and it was sooo revealing. I'm watching it again now and it's even more revealing. Can't wait until next year.
@joseduarte5663
@joseduarte5663 Год назад
Awesome talk, there is just so much content on the web that tries to explain this topics but somehow end up missing the point entirely. The actual simple implementation/example is what helped me the most, thank you!
@2c7s
@2c7s 4 года назад
Really Impressed with that breakdown of concepts and the demon.
@TheNzdavis
@TheNzdavis 2 года назад
The only presentation that makes sense. Unassuming and well organized, perfect for someone like me who just started using Django. I have been using PHP all my life but now I appreciate python so much. Thanks to you Ryan. :D
@bakza.5661
@bakza.5661 4 года назад
Brilliantly explained, looking forward to attending the next pycon
@d3vwannabe
@d3vwannabe 7 месяцев назад
Amazing. I don't see how any free content can be better than this. One of the best I ever seen.
@usmanmaqsood5945
@usmanmaqsood5945 4 года назад
Thank you Ryan for amazing presentation.
@jayhu6075
@jayhu6075 4 года назад
Thanks for this useful talk..Hopely more from this stuff in the future.
@haccks.
@haccks. Год назад
I learned it hard way! I went over Django and unicorn source code to understand it. But this is a gem. I wish I could have found this video earlier. Inspired from this talk I rebuild a WSGI server and applications side. I added few more features like handling GET request with query params and POST request etc,. Code is pretty well documented and followed the similar design. Will try to post the link of GitHub repo once push it there.
@a.for.arun_
@a.for.arun_ 2 года назад
Absolutely wonderful presentation. Loved it.
@prathameshdesai5484
@prathameshdesai5484 Год назад
Amazing work! Its years of work and knowledge summarized in 24 mins (awesome flow)
@typwriter1991
@typwriter1991 9 месяцев назад
Thanks for the explanation and example code on how the WSGI and web server are working together. The code demonstrate how they both work together step byt step in a very clear way.
@ahfbemdlcnr
@ahfbemdlcnr 4 года назад
It's CRAZY. What an incredible presentation
@emadgkamel
@emadgkamel 5 лет назад
Great presentation Ryan, thanks
@ehsanjalali4586
@ehsanjalali4586 2 года назад
you make a hard subject simple and understandable, thanks.
@user-lb1qy7rp5k
@user-lb1qy7rp5k 4 года назад
Thank's man, that's an explanation I was looking for!
@anirudhreddybasani3555
@anirudhreddybasani3555 4 года назад
Simply superb presentation 👌🙌
@friesmaker
@friesmaker 4 года назад
Amazing presentation!! Loved it
@AhmedBilalKhalid
@AhmedBilalKhalid 5 лет назад
Excellent Presentation.
@MagnusAnand
@MagnusAnand 4 года назад
this presentation is amazing
@abdallahmahmoud8642
@abdallahmahmoud8642 5 лет назад
Great Presentation
@santidev_
@santidev_ 2 года назад
Learned a lot from this presentation, thanks :)
@scienceblossom6197
@scienceblossom6197 4 года назад
Really amazing video. Thanks.
@McKisiek
@McKisiek Год назад
Excellent presentation. Thank you.
@mrlildylchillin
@mrlildylchillin Год назад
This talk was fantastic. Thank you
@mirmohammadjaber2676
@mirmohammadjaber2676 3 года назад
Awesome presentation. Thanks.
@UnleashedEntomber
@UnleashedEntomber Год назад
Great talk, watching 2nd time after 1 year.
@domfree7710
@domfree7710 3 года назад
very informative, good for backend development.
@seburath2188
@seburath2188 4 года назад
great talk, thank you!
@robinsingh4492
@robinsingh4492 4 года назад
Best explanation about the topic.
@ozkaa
@ozkaa 4 года назад
brilliant talk!
@PhilipKavanagh
@PhilipKavanagh 4 года назад
Excellent Presentation
@pavolkovalik3593
@pavolkovalik3593 3 года назад
This is excellent explanation.
@shuvam6952
@shuvam6952 3 года назад
Ten seconds in and I already like it!
@georgeli6820
@georgeli6820 2 года назад
great video! Now I understand it!
@kabakiAntony
@kabakiAntony 2 года назад
This was a very good presentation.
@jankinsics
@jankinsics 4 года назад
Great talk.
@zhipengwang1
@zhipengwang1 4 года назад
amazing voice, explaination
@mohamedabdelmoneim5721
@mohamedabdelmoneim5721 3 года назад
Awesome task, thank you
@kingmanzhang
@kingmanzhang 3 года назад
It is an excellent talk!
@AnjaliPardeshi
@AnjaliPardeshi 4 года назад
Thanks a lot!!
@StrangeIndeed
@StrangeIndeed 3 года назад
this needs more views
@muralidhar40
@muralidhar40 2 года назад
Well done, Ryan.
@hunterxvov4ik
@hunterxvov4ik 4 месяца назад
simply brilliant
@yurakhrolenko3605
@yurakhrolenko3605 Год назад
soooo awesome!!!
@shivangitomar5557
@shivangitomar5557 2 года назад
Amazing!
@AnantaAkash.Podder
@AnantaAkash.Podder Год назад
Loved the presentation... The exact thing which i wanted... To get to the ROOT level of how Http Reqs are converted in my Django Views...🤔
@edchelstephens
@edchelstephens 2 года назад
Thank you!
@JK-sy4ym
@JK-sy4ym 4 года назад
This guy is a genius.
@aliasnotavailable
@aliasnotavailable Год назад
great talk
@abhinavmishra9401
@abhinavmishra9401 2 года назад
The coolest pycon so far!
@ahasibrifat7568
@ahasibrifat7568 3 года назад
Thanks a loot man!
@RandomAlexus
@RandomAlexus 4 года назад
Fantastic
@yaswanthravuri8450
@yaswanthravuri8450 3 года назад
I wish I could give a presentation like this in my class
@mehdi-vl5nn
@mehdi-vl5nn 2 года назад
amazing
@higiniofuentes2551
@higiniofuentes2551 3 года назад
Very good teaching! But what to do when you can't install the wsgi module. I'm in RHEL8
@carlosblk
@carlosblk 3 года назад
im getting this error in the second request: Traceback (most recent call last): File "server.py", line 31, in request_http = parse_http(conn.recv(1024).decode('utf-8')) OSError: [Errno 9] Bad file descriptor
@ndeoligence8
@ndeoligence8 3 года назад
Try: ```def start_application(port): with socket.socket() as sock: sock.bind(('localhost', port)) print(f"Listening for connections on port {port}...") sock.listen(1) while True: with sock.accept()[0] as conn: req = parse(conn.recv(1024).decode('utf-8')) print(f"Request: [[{req}]]") if not req: break stat, res = index(req) conn.sendall(fmt(stat, res).encode('utf-8'))```
@abcdefg1492
@abcdefg1492 3 года назад
Very nice..I came here because why I don't know what is what when I try to deploy django app in production with apache server...
@sajal_sarwar
@sajal_sarwar 4 года назад
How can I thank this guy? :)
@vlad_covers
@vlad_covers 11 месяцев назад
Каеф!
@yashvarshney8651
@yashvarshney8651 17 дней назад
great
@qzorn4440
@qzorn4440 3 года назад
heeey did these kool names come from the grandkids of the 60"s hippies on lsd?.....:/ wonderful video thanks...:)
@yaswanthravuri8450
@yaswanthravuri8450 3 года назад
Would be better if u have included working of middleware..
@raysilitonga8548
@raysilitonga8548 2 года назад
Thank you for this great tutorial, much appreciated. However, I need extra guidance relative to my situation. I have built my Python Script on VSCode using Flask Framework. My target is to deploy that Python Script to Apache server without Flask so I can implement thread safe/multi thread/multi process using WSGI as I expect the application will have massive number of users. What is the way forward for me? Again, thank you in advance for any suggestion that you may provide.
@pablogarin
@pablogarin 3 года назад
wsgi is not magic, but whisky is :D
@83457
@83457 3 года назад
Please redo this talk as a musical. kthxbye
@abhijithalder4567
@abhijithalder4567 4 года назад
Wisgi developers are only jealous, thats why they disliked this simplicity
@mirahmad1275
@mirahmad1275 2 года назад
I could not understand a thing, :
@randall.chamberlain
@randall.chamberlain 6 месяцев назад
What a fenomemal presenter!!! Geez...
Далее
FastAPI, Flask or Django - Which Should You Use?
9:49
#kikakim
00:23
Просмотров 8 млн
СМОТРИМ YOUTUBE В МАЙНКРАФТЕ
00:34
Просмотров 1,4 млн
Application server | Протоколы | CGI | WSGI
36:16
Web Developer Roadmap (2024) - Everything is Changing
25:02
WSGI & ASGI Simplified
6:47
Просмотров 34 тыс.
Apache vs NGINX
7:53
Просмотров 276 тыс.
All You Need to Know about WSGI
11:11
Просмотров 65 тыс.
Cool Gaming PC Build! #shorts
1:00
Просмотров 4,4 млн