Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WSGI server vs Web Server
#18
(May-26-2019, 09:40 PM)snippsat Wrote:
(Apr-24-2019, 07:43 AM)chrisdb Wrote: - can I run a wsgi server, without using a web server to run a webapp (i.e. run an angular spa with a rest api in flask with waitress alone)?
The work flow with eg Flask is building the web-app is all done local with Development Server(wsgi) that come with Flask.
If want to share with the world then get a host and then leave development server and then eg go for good option like Gunicorn and Nginx.
Look at this post for host recommendations.

WSGI Servers for a little history.
As a note there no need to dig into WSGI specification,unless you want build yet another Python web-framework.
fullstackpython Wrote:WSGI is by design a simple standard interface for running Python code.
As a web developer you won't need to know much more than
  • what WSGI stands for (Web Server Gateway Inteface)

  • that a WSGI container is a separate running process that runs on a different port than your web server

  • that a WSGI container is a separate running process that runs on a different port than your web server
    your web server is configured to pass requests to the WSGI container which runs your web application,
    then pass the response (in the form of HTML) back to the requester

I don't have the intention to share my SPA with the world.
The application I've written is for local use only. So only 1 user at a time is required. That's why I asked if it is necessary to use a web server if I already have a wsgi server.

Btw I refer to waitress because I want to run my app on Windows too.
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
  Unable to connectDjango to mysql server sureshpython 1 647 May-20-2024, 05:11 AM
Last Post: tahirahmedd
  python packaging/ hosted in IIS server manjureka 0 592 Apr-16-2024, 10:43 AM
Last Post: manjureka
  Script does not work on Linux server scrapemasta 0 543 Mar-22-2024, 11:07 AM
Last Post: scrapemasta
  Using a Proxy Server rsherry8 12 26,090 Dec-04-2023, 06:35 PM
Last Post: AlluminumFoil
  Server Error with parse_args() using Flask NoNameoN 0 1,173 Jul-30-2022, 09:42 AM
Last Post: NoNameoN
  [split] flask 500 internal server error DarthTensor 3 4,210 Nov-11-2021, 06:10 AM
Last Post: DarthTensor
  deploying python script on a server rickyrt 0 1,568 Aug-31-2021, 04:03 PM
Last Post: rickyrt
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 3,260 Apr-11-2021, 11:29 AM
Last Post: snippsat
  Connecting to a web server with authentification arbiel 0 1,676 Feb-02-2021, 08:31 PM
Last Post: arbiel
Question Telegram bot - Problem with proxies and web server NoNameoN 1 3,331 Oct-16-2020, 05:37 PM
Last Post: NoNameoN

Forum Jump:

User Panel Messages

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