Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 760107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:40:38+00:00 2026-05-14T15:40:38+00:00

Firstly: I understand what WSGI is and how to use it I understand what

  • 0

Firstly:

  1. I understand what WSGI is and how to use it
  2. I understand what “other” methods (Apache mod-python, fcgi, et al) are, and how to use them
  3. I understand their practical differences

What I don’t understand is how each of the various “other” methods work compared to something like UWSGI, behind the scenes. Does your server (Nginx, etc) route the request to your WSGI application and UWSGI creates a new Python interpreter for each request routed to it? How much different is is from the other more traditional / monkey patched methods is WSGI (aside from the different, easier Python interface that WSGI offers)? What light bulb moment am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:40:39+00:00Added an answer on May 14, 2026 at 3:40 pm

    Except for CGI, a new Python interpreter is nearly never created per request. Read:

    http://blog.dscpl.com.au/2009/03/python-interpreter-is-not-created-for.html

    This was written in respect of mod_python but also applies to mod_wsgi and any WSGI hosting mechanism that uses persistent processes.

    Also read:

    http://www.python.org/dev/peps/pep-0333/#environ-variables

    There you will find described the ‘wsgi.run_once’ variable described. This is used to indicate to a WSGI application when a hosting mechanism is used which would see a process only handling one request and then being exited, ie., CGI. Thus, write a test hello world application which dumps out the WSGI environment and see what it is set to for what you are using.

    Also pay attention to the ‘wsgi.multiprocess’ and ‘wsgi.multithread’ variables. They tell you if a multi process server is being used such that there are multiple instances of your application handling requests at the same time. The ‘wsgi.multithread’ variable tells you if the process itself is handling multiple requests in concurrent threads in same process.

    For more on multiprocess and multithread models in relation to Apache embedded systems, such as mod_python and mod_wsgi, and mod_wsgi daemon mode, see:

    http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please understand firstly that I fully understand that Java will return a String when
I am not able to understand few things on the Garbage collection. Firstly, how
Firstly, I would like to say that I don't mean the full path, what
Firstly, the example: http://jsfiddle.net/Koviko/92PZZ/ Here, I use jQuery UI's draggable plugin to allow a
Firstly I understand OpenId is for authentication and OAuth is for authorisation and unlike
There are a couple of things that I don't understand about the function pthread_create
We serialize/deserialize XML using XStream... and just got an OutOfMemory exception. Firstly I don't
Firstly, I know how to fix the problem, I'm just trying to understand why
Firstly, I'm aware of this question , but I don't believe I'm asking the
Firstly I want to thank all of you who have helped me understand Normalization

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.