Rufus rails plugin + mongrel

0 views
Skip to first unread message

Daniel Zacarias

unread,
Apr 11, 2008, 3:48:24 PM4/11/08
to OpenWFEru users
Hello,

I'm thinking of using the rufus rails plugin in my app. The thing that
I still don't know is how it would work with a mongrel setup.

If the engine is started by a rails instance and then accessed as a
variable, how can the other rails instances have access to it?

Cheers,
Daniel Zacarias

John Mettraux

unread,
Apr 11, 2008, 10:11:35 PM4/11/08
to openwfe...@googlegroups.com

Hello Daniel,

I have no clue about multiple rails/mongrel instances. I'm happily
using a vanilla rails on mongrel instance at
http://difference.openwfe.org and its uptime is excellent (I only
restart it when upgrading). Granted, there is not much stress for it,
two or three visits per day on the low average.

I have developed a "restful wrapper for OpenWFEru" (see
http://jmettraux.wordpress.com/2007/12/20/restful-workflow-engine/ )
that I'm currently [considering] rewriting on top of Sinatra
(http://sinatrarb.com). You could have front rails/mongrel instances
accessing one backend [restfully wrapped] engine.

It also depends on the type of [business] processes you want to run.
Maybe 1 [transient] engine per rails/mongrel is OK for you.


Maybe someone with Rails knowledge on this list will answer with
better suggestions. Best regards,

--
John Mettraux -///- http://jmettraux.openwfe.org

Tomaso Tosolini

unread,
Apr 12, 2008, 7:17:18 AM4/12/08
to openwfe...@googlegroups.com
Hi All,


if you need to access from several rails instances to a single engine instance, i suggest you to use kisha. If you start a rails instance with an engine instance within, the latter is running within a ruby interpreter instance: i think it is not possible for the other rails instances ( which are running in other ruby instances ) to access to the (engine) variable present in the first rails instance. With kisha this is possible, even if you don't access direclty to the engine variable present in its rails instance. This should not be a problem for you, and indeed i think this really an advantage, because you have a comfortable REST interface, whose usage is almost straightforward.

hope this helps,
Tomaso

 


Cheers,
Daniel Zacarias


Daniel Zacarias

unread,
Apr 13, 2008, 7:13:57 AM4/13/08
to openwfe...@googlegroups.com

On Apr 12, 2008, at 12:17 PM, Tomaso Tosolini wrote:
>
>
> if you need to access from several rails instances to a single
> engine instance, i suggest you to use kisha. If you start a rails
> instance with an engine instance within, the latter is running
> within a ruby interpreter instance: i think it is not possible for
> the other rails instances ( which are running in other ruby
> instances ) to access to the (engine) variable present in the first
> rails instance. With kisha this is possible, even if you don't
> access direclty to the engine variable present in its rails
> instance. This should not be a problem for you, and indeed i think
> this really an advantage, because you have a comfortable REST
> interface, whose usage is almost straightforward.


Thank you for your answers, I'll give it a look :)

Cheers,
Daniel Zacarias

Reply all
Reply to author
Forward
0 new messages