<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Typically, you would use a task queue such as Celery or Rq to run
background tasks from Flask. Any WSGI server can handle concurrent
requests, whether using threads, processes, or eventlets. Gevent is
typically used when combining Flask with websockets (or SocketIO).
The performance of these different approaches will depend on your
specific project.<br>
<br>
Unrelated, but replying to the digest emails breaks threaded view in
the mailing list archives, which relies on the subject remaining the
same for a thread.<br>
<br>
<div class="moz-cite-prefix">On 01/19/2016 09:26 AM, Kyle Lawlor
wrote:<br>
</div>
<blockquote
cite="mid:CACaYNLSdTArca6vj7N7-ns2h7LUpwpgo8vbxVjsmwA42sCtJdw@mail.gmail.com"
type="cite">
<div dir="ltr">I'm not really sure what I am looking for, to be
honest. I'm trying to learn about concurrency and async
programming with Flask. It looks like gevent and uWSGI are
probably a good place to start. (<a moz-do-not-send="true"
href="http://sdiehl.github.io/gevent-tutorial/">http://sdiehl.github.io/gevent-tutorial/</a>)
(<a moz-do-not-send="true"
href="http://uwsgi-docs.readthedocs.org/en/latest/Gevent.html">http://uwsgi-docs.readthedocs.org/en/latest/Gevent.html</a>)
I didn't realize how old the Spawning project was until after I
posted. <br>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 19, 2016 at 12:00 PM,
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:flask-request@python.org"
target="_blank">flask-request@python.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px
0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Send Flask mailing
list submissions to<br>
<a moz-do-not-send="true"
href="mailto:flask@python.org">flask@python.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web,
visit<br>
<a moz-do-not-send="true"
href="https://mail.python.org/mailman/listinfo/flask"
rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
or, via email, send a message with subject or body
'help' to<br>
<a moz-do-not-send="true"
href="mailto:flask-request@python.org">flask-request@python.org</a><br>
<br>
You can reach the person managing the list at<br>
<a moz-do-not-send="true"
href="mailto:flask-owner@python.org">flask-owner@python.org</a><br>
<br>
When replying, please edit your Subject line so it is
more specific<br>
than "Re: Contents of Flask digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Example usage of Spawning server with Flask apps
(Kyle Lawlor)<br>
2. Re: Example usage of Spawning server with Flask
apps (David Lord)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 19 Jan 2016 11:45:11 -0500<br>
From: Kyle Lawlor <<a moz-do-not-send="true"
href="mailto:klawlor419@gmail.com">klawlor419@gmail.com</a>><br>
To: flask <<a moz-do-not-send="true"
href="mailto:flask@python.org">flask@python.org</a>><br>
Subject: [Flask] Example usage of Spawning server with
Flask apps<br>
Message-ID:<br>
<CACaYNLRPY9oGRyJ0qjwwQUZVu3=waAa=<a
moz-do-not-send="true"
href="mailto:y-DPrXFe8dajexqwSg@mail.gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:y-DPrXFe8dajexqwSg@mail.gmail.com">y-DPrXFe8dajexqwSg@mail.gmail.com</a></a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi, all. I hope that the new year is treating everyone
well. I'm curious to<br>
know if anyone in the community has experience using
the Spawning server (<br>
<a moz-do-not-send="true"
href="https://pypi.python.org/pypi/Spawning"
rel="noreferrer" target="_blank">https://pypi.python.org/pypi/Spawning</a>)
with Flask apps. If there are<br>
references or examples that people would be willing to
share, I would<br>
appreciate it.<br>
<br>
Thanks,<br>
Kyle<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a moz-do-not-send="true"
href="http://mail.python.org/pipermail/flask/attachments/20160119/2a4b187a/attachment-0001.html"
rel="noreferrer" target="_blank">http://mail.python.org/pipermail/flask/attachments/20160119/2a4b187a/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 19 Jan 2016 08:52:38 -0800<br>
From: David Lord <<a moz-do-not-send="true"
href="mailto:davidism@gmail.com">davidism@gmail.com</a>><br>
To: <a moz-do-not-send="true"
href="mailto:flask@python.org">flask@python.org</a><br>
Subject: Re: [Flask] Example usage of Spawning server
with Flask apps<br>
Message-ID: <<a moz-do-not-send="true"
href="mailto:569E69D6.90902@gmail.com">569E69D6.90902@gmail.com</a>><br>
Content-Type: text/plain; charset="windows-1252";
Format="flowed"<br>
<br>
Seems to follow the pattern of any other WSGI server:
you call it with<br>
the path to the WSGI callable (the app in Flask's
case). Was there<br>
something specific you were looking for? Note that
the last commit was<br>
four years ago, and it doesn't appear to support
Python 3. The modern<br>
recommended servers are uWSGI, Gunicorn, or mod_wsgi
with Apache.<br>
<br>
On 01/19/2016 08:45 AM, Kyle Lawlor wrote:<br>
> Hi, all. I hope that the new year is treating
everyone well. I'm<br>
> curious to know if anyone in the community has
experience using the<br>
> Spawning server (<a moz-do-not-send="true"
href="https://pypi.python.org/pypi/Spawning"
rel="noreferrer" target="_blank">https://pypi.python.org/pypi/Spawning</a>)
with Flask<br>
> apps. If there are references or examples that
people would be willing<br>
> to share, I would appreciate it.<br>
><br>
> Thanks,<br>
> Kyle<br>
><br>
><br>
> _______________________________________________<br>
> Flask mailing list<br>
> <a moz-do-not-send="true"
href="mailto:Flask@python.org">Flask@python.org</a><br>
> <a moz-do-not-send="true"
href="https://mail.python.org/mailman/listinfo/flask"
rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a moz-do-not-send="true"
href="http://mail.python.org/pipermail/flask/attachments/20160119/e3d94f70/attachment-0001.html"
rel="noreferrer" target="_blank">http://mail.python.org/pipermail/flask/attachments/20160119/e3d94f70/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Flask mailing list<br>
<a moz-do-not-send="true"
href="mailto:Flask@python.org">Flask@python.org</a><br>
<a moz-do-not-send="true"
href="https://mail.python.org/mailman/listinfo/flask"
rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Flask Digest, Vol 7, Issue 9<br>
***********************************<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Flask mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Flask@python.org">Flask@python.org</a>
<a class="moz-txt-link-freetext" href="https://mail.python.org/mailman/listinfo/flask">https://mail.python.org/mailman/listinfo/flask</a>
</pre>
</blockquote>
<br>
</body>
</html>