Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WSGI server vs Web Server
#8
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.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
WSGI server vs Web Server - by chrisdb - Apr-24-2019, 07:43 AM
RE: WSGI server vs Web Server - by heiner55 - May-26-2019, 04:41 PM
RE: WSGI server vs Web Server - by Skaperen - May-26-2019, 06:08 PM
RE: WSGI server vs Web Server - by heiner55 - May-26-2019, 06:19 PM
RE: WSGI server vs Web Server - by Skaperen - May-26-2019, 06:27 PM
RE: WSGI server vs Web Server - by heiner55 - May-26-2019, 06:30 PM
RE: WSGI server vs Web Server - by snippsat - May-26-2019, 09:40 PM
RE: WSGI server vs Web Server - by chrisdb - May-27-2019, 07:35 PM
RE: WSGI server vs Web Server - by Skaperen - May-27-2019, 12:32 AM
RE: WSGI server vs Web Server - by snippsat - May-27-2019, 01:57 AM
RE: WSGI server vs Web Server - by heiner55 - May-27-2019, 05:15 AM
RE: WSGI server vs Web Server - by Skaperen - May-27-2019, 07:39 AM
RE: WSGI server vs Web Server - by heiner55 - May-27-2019, 07:43 AM
RE: WSGI server vs Web Server - by Skaperen - May-27-2019, 07:56 AM
RE: WSGI server vs Web Server - by heiner55 - May-27-2019, 10:09 AM
RE: WSGI server vs Web Server - by snippsat - May-27-2019, 11:02 AM
RE: WSGI server vs Web Server - by Skaperen - May-27-2019, 06:36 PM
RE: WSGI server vs Web Server - by snippsat - May-27-2019, 07:19 PM
RE: WSGI server vs Web Server - by Skaperen - May-28-2019, 02:23 AM
RE: WSGI server vs Web Server - by snippsat - May-27-2019, 08:31 PM
RE: WSGI server vs Web Server - by heiner55 - May-28-2019, 04:45 AM
RE: WSGI server vs Web Server - by Skaperen - May-28-2019, 05:43 PM
RE: WSGI server vs Web Server - by snippsat - May-28-2019, 06:15 PM
RE: WSGI server vs Web Server - by Skaperen - May-28-2019, 10:14 PM
RE: WSGI server vs Web Server - by heiner55 - May-29-2019, 02:21 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  500 Internal Server error trying to run external Python script via HTML ppowell777 3 496 May-07-2025, 05:04 PM
Last Post: Larz60+
  Unable to connectDjango to mysql server sureshpython 1 3,453 May-20-2024, 05:11 AM
Last Post: tahirahmedd
  python packaging/ hosted in IIS server manjureka 0 1,358 Apr-16-2024, 10:43 AM
Last Post: manjureka
  Script does not work on Linux server scrapemasta 0 1,271 Mar-22-2024, 11:07 AM
Last Post: scrapemasta
  Using a Proxy Server rsherry8 12 30,361 Dec-04-2023, 06:35 PM
Last Post: AlluminumFoil
  Server Error with parse_args() using Flask NoNameoN 0 1,701 Jul-30-2022, 09:42 AM
Last Post: NoNameoN
  [split] flask 500 internal server error DarthTensor 3 5,408 Nov-11-2021, 06:10 AM
Last Post: DarthTensor
  deploying python script on a server rickyrt 0 2,003 Aug-31-2021, 04:03 PM
Last Post: rickyrt
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 4,238 Apr-11-2021, 11:29 AM
Last Post: snippsat
  Connecting to a web server with authentification arbiel 0 2,067 Feb-02-2021, 08:31 PM
Last Post: arbiel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020