Hi , what will be if my site traffic became huge , can i separate db server and add 3 or more app server using rails framework. i think designing my site using rails and put it in EC2 servers. what do you think about this system? Will be work or not?
Trausti Thor Johannsson
2009-Aug-06 09:04 UTC
Re: Separate App an DB servers , Scabality and rails
What you should consider first is to use cache. First and foremost, try memcached. Just store the results from database find, then you never touch the database except for writing and then for the first time reading after the write. Also, you can use varnish cache, similar to a proxy server in front. Requires minimal knowledge, but you can easily go from 40 requests per sec to over 2000 on a shared host. For example, I work for a company with the largest and most visited website in Scandinavia (top 3 at least), and we only have 1 or 2 servers for almost all and then 2 varnish servers. Not the full truth but pretty close. We get over 1.5 unique visitors per day with many more millions page views, and have plenty left, all due to varnish cache. For all normal web sites, you can get really far with just memcached. Trausti On Thu, Aug 6, 2009 at 10:15 AM, lecielbleu <canali83-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi , what will be if my site traffic became huge , can i separate db > server and add 3 or more app server using rails framework. i think > designing my site using rails and put it in EC2 servers. what do you > think about this system? Will be work or not? > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---