[melbourne-pug] multi threaded/process web apps
hartror at gmail.com
Mon Jul 11 05:05:51 CEST 2011
Right well then the solution I described would work for you.
I am all for killing off PHP code but if you have a lot of code to move
there are fully fledged PHP options.
 Currently replacing some PHP code with heavily nested for loops that
takes 30 minutes and many hundreds of megs to run with a couple of SQL
queries that take a couple of seconds in total. Though to be fair to PHP you
could create such a monstrosity in Python just as easily, but Python
programmers as a group appear to far more adept programmers.
On Mon, Jul 11, 2011 at 12:58 PM, James Alford <mydnite1 at gmail.com> wrote:
> Ok, that was quick and rightfully flamed for not being specific.
> This is the scenario I have solved in the past on the ipad but with
> php it is a litte complex.
> 1. Incoming web service request
> 2. Data is processed
> 3. Outgoing web request sent.
> 4. Web service request response sent
> With step 3, I would fired an event or spawn another thread to do the
> outgoing request. With php it is possible but I have to start a
> separate process as a php cli process. With the ipad I'm easily able
> to fire an event that handles this in a separate thread.
> Any help would be appreciated.
> On Mon, Jul 11, 2011 at 12:33 PM, Anthony Briggs
> <anthony.briggs at gmail.com> wrote:
> > Hi James,
> > More details would probably help (eg. what's the project/what are you
> > trying to do). There might be an alternative way to do things.
> > In general though, "multi-threaded" and "seamless" don't go together
> > very well. Even in frameworks like Twisted, there's a significant
> > overhead of deferreds, callbacks, errbacks, etc. which will make your
> > code hard to follow. Easier than doing it in standard Python, but
> > still hard.
> > Anthony
> > On 11 July 2011 12:27, James Alford <mydnite1 at gmail.com> wrote:
> >> Hi All
> >> I have reached an impasse with a php based web services project.
> >> Doing multi threaded/process operations is just not a simple affiar.
> >> Can any one recommend a python web framework that seamlessly does
> >> multi threaded/process operations?
> >> I'm reviewing webpy and twisted today as possible replacements.
> >> Thanks
> >> James
> >> _______________________________________________
> >> melbourne-pug mailing list
> >> melbourne-pug at python.org
> >> http://mail.python.org/mailman/listinfo/melbourne-pug
> > _______________________________________________
> > melbourne-pug mailing list
> > melbourne-pug at python.org
> > http://mail.python.org/mailman/listinfo/melbourne-pug
> melbourne-pug mailing list
> melbourne-pug at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the melbourne-pug