
jt at plainblack
Dec 19, 2005, 7:46 AM
Post #5 of 32
(1330 views)
Permalink
|
Please, I specifically asked not to tell me how else to do it. I want to know how, if at all, it's possible to do it under Apache/modperl. I know I can do it 1,000,000 other ways that I'm totally not interested in. I just want everyone to focus on what's possible with Apache/modperl, and nothing outside of Apache/modperl. If it's not possible so be it. I'm not trying to solve a problem here. I've already solved the problem. What I'm trying to do is see if I can solve it better with Apache/modperl. Sorry if my words sound harsh. They aren't meant to. They're simply meant to stress that solutions outside of Apache/modperl aren't what I'm interested in. On Mon, 19 Dec 2005 10:31:05 -0500 Jonathan Vanasco <jon [at] 2xlp> wrote: > > You could look into the Twisted framework for python: > http://twistedmatrix.com/ > > It's a really solid networking framework, but its python based (not perl). > > > On Dec 19, 2005, at 12:48 AM, JT Smith wrote: > >> Yup, I've actually already done it that way with both >> Parallel::ForkManager in one instance and Proc::Queue as an >> alternative. I added in event handling with both Event and >> Event::Lib as seperate trials. All those implementations were >> relatively easy to do. But the question becomes, why? If everything >> else is running in Apache, why start a seperate service to run >> these tasks? And again, I said I want to go crazy. Let's not figure >> out how else we could do that (I already know that), but how could >> we do it using Apache? >> >> However, you're right, I should look back at the list archives and >> see what conclusions other people asking similar questions came to. >> I guess I hadn't considered that this question would have been >> asked before. >> >> >> On Mon, 19 Dec 2005 00:28:42 -0500 >> Perrin Harkins <perrin [at] elem> wrote: >>> On Sun, 2005-12-18 at 21:18 -0600, JT Smith wrote: >>>> I want to turn it into a workflow system. If you think about it, >>>> workflow is nothing but a set of transactional tasks (nothing >>>> new) with two additional components (here's where it get's >>>> weird). The two additional components are cron (scheduling) and >>>> queue (a task executor). >>> Earl Cahill and I talked about how to use apache for a queue >>> system on >>> the list a while back. In the end, we both decided it was a bad >>> idea. >>> Apache is a very flexible network server, but this task is very >>> unlike a >>> network server. I ended up writing a simple forking daemon with >>> Parallel::ForkManager that stores the queue in a database, and I >>> think >>> Earl ended up with something similar. >>> - Perrin > JT ~ Plain Black ph: 703-286-2525 ext. 810 fax: 312-264-5382 http://www.plainblack.com I reject your reality, and substitute my own. ~ Adam Savage
|