Answer the question
In order to leave comments, you need to log in
Am I understanding this principle correctly?
I studied the principle of the web server and felt that I have a gap in understanding what WSGI is, or rather, I know what it is, speaking by definition, but in my own words it is difficult to explain. In short, right now I will just write a sequence of actions that, in my opinion, occur when a request hits the server where some kind of web application is located, and you will just have to point out where I was wrong. So that in case of misunderstanding the root of the problem of ignorance is clearly visible, I will write the whole process in brief.
In general, an HTTP request hit the server, or rather, the web server, it sends this request to the application server, which in turn launches the WSGI server, to which the request data is transmitted, the WSGI server has a handler that already accesses the web application itself , but suppose that there is a framework in front of it, the framework receives more portions of data from the WSGI server and translates them into a form understandable for the developer so that he can work with it, the framework gives the necessary APIs for creating applications, then an html page is generated in the application, given WSGI server, it gives it back to the application server, it gives it to the web server in the HTTP response format, it gives it to the client (browser), which, in the presence of some additional files, is necessary for the page (css, java scripts, etc.) , addresses the server again,that through a web server receives static files and gives back.
Answer the question
In order to leave comments, you need to log in
he sends this request to the application server, which in turn starts the WSGI server, to which the request data is transmitted
the WSGI server has a handler that already refers to the web application itself
the framework receives more portions of data from the WSGI server and translates them into a form understandable for the developer
then an html page is generated in the application, given to the WSGI server, which gives it back to the application server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question