List Info

Thread: Ax2: Having a secondary server to do long jobs




Ax2: Having a secondary server to do long jobs
user name
2007-10-12 09:45:59
Lo,

I have some requests that take a long time to service.
Now, as Ax2 is single process, this causes a problem.
What can I do to solve this problem? I currently have

1) Some way of palming off to apache (I have no idea
   how to do this)

2) Use some flavour of Net::Server as a sort of RPC
   server and continuations

My money's on 2, but I thought I'd get everyones opinion.

John


------------------------------------------------------------
---------
To unsubscribe, e-mail: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


Re: Ax2: Having a secondary server to do long jobs
user name
2007-10-12 23:56:13
On Oct 12, 2007, at 9:45 AM, roseyaxkit.20.ftumshspamgourmet.com wrote:

> Lo,
>
> I have some requests that take a long time to service.
> Now, as Ax2 is single process, this causes a problem.
> What can I do to solve this problem? I currently have
>
> 1) Some way of palming off to apache (I have no idea
>    how to do this)
>
> 2) Use some flavour of Net::Server as a sort of RPC
>    server and continuations
>
> My money's on 2, but I thought I'd get everyones
opinion.

We do 2 at my current job. We have an offline
report-generation  
server that runs using Sprocket, and farms out workers based
off a  
queue in a database table updated by the front-end. Since
reports can  
take up to 2 hours to generate it works nicely.

-Chris

------------------------------------------------------------
---------
To unsubscribe, e-mail: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


Re: Ax2: Having a secondary server to do long jobs
user name
2007-10-13 09:35:48
On 12-Oct-07, at 10:45 AM, roseyaxkit.20.ftumshspamgourmet.com wrote:

> Lo,
>
> I have some requests that take a long time to service.
> Now, as Ax2 is single process, this causes a problem.
> What can I do to solve this problem? I currently have
>
> 1) Some way of palming off to apache (I have no idea
>    how to do this)
>
> 2) Use some flavour of Net::Server as a sort of RPC
>    server and continuations
>
> My money's on 2, but I thought I'd get everyones
opinion.

Use Gearman and Gearman::Task::Async. It integrates nicely
with the  
event loop.


------------------------------------------------------------
---------
To unsubscribe, e-mail: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )