Re: Does the CakePHP ready for 'Large Scale' web applications?

2013-10-21 Thread G. M. Shaharia Azam
But in this case you have 2 database. One is 'master' and another one is 'default'. So when you are saving data to 'master' and updating data by 'default' or deleting data by 'default'. Then how this 2 database will be synchronized. Data can be lost or any damage? Can you tell me the complete f

Re: Does the CakePHP ready for 'Large Scale' web applications?

2013-06-21 Thread Vanja Dizdarević
Summary: Analyse hard and try other solutions for the biggest problems. I would suggest you first find the bottlenecks of your app. Is it the code, the network, the database, other resource files? If the code, which functions? A PHP profiler + network tab in Firebug/DeveloperTools should get yo

Re: Does the CakePHP ready for 'Large Scale' web applications?

2013-06-14 Thread Mr-Yellow
Ask MySpace what it's like to get big on really bad code. Oh that's right everyone moved to Facebook etc When success comes, it can come very fast, it's good practice to build scalable code from day-0. On Thursday, 3 February 2011 18:04:00 UTC+11, Jeremy Burns wrote: > > Always makes me chu

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-13 Thread Okto Silaban
AFAIK it doesn't work on Cake => 1.2.x >From comment on that post : The approach using beforeSave() no longer works for cake 1.2. Looking at CAKE/libs/model/model.php:save() the call to beforeSave() happens long after variable $db has been set using the old value of $this->useDbConfig . On Fri,

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-11 Thread majna
Cleaner solution for master/slave using callbacks (or Behavior) function beforeSave() { $this->useDbConfig = 'master'; return true; } function afterSave() { $this->useDbConfig = 'default'; return true; } function beforeDelete() { $this->useDbConfig = 'master'; return tru

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Dr. Tarique Sani
Well out of the box Cake does not but you can do it using either AppModel or better create a behavior and use all the beforeFunction to switch DB configs Behavior is better IMO Cheers Tarique On Thu, Feb 10, 2011 at 10:35 PM, Okto Silaban wrote: > That's what I'm trying to do. > I've setup 1

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Eugenio
Hi Okto, have you try using the view cache helper = its really great, or perhaps you could use the plain html cache plugin, that really will speed up, of course it have some cons... http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper http://book.cakephp.org/view/348/Clearing-the

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Okto Silaban
Thanks.. :D I'll try this. On Fri, Feb 11, 2011 at 12:14 AM, ibejohn818 wrote: > This what I am using. > === > class AppModel extends Model { > > > >public function save($data = null, $validate = true, $fieldList = > array()) { > >$this->useDbConfig = 'master'; > >

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Okto Silaban
That's what I'm trying to do. I've setup 1 master and 2 slaves. But CakePHP doesn't support read & write query separation. So, do you have any information how can I split the read & write query? *other than rewrite all my models thanks. On Wed, Feb 9, 2011 at 10:03 AM, Dr. Tarique Sani wrote: >

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread ibejohn818
This what I am using. === class AppModel extends Model { public function save($data = null, $validate = true, $fieldList = array()) { $this->useDbConfig = 'master'; $success = parent::save($data,$validate,$fieldList); $this->useDbConfig

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-08 Thread Dr. Tarique Sani
On Tue, Feb 8, 2011 at 11:57 PM, Okto Silaban wrote: > trying to make a : master - slave - slave database. Still can't find a > convenient way to do this. Last that I did is using master-master DB (since > you don't need to change your apps code), but then comes issue with the Have you split the

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-08 Thread Dr. Tarique Sani
On Tue, Feb 8, 2011 at 11:25 PM, mark_story wrote: > > On Feb 3, 5:31 am, "Dr. Tarique Sani" wrote: > >> Yes I do stand by my statement that the current translate behavior is >> not ready for massively translated sites but re-writing that is >> trivial (hmmm... time to clean up and release that

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-08 Thread Okto Silaban
I don't have 100k users for now. But I have about 4mio pageviews/month. The site is still running, but getting slower. The hardest part is when I trying to make a : master - slave - slave database. Still can't find a convenient way to do this. Last that I did is using master-master DB (since you do

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-08 Thread mark_story
On Feb 3, 5:31 am, "Dr. Tarique Sani" wrote: > Yes I do stand by my statement that the current translate behavior is > not ready for massively translated sites but re-writing that is > trivial (hmmm... time to clean up and release that code ;-) ) I like 'trivial' changes that greatly improve pe

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Dr. Tarique Sani
On Thu, Feb 3, 2011 at 3:52 PM, Shinya Koizumi wrote: > If the site is going to get more ajax driven sites like facebook i wouldn't > recommend to use since > the framework is not ready and it will take more time to figure out. Just my > opinion. > And my counter opinion is that it is ready! but

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Shinya Koizumi
If the site is going to get more ajax driven sites like facebook i wouldn't recommend to use since the framework is not ready and it will take more time to figure out. Just my opinion. On Wed, Feb 2, 2011 at 11:04 PM, Jeremy Burns | Class Outfit < jeremybu...@classoutfit.com> wrote: > Always

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-03 Thread Salines
@ keymaster Thanks, I looked it earlier @ Jeremy Burns Man, I must be inform, we have over 100,000 potential clients, each of them has an average of four offers to publish. Each submission will be translated into other European languages. We are an interesting country, which annually attracts m

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Jeremy Burns | Class Outfit
Always makes me chuckle when people are asking if their app can handle Facebook style traffic. Don't waste time solving problems you don't yet have. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 07:01, keymaster wrote: > You'll be lucky if y

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread keymaster
You'll be lucky if you reach a small fraction of the traffic the sites in the following thread get: http://groups.google.com/group/cake-php/browse_thread/thread/a87ac46d4f590566# In particular, watch this wonderful presentation on CakePHP TV, entitled: "CakePHP at massive scale on a budget", by A

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread 100rk
Thank you for the link to google results. No, I'll not read all of them just to realize where you think you find something to be scared of. I'm not scared, and I've done large cake apps with many concurrent users. No worries. If Mozilla Foundation didn't switched to another programming language, th

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread sanjib dhar
For speeding up things,you can use phpspeedy in cakephp. On Wed, Feb 2, 2011 at 7:21 PM, Salines wrote: > Link is in the first post. > > I am not a beginner, the first web page I made 10 years ago, but like > I said I have no experience with high traffic sites. > > > -- > Our newest site for the

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Salines
Link is in the first post. I am not a beginner, the first web page I made 10 years ago, but like I said I have no experience with high traffic sites. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Hugo M
I don't have experience with high traffic applications, but I've used CakePHP and it has alot of cache options you can use. You just have to know how to use it. 2011/2/2 100rk > > In several places I read that CakePHP is not suitable for these > > purposes. > > Links, please. Do not expect speed

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread 100rk
> In several places I read that CakePHP is not suitable for these > purposes. Links, please. Do not expect speed of light in first working attempts/ apps of cake newbies. RAD allows you to have your app done quickly - "make it work" is 1st step. Then "make it work better" - developer with good kn

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Salines
Hi, In a small country like Croatia has 100,000 users a very good result. Each of these users will be offering some of the services primarily for European customers, and later for the rest of the world. In the past 2 years I have read many articles related to CakePHP. I know what I do to get the

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread Tran Cao Thai
sorry for this off topic post ( i am newbie so be mercy :) ). How do we test the performance of the project which is already done ? like if 100 users use the system at the same time, how to evaluate which level of speed is fast and which is low? how do we know about the real benchmark of severa

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread acl68
Hi Salines, be sure to set up you application so to get the full benefit from caching. Use fat models and cache elements where possible. http://gluei.com/blog/view/cakephp-best-practices-fat-models-and-skinny- controllers http://book.cakephp.org/view/1083/Caching-Elements Anja Am Mittwoch, 2.

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-02 Thread André Ávila
Yes, no doubt and remember anything that can use cache. I made a portal for government services which currently has 40,000 users and it works very well. I made an OAuth provider and it can distribute its authentication, authorization, and REST services to different platforms. Cake is perfect. On

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-01 Thread Dr. Tarique Sani
I will play the devil's advocate here if I10n/i18n is your priority specifically if you store translated model content, be ready to optimise your app and cache your views on a per language basis because the default translate behaviour adds one LEFT JOIN per model field to be translated to your que

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-01 Thread sanjib dhar
1,0 users is very very small I think. On Wed, Feb 2, 2011 at 6:09 AM, Louie Miranda wrote: > I think, 100,000 users is small. > -- > Louie Miranda > > > > > On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters wrote: > >> CakePHP can do it. No other opinion needed. >> >> -- >> Larry E. Masters

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-01 Thread Louie Miranda
I think, 100,000 users is small. -- Louie Miranda On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters wrote: > CakePHP can do it. No other opinion needed. > > -- > Larry E. Masters > > > On Tue, Feb 1, 2011 at 5:45 PM, Salines wrote: > >> Hi, >> >> My next project requires the following: >> >> S

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-01 Thread Larry E. Masters
CakePHP can do it. No other opinion needed. -- Larry E. Masters On Tue, Feb 1, 2011 at 5:45 PM, Salines wrote: > Hi, > > My next project requires the following: > > Social networking > l10n / i18n > 60 or more tables in the database > many tables have multiple associations > user has many ass