Hi Matt, Thanks for the answers. A couple more questions :
Is merb -c a wrapper around mongrel cluster, meaning does it just invoke mongrel cluster start, or is there something additional work done by merb before starting the workers. How many concurrent requests can a single worker handle in practice, any rules of thumb/heuristics. Also, any way to set/control the number of concurrent requests to a single worker. Regards, Ashwin On Wed, Feb 18, 2009 at 12:49 AM, Matt Aimonetti <[email protected]> wrote: > > > On Tue, Feb 17, 2009 at 10:41 AM, Ashwin Mangale <[email protected]> > wrote: >> >> Hi, >> I have a few questions. >> >> I have used ActiveRecord as session store in Rails. Now, I will be >> using DataMapper for the same in Merb ( I use Mysql DB). > > If you can don't store any hightly private data or huge data in the session, > I'd recommend to use cookie sessions. > > >> >> Is there are definitive blog/writeup which can give a comparison of how >> sessions >> are handled in Merb as compared to Rails? > > Not really, sessions are not really the key element than makes Merb faster > than Rails. > >> >> What exactly makes Merb more efficient? > > The fact that it was developed with thread safety in mind. Not a single > mutex in the critical path. Most of the critical path was also optimized to > shave few ms here and there making a request go through the framework much > faster. > >> >> How many sessions can be handled by one worker process? > > It depends on your code and your server. > >> >> How can I spawn more than one worker process? > > Check the merb flags, for instance $ merb -c 3 would start a cluster with > 3 workers. > >> >> Is there any configuration/way to load balance requests in Merb? > > I'm not sure what you mean there, requests will be balanced between the > workers, but if you get more traffic than 1 server can handle, you might > want to set a real load balancer in front of your servers. > >> >> Regards, >> >> Ashwin >> >> > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
