WSGI for Web Developers (Ryan Wilson-Perkin)

  Рет қаралды 91,708

PyCon Canada

PyCon Canada

Күн бұрын

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

Пікірлер: 87
@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..
@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.
@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 !
@2c7s
@2c7s 4 жыл бұрын
Really Impressed with that breakdown of concepts and the demon.
@d3vwannabe
@d3vwannabe 6 ай бұрын
Amazing. I don't see how any free content can be better than this. One of the best I ever seen.
@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
@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!
@usmanmaqsood5945
@usmanmaqsood5945 4 жыл бұрын
Thank you Ryan for amazing presentation.
@bakza.5661
@bakza.5661 4 жыл бұрын
Brilliantly explained, looking forward to attending the next pycon
@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
@ahfbemdlcnr
@ahfbemdlcnr 3 жыл бұрын
It's CRAZY. What an incredible presentation
@prathameshdesai5484
@prathameshdesai5484 Жыл бұрын
Amazing work! Its years of work and knowledge summarized in 24 mins (awesome flow)
@typwriter1991
@typwriter1991 8 ай бұрын
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.
@a.for.arun_
@a.for.arun_ 2 жыл бұрын
Absolutely wonderful presentation. Loved it.
@jayhu6075
@jayhu6075 4 жыл бұрын
Thanks for this useful talk..Hopely more from this stuff in the future.
@ehsanjalali4586
@ehsanjalali4586 2 жыл бұрын
you make a hard subject simple and understandable, thanks.
@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.
@user-lb1qy7rp5k
@user-lb1qy7rp5k 3 жыл бұрын
Thank's man, that's an explanation I was looking for!
@emadgkamel
@emadgkamel 4 жыл бұрын
Great presentation Ryan, thanks
@MagnusAnand
@MagnusAnand 4 жыл бұрын
this presentation is amazing
@UnleashedEntomber
@UnleashedEntomber Жыл бұрын
Great talk, watching 2nd time after 1 year.
@anirudhreddybasani3555
@anirudhreddybasani3555 4 жыл бұрын
Simply superb presentation 👌🙌
@AhmedBilalKhalid
@AhmedBilalKhalid 5 жыл бұрын
Excellent Presentation.
@McKisiek
@McKisiek Жыл бұрын
Excellent presentation. Thank you.
@abdallahmahmoud8642
@abdallahmahmoud8642 5 жыл бұрын
Great Presentation
@robinsingh4492
@robinsingh4492 3 жыл бұрын
Best explanation about the topic.
@santidev_
@santidev_ 2 жыл бұрын
Learned a lot from this presentation, thanks :)
@mrlildylchillin
@mrlildylchillin Жыл бұрын
This talk was fantastic. Thank you
@friesmaker
@friesmaker 3 жыл бұрын
Amazing presentation!! Loved it
@domfree7710
@domfree7710 3 жыл бұрын
very informative, good for backend development.
@scienceblossom6197
@scienceblossom6197 4 жыл бұрын
Really amazing video. Thanks.
@mirmohammadjaber2676
@mirmohammadjaber2676 3 жыл бұрын
Awesome presentation. Thanks.
@seburath2188
@seburath2188 4 жыл бұрын
great talk, thank you!
@shuvam6952
@shuvam6952 3 жыл бұрын
Ten seconds in and I already like it!
@pavolkovalik3593
@pavolkovalik3593 3 жыл бұрын
This is excellent explanation.
@ozkaa
@ozkaa 4 жыл бұрын
brilliant talk!
@StrangeIndeed
@StrangeIndeed 3 жыл бұрын
this needs more views
@PhilipKavanagh
@PhilipKavanagh 3 жыл бұрын
Excellent Presentation
@hunterxvov4ik
@hunterxvov4ik 3 ай бұрын
simply brilliant
@kabakiAntony
@kabakiAntony Жыл бұрын
This was a very good presentation.
@georgeli6820
@georgeli6820 2 жыл бұрын
great video! Now I understand it!
@muralidhar40
@muralidhar40 2 жыл бұрын
Well done, Ryan.
@JK-sy4ym
@JK-sy4ym 4 жыл бұрын
This guy is a genius.
@AnjaliPardeshi
@AnjaliPardeshi 4 жыл бұрын
Thanks a lot!!
@zhipengwang1
@zhipengwang1 4 жыл бұрын
amazing voice, explaination
@mohamedabdelmoneim5721
@mohamedabdelmoneim5721 3 жыл бұрын
Awesome task, thank you
@jankinsics
@jankinsics 4 жыл бұрын
Great talk.
@kingmanzhang
@kingmanzhang 3 жыл бұрын
It is an excellent talk!
@yurakhrolenko3605
@yurakhrolenko3605 Жыл бұрын
soooo awesome!!!
@abhinavmishra9401
@abhinavmishra9401 2 жыл бұрын
The coolest pycon so far!
@edchelstephens
@edchelstephens 2 жыл бұрын
Thank you!
@shivangitomar5557
@shivangitomar5557 2 жыл бұрын
Amazing!
@aliasnotavailable
@aliasnotavailable Жыл бұрын
great talk
@RandomAlexus
@RandomAlexus 4 жыл бұрын
Fantastic
@mehdi-vl5nn
@mehdi-vl5nn 2 жыл бұрын
amazing
@ahasibrifat7568
@ahasibrifat7568 3 жыл бұрын
Thanks a loot man!
@yaswanthravuri8450
@yaswanthravuri8450 3 жыл бұрын
I wish I could give a presentation like this in my class
@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...🤔
@higiniofuentes2551
@higiniofuentes2551 3 жыл бұрын
Very good teaching! But what to do when you can't install the wsgi module. I'm in RHEL8
@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? :)
@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'))```
@vlad_covers
@vlad_covers 10 ай бұрын
Каеф!
@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
@abhijithalder4567
@abhijithalder4567 4 жыл бұрын
Wisgi developers are only jealous, thats why they disliked this simplicity
@83457
@83457 3 жыл бұрын
Please redo this talk as a musical. kthxbye
@mirahmad1275
@mirahmad1275 Жыл бұрын
I could not understand a thing, :
@randall.chamberlain
@randall.chamberlain 4 ай бұрын
What a fenomemal presenter!!! Geez...
All You Need to Know about WSGI
11:11
Django Lessons
Рет қаралды 64 М.
WSGI-сервер что это такое и как написать свой [Middle]
17:18
Павлин Шарит - ИТ вместе с Николаем Павлиным
Рет қаралды 2 М.
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 4,2 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 22 МЛН
I wish I could change THIS fast! 🤣
00:33
America's Got Talent
Рет қаралды 66 МЛН
Are headphones destroying our hearing?
6:49
Vox
Рет қаралды 373 М.
Deploying a Flask Web App on AWS EC2 (Gunicorn + Apache w/ SSL Certificate)
32:27
WSGI & ASGI Simplified
6:47
Jerin Jose
Рет қаралды 33 М.
Secrets of a WSGI master.
31:39
PyCon AU
Рет қаралды 14 М.
FastAPI, Flask or Django - Which Should You Use?
9:49
Tech With Tim
Рет қаралды 49 М.
Lars Wikman - Introducing Elixir: Your entire web stack | Øredev 2023
39:00
What is WSGI and Why Do You Need Gunicorn and Nginx in Django
8:04
Denis Orehovsky
Рет қаралды 46 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 31 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 6 МЛН
После ввода кода - протирайте панель
0:18
Какой ПК нужен для Escape From Tarkov?
0:48
CompShop Shorts
Рет қаралды 270 М.
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1,1 МЛН