Scalability of a CakePHP application

2009-06-11 Thread marco.rizze...@gmail.com

Hi
I develop a web application in cake and now I must to scale my system.
I think to replicate all my code in all my webservers but I have a
doubt :
The static images  I must replicate in all them? And the javascripts
and the css in webroot?
If not how can I modify the helpers (html , javascript ... ) in the
way to use the right url where there are image,js,css or can I do it
with config of cake?

Another question : the files that are uploaded by users how can manage
this in an enviroment with many web server?

I'm very interested about other experiences relative on how manage the
code's problem in scalable enviroment
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Scalability of a CakePHP application

2009-06-11 Thread Julien Buratto

Ciao Marco,

I think that this topic is a little bit off, more related to
clustering tecniques than cake in general.

However, the answer is depends.
If you want to cluster using multiple different web servers, than you
are showing yourself possible issues, but if you decide for instance
to store the filesystem getting files into a networked filesystem, all
server could access them.
Database is easy to cluster, webserver can be clustered with a proxy
in front of it, copying the application on all the php enviroment is
quite easy to do with versioning tools to keep the code updated
everywhere..

Ah, don't forget to put the sessions into the database and don't leave
them on one server disk.. unless you use sticky sessions on the proxy
to cluster...

Julien

2009/6/11 marco.rizze...@gmail.com marco.rizze...@gmail.com:

 Hi
 I develop a web application in cake and now I must to scale my system.
 I think to replicate all my code in all my webservers but I have a
 doubt :
 The static images  I must replicate in all them? And the javascripts
 and the css in webroot?
 If not how can I modify the helpers (html , javascript ... ) in the
 way to use the right url where there are image,js,css or can I do it
 with config of cake?

 Another question : the files that are uploaded by users how can manage
 this in an enviroment with many web server?

 I'm very interested about other experiences relative on how manage the
 code's problem in scalable enviroment
 




-- 
Julien Buratto

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---