What is the right way to do heavy operations on request?

Ilya Persky <[email protected]> Fri, 20 Oct 2017 08:44:15 -0700 (PDT)
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Hello!

I'm writing a simple web app that needs to do some loooong (5 seconds or 
more) operation on each request it receives.
Actually, it exposes a webhook and has to do a call to a slow external API 
whenever this webhook is triggered.

AFAIU this can make the whole CherryPy server hang util the operation is 
complete.

Am I wrong? How would I deal with situation like this? Can I use a 
multiprocessing safely with CherryPy or some other method may be?..

Thank you!
Ilya.

-- 
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.