Re: Running cherrypy as a WSGI webserver
Rita Morgan <[email protected]> Fri, 7 Jul 2017 10:53:17 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
what would I need to handle requests asyncnously? multiple processing makes sense but not sure how I can handle that with cherrypy. On Friday, July 7, 2017 at 1:11:58 PM UTC-4, Ralph Heinkel wrote: > > If the requests are very much CPU bound then this number (10 * 15) seems > right - python (due to the global interpreter lock) will not be able to > process those threads in (real) parallel . > > If your requests however are mainly i/o bound then parallel processing via > threads should actually show in a reduction of the overall (wall clock) > time. > > In case of CPU intensive requests I would suggest to run multiple > processes (in case your server has more than one CPU) -- this should > actually speed up things. > > Ralph > > On 07/07/2017 06:46 PM, Rita Morgan wrote: > > Running cherrypy along with flask. I know a certain web request takes ~15 > secs. So, when I run it concurrently (10 threads). I would expect the time > to be around 15 secs. But the time is 15*10 seconds so I believe the > requests are going syncrnously. Is there a way to verify this? > > -- > You received this message because you are subscribed to the Google Groups > "cherrypy-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cherrypy-user...-/[email protected] <javascript:>. > To post to this group, send email to cherryp...-/[email protected] > <javascript:>. > Visit this group at https://groups.google.com/group/cherrypy-users. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.