Athar
Athar

Reputation: 1073

How Apache manages HTTP request when it is python which is going to response? it is thread based or process based?

What i mean is when some one makes a http request, does it like apache spawn a new process or thread. My configuration is apache + python with wsgi module.

Upvotes: 0

Views: 99

Answers (1)

Graham Dumpleton
Graham Dumpleton

Reputation: 58563

Neither. Requests will be handled by the already running single thread, or a thread from a preallocated thread pool. For more information about how it works with mod_wsgi read:

Be aware that it is better to use daemon mode of mod_wsgi and disable Python inside the main Apache processes altogether. For details of that see:

Upvotes: 1

Related Questions