Application over multiple mounts ?
ARN NN <[email protected]> Sat, 9 Jun 2018 17:30:05 -0700 (PDT)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
Hi Cherrypy people,
(Note - this is the first time I've used cherrypy or any similar framework
to build an app so please forgive naive questions)
I used Cherrypy to build a web-app for a specific use at work. The cherrypy
app is the front-end, MySql is the back-end.
There are two broad functionalities for this app :
- Front-end operations that allows the end-user to interact with the DB
over HTTP.
- Periodic back-end operations that make changes to the DB, independent of
front end operations.
Currently both functionalities existing within the same app. However, I
find that the back-end db ops cause the front end to pause (be unresponsive
for a few seconds).
I would like to avoid that.
My questions are -
1) can these be mounted separately within the cherrypy app server ? Like
this :
cherrypy.tree.mount(FrontEnd(), '/myapp', myapp_conf)
cherrypy.tree.mount(ScheduledOps(), '/myapp_scheduled', myapp_conf)
cherrypy.engine.start()
cherrypy.engine.block()
2) Does each mounted app run in a separate python interpreter process ?
3) Will mounting as separate apps prevent the lockups during DB ops ?
Thanks
_arnn_
--
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.