P.S Have you looked at Panda ? Its a ready made app that encodes
user-uploaded videos, so perhaps you can look at the source to see how they
do it...

http://pandastream.com/

On Tue, Oct 14, 2008 at 3:19 PM, rsi <[EMAIL PROTECTED]> wrote:

>
> So you're saying if I use deferred actions like this (with Mongrel):
>
> Merb::Config[:deferred_actions] = ["/uploads/create", "/reports/
> longaction"]
>
> The /uploads/create and /reports/longaction will be served from a
> newly spawned thread.
>
> And when using this I shouldn't start many Merb instances?
>
> Thanks Ahsan.
>
>
> On Oct 14, 1:05 pm, "Ahsan Ali" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I had a similar concern (with web service calls that were taking long),
> > which I'm currently addressing with deferred actions:
> >
> > http://brainspl.at/articles/2008/04/18/deferred-requests-with-merb-eb...
> >
> > Here's my thread: *http://tinyurl.com/3lufww*<http://tinyurl.com/3lufww>
> >
> > - Ahsan  / highandwild
> >
> > On Tue, Oct 14, 2008 at 2:31 PM, rsi <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > I use Merb to handle image uploads and resizing images, before they
> > > are send to Amazon S3. In front of merb sits Apache as a proxy
> > > balancer server and Mongrel. The resizing of the images can take quite
> > > a while (up to 10-20 seconds for really large images).
> >
> > > What is not clear to me if starting more Merb instances (we run 4
> > > now), say 10 or 20 would help us scaling our upload service. I read
> > > everywhere that Merb is multi threaded, but I'm not sure if Merb
> > > itself can start different processes with large file uploads, etc..
> >
> > > So will our load balance be better if we start more Merb instances or
> > > does it not make any difference and could we also start one Merb
> > > instance?
> >
> > > Thanks in advance.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to