why can't you just set up the wsgi container to listen to ports 80/443 directly and reduce the total workload on your server and increase the response time?
and i have already written my own little http server and am curious how much work would be involved to add wsgi support to it (not as the proxy).
edit:
that little http server i wrote is entirely in python. i wrote it back before i did anything with python3 (which is now the only python version i write for) and i have not updated it, yet. so i guess that means it is currently a python2 thing. its design is to use the http request path to find a python file and it loads it as a module and runs it in the same process. it is not a multi-user server.
edit:
the apache server and many others support the cgi method of dynamic execution. to execute python code, the code will have to be a command which runs in a separate process which exits when complete, making for a lower performing server. this includes the disadvantage of the need to store persistent data in files (and probably deal with process sharing issues) or in a database that a new connection needs to be made to for each dynamic web request.
and i have already written my own little http server and am curious how much work would be involved to add wsgi support to it (not as the proxy).
edit:
that little http server i wrote is entirely in python. i wrote it back before i did anything with python3 (which is now the only python version i write for) and i have not updated it, yet. so i guess that means it is currently a python2 thing. its design is to use the http request path to find a python file and it loads it as a module and runs it in the same process. it is not a multi-user server.
edit:
the apache server and many others support the cgi method of dynamic execution. to execute python code, the code will have to be a command which runs in a separate process which exits when complete, making for a lower performing server. this includes the disadvantage of the need to store persistent data in files (and probably deal with process sharing issues) or in a database that a new connection needs to be made to for each dynamic web request.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.