Cakephp is a framework built on top of PHP. There is really nothing
all that special about Cakephp when it comes to scaling your site.
The basic techniques of scaling a web application for a LAMP stack are
the same weather or not your using Cakephp.
Change your search and leave out the 'cakephp' keyword and look at
articles that talk about scaling a LAMP stack.

Then take those individual techniques of memcache, NFS, CDN, Database
Replication, Session mgt, etc. And look for articles that talk about
each of the specific techniques in regards to Cakephp. And even then
the techniques often times have nothing to do with Cakephp. You'll
find much more relevant information and having a good overview
understanding of scaling a basic LAMP stack will help you understand
more about what area of your application needs to be most scalable.

For an example it makes no sense to add multiple servers if the
problem could be better resolved by simply doubling the memory in your
current server.
This is where performance profiling really pays off. You need to know
what your bottle necks are, and you need to know what the correct
solution to that bottle neck will be. There is no one size fits all
scalability plan. But there are specific techniques to deal with a
specific problem.
Understanding what the field of scalability has to offer for your
underlying technologies is key to being successful in solving your
bottlenecks.


On Feb 9, 1:57 am, byqsri <[email protected]> wrote:
> Many Thanks for your answers.
> It seems to me that you have experience with how scale a cakephp
> system
>
> About DB : I have find this to configure Master and 
> Slaveshttp://bakery.cakephp.org/articles/gman.php/2009/01/20/master-slave-s....
> But it seems very simple perhaps there is some hidden complications.
> Another question about this : What is the best practise to replicate
> the data instantly from Master to Slaves when there is a write
> operation?
>
> About CakePHP : What is the best practise to deploy the cakephp code
> updates on many servers instantly? Rsync?
> Exists a configurable automatic tool to do this?
>
> Many Thanks
>
> On 8 Feb, 17:05, Justin Edwards <[email protected]> wrote:
>
>
>
>
>
>
>
> > If your concern is bandwidth, host all of your static files on a CDN.
>
> > If your concern is processing power, distribute your load through many
> > servers (you can use a load balancer, apache, lighttpd, nginx or cherokee)
> > and use mysql or a cache backend for your session storage.
>
> > If your concern is database usage (IO), cache most of your data (memcached
> > would be the best here).  You can also use a master and slave database
> > setup.  Make all of your reads from your slave and your writes to your
> > master.
>
> > If you distribute your load between servers, you will need to make sure
> > files are synchronized,  If you have file upload you need to make sure that
> > you force users to upload to one server and then rsync your data out from
> > that server to your others.
>
> > You can also host your data off of an NFS mount so that you don't need to
> > synchronize your data.
>
> > On Wed, Feb 8, 2012 at 9:03 AM, byqsri <[email protected]> wrote:
> > > Hi
> > > I have a web application where users can uplaod file,images and work
> > > with some datas in db
> > > I use CakePHP ,MySQL,Memcache.
> > > I have a server with Apache and for the file's uploading ( I use Media
> > > Plugin of David Persson).
> > > I have another server with MySQL
> > > For the moment I have 500 users and all works fine.
> > > My problem is that in the next months I can have a very fast increment
> > > of users and this configuration is not  sufficient for me.
> > > I have tried to search on Google about how scaling a web app with
> > > CakePHP with scaling of MySql and scaling CDN  but I didn't find
> > > anything really concrete I would ask if someone with experience about
> > > this if he can suggest to me something resources (books,articles,code
> > > suggestions) ffrom which I can begin  to work.
> > > Many Thanks
>
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > others with their CakePHP related questions.
>
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this group
> > > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to