寻找一个图表来解释WSGI [英] Looking for a diagram to explain WSGI

查看:67
本文介绍了寻找一个图表来解释WSGI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了帮助我进一步理解WSGI,我正在寻找一个图表来说明应用程序的流程,从网络服务器(例如apache)到许多中间件再到代码(例如,打印 hello world 位)。

To help further my understanding of WSGI I'm looking for a diagram which explains the flow of an application, from webserver (eg. apache) through a number of middlewares to "code" (as in, the print "hello world" bit).

我已经从wsgi.org阅读了有关WSGI的各种文章,但是它对我来说仍然不是点击的,对于图表,Google并没有带回任何有用的东西,除了对于django,用户了解中间​​件是如何链接的。

I've read various articles regarding WSGI from wsgi.org, but it's still not "clicking" for me and as for diagrams Google isn't bringing anything useful back except this for django which, while interesting, is expecting the user to understand how middleware links-up and such.

由于一张图片值得一千个单词,因此那里是否有任何图表会变得更低/更多。比这简单吗?

Since "a picture is worth a thousand words", are there any diagrams out there which get a bit lower/more simplistic than this?

推荐答案

我也一直在寻找解释WSGI流程的图表。这就是为什么我很高兴找到这个主题的原因。我对Ian Bicking在编写Python方面的出色表现抱有很高的期望。不过,通过查看Ian的花式管,我从字面上什么都没有得到(图表?)。这就是为什么我决定自己画一张。我希望它能帮助某人了解WSGI流的工作原理。只要您有改进建议,我都可以进行修改。它是通过 LUCIDCHART 网络应用程序创建的。您可以在此处和高此处

I've been looking for a diagram explaining WSGI flow for some time, too. That's why I was very happy when I found this topic. I had high expectation of what I was going to see knowing how good Ian Bicking is at writing Python. Nevertheless, I gained literally nothing by looking at Ian's fancy tubes (diagram?). That's why I decided to draw one myself. I hope it will help someone understand how WSGI flow works. As long as you have suggestions how to make it better I'm open to modify it. It was created with LUCIDCHART webapp. The original diagram you can find here and the high quality PNG is here.

这篇关于寻找一个图表来解释WSGI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆