<div dir="auto">Rita, <div dir="auto"><br></div><div dir="auto">I found the following article about deploying Django on IIS, purhaps you could adapt it to your needs.</div><div dir="auto"><br></div><div dir="auto"><a href="https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial">https://www.toptal.com/django/installing-django-on-iis-a-step-by-step-tutorial</a></div><div dir="auto"><br></div><div dir="auto"><br><br><div data-smartmail="gmail_signature" dir="auto"><br>__<br>Corey</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 7, 2017 9:57 AM, "Corey Boyle" <<a href="mailto:coreybrett@gmail.com">coreybrett@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">mod_wsgi might be an option for you if you are willing to use Apache.<div dir="auto"><br></div><div dir="auto"><a href="https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst" target="_blank">https://github.com/<wbr>GrahamDumpleton/mod_wsgi/blob/<wbr>develop/win32/README.rst</a><br><br><div data-smartmail="gmail_signature" dir="auto">Otherwise, you might be better off setting up a Linux box.</div><div data-smartmail="gmail_signature" dir="auto"><br>__<br>Corey</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jul 7, 2017 9:43 AM, "Rita" <<a href="mailto:rmorgan466@gmail.com" target="_blank">rmorgan466@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Right, when the client makes a request it gets forward to flask app. But the flask app is syncrnous so it will wait a long time. Ideally, I am looking for a good uWSGI (high performance) on Windows.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 8:59 AM, Gergely Polonkai <span dir="ltr"><<a href="mailto:gergely@polonkai.eu" target="_blank">gergely@polonkai.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">If you use an HTTP server, like nginx or Apache httpd, the story changes a lot. In that case, it’s the HTTP server that handles the connection and the requests. When the request is received, it is forwarded to the Flask app, usually through a WSGI layer like uWSGI or Apache’s mod_wsgi.</p><div class="m_-4221833367430214801m_5780403419333457609HOEnZb"><div class="m_-4221833367430214801m_5780403419333457609h5">
<br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 7, 2017, 14:54 Adil Hasan <<a href="mailto:paradox2005@gmail.com" target="_blank">paradox2005@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Rita,<br>
I wonder. Do you think that the nginx server is handling the requests?<br>
I think the webserver is the service that will manage requests. At least<br>
I think that it is.<br>
hth<br>
adil<br>
<br>
On Fri, Jul 07, 2017 at 06:33:23AM -0400, Rita wrote:<br>
> yes, i understand that. how come when i submit ten concurrent requests none<br>
> of them get lost and eventually finish? how is that maintained?<br>
><br>
> On Fri, Jul 7, 2017 at 3:19 AM, Abdesslem Amri <<a href="mailto:amriabdesslem@gmail.com" target="_blank">amriabdesslem@gmail.com</a>><br>
> wrote:<br>
><br>
> > Using the simple app.run() from within Flask creates a single synchronous<br>
> > server on a single thread capable of serving only one client at a time.<br>
> ><br>
> > 2017-07-07 3:02 GMT+02:00 Rita <<a href="mailto:rmorgan466@gmail.com" target="_blank">rmorgan466@gmail.com</a>>:<br>
> ><br>
> >> Been using flask in my lab for the past few years. It just works. We<br>
> >> recently got some grad students and it seems we are seeing some slowness in<br>
> >> our flask applications running on Windows 2012 with enthought python.<br>
> >><br>
> >> currently I am running it in a single threaded mode with nginx (<br>
> >> <a href="http://flask.pocoo.org/docs/0.12/deploying/wsgi-standalone/#proxy-setups" rel="noreferrer" target="_blank">http://flask.pocoo.org/docs/0.<wbr>12/deploying/wsgi-standalone/#<wbr>proxy-setups</a>).<br>
> >> My question is: When 2 users hit my flask page, does it get blocked until<br>
> >> the first user finishes his request - it seems that the case. Is there a<br>
> >> way to view the "queue" length? How is this queue maintained, or is it done<br>
> >> by operating system networking stack?<br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> --- Get your facts first, then you can distort them as you please.--<br>
> >><br>
> >> ______________________________<wbr>_________________<br>
> >> Flask mailing list<br>
> >> <a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
> >> <a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/flask</a><br>
> >><br>
> >><br>
> ><br>
> ><br>
> > --<br>
> > ------------------------------<br>
> ><br>
> > The preceding message (including attachments) is covered by the Electronic<br>
> > Communication Privacy Act, 18 U.S.C. sections 2510-2512, is intended only<br>
> > for the person or entity to which it is addressed, and may contain<br>
> > information that is confidential, protected by attorney-client or other<br>
> > privilege, or otherwise protected from disclosure by law. If you are not<br>
> > the intended recipient, you are hereby notified that any retention,<br>
> > dissemination, distribution, or copying of this communication is strictly<br>
> > prohibited. Please reply to the sender that you have received the message<br>
> > in error and destroy the original message and all copies.<br>
> ><br>
> > ______________________________<wbr>_________________<br>
> ><br>
><br>
><br>
><br>
> --<br>
> --- Get your facts first, then you can distort them as you please.--<br>
<br>
> ______________________________<wbr>_________________<br>
> Flask mailing list<br>
> <a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/flask</a><br>
<br>
______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/flask</a><br>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-4221833367430214801m_5780403419333457609gmail_signature" data-smartmail="gmail_signature">--- <span>Get your facts first, then you can distort them as you please.</span>--</div>
</div>
<br>______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/flask</a><br>
<br></blockquote></div></div>
</blockquote></div></div>