Hi John, Thanks for the reply - certainly not late in my book ;)
As far as general feedback regarding ruote-rest is concerned - it's great! In my prototype I'm actually clustering multiple instances of ruote-rest behind a load balancer, so of course it being HTTP makes things a bit easier - I have to admit I've not looked into the native clustering / balancing capabilities I've seen mentioned in Openwferu-users. I've paired it with rest_client (http://rest-client.heroku.com/rdoc/) which cites Sinatra as inspiration - and it all works perfectly so far! The example you gave for wait_for is indeed what I was thinking about. I understand the warning regarding early termination - I'm guessing this is when a flow is executed so quickly as to finish before wait_for is called? I wonder if an alternative would be to define a method on the engine - something like launch_and_wait_for? I guess one of the big problems with this approach is it removes any of the minute control of the process that one would normally have. What are your thoughts? Thanks, Corin John Mettraux wrote: > On Sat, Jun 7, 2008 at 2:29 AM, Corin Moss <[EMAIL PROTECTED]> wrote: > >> Is there any major side-effect to having a configurable wait for in the >> post "/processes" block? Or should there perhaps be a blocking engine >> implementation? >> > > Hello Corin, > > sorry for the late reply. > > You mean something like this : > http://github.com/jmettraux/ruote-rest/tree/wait_for/lib/res/processes.rb#L52-65 > ? > > I think there should be no major problem. > > Things to watch : > > - you have to manage client timeout > - the process could terminate right before wait_for is called > (wait_for would wait indefinitely) > - wait_for will not reply in case of error in the process > > I'll probably have to refine the wait_for method in the engine itself > (adding a timeout and stopping the wait in case of exception). > > I'd be happy to help you with this use case. I'm looking forward to > general feedback on ruote-rest as well. Your prototyping approach > looks very interesting. > > > Best regards, > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-users?hl=en -~----------~----~----~----~------~----~------~--~---
