Re: Does the CakePHP ready for 'Large Scale' web applications?
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 flow of this strategy? On Friday, February 11, 2011 5:39:52 PM UTC+6, majna wrote: 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 true; } function afterDelete() { $this-useDbConfig = 'default'; return true; } http://bakery.cakephp.org/articles/eagerterrier/2007/05/26/load-balancing-and-mysql-master-and-slaves-2 On Feb 10, 6:14 pm, ibejohn818 john.c.ha...@gmail.com wrote: 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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 you going. The best thing about Cake is that it is database-agnostic. Investing your time in database platforms and options could pay off quite nicely. Also, analysis and optimization of your models for fewer joins/reads/writes and more caching might be fruitful. MongoDB offers a great way to store related data in a single document and also load-balance and cluster your database. For a high-traffic, translation-heavy site, it could come in handy. I am currently working on a hybrid site, which uses both MySQL and Mongo for different models, searching for best performance. Investigate if Memcache might help you. Also offers load-balancing and allows you to cache the records of your choosing for the fastest possible reads. MySQL does SOME memory caching (to my knowledge), but just bench it and evaluate. If it's your code, try optimizing the code and the PHP setup on your server. If it's your network, find another service provider. Definitely use Containable behavior, if you are still not using it ... As someone already said, app optimization is a fairly complex art form. Most RADs are not built with speed in mind, but with fast deployment. Pozdrave u dragu našu! :D Vanja On Saturday, June 15, 2013 6:43:08 AM UTC+2, Mr-Yellow wrote: 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 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 jerem...@classoutfit.com http://www.classoutfit.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 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 jerem...@classoutfit.com javascript: http://www.classoutfit.com -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Does the CakePHP ready for 'Large Scale' web applications?
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, Feb 11, 2011 at 6:39 PM, majna majna...@gmail.com wrote: 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 true; } function afterDelete() { $this-useDbConfig = 'default'; return true; } http://bakery.cakephp.org/articles/eagerterrier/2007/05/26/load-balancing-and-mysql-master-and-slaves-2 On Feb 10, 6:14 pm, ibejohn818 john.c.ha...@gmail.com wrote: 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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 true; } function afterDelete() { $this-useDbConfig = 'default'; return true; } http://bakery.cakephp.org/articles/eagerterrier/2007/05/26/load-balancing-and-mysql-master-and-slaves-2 On Feb 10, 6:14 pm, ibejohn818 john.c.ha...@gmail.com wrote: 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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
Thanks.. :D I'll try this. On Fri, Feb 11, 2011 at 12:14 AM, ibejohn818 john.c.ha...@gmail.com wrote: 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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.com wrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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-Cache#!/view/346/Caching-in-the-Controller Good luck! 2011/2/10 Okto Silaban o...@silaban.net: Thanks.. :D I'll try this. On Fri, Feb 11, 2011 at 12:14 AM, ibejohn818 john.c.ha...@gmail.com wrote: 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 = 'default'; return $success; } public function saveAll($data = null, $options = array()) { $this-useDbConfig = 'master'; $status = parent::saveAll($data,$options); $this-useDbConfig = 'default'; return $status; } public function updateAll($fields, $conditions = true) { $this-useDbConfig = 'master'; $status = parent::updateAll($fields,$conditions); $this-useDbConfig = 'default'; return $status; } public function delete($id = null, $cascade = true) { $this-useDbConfig = master; $status = parent::delete($id,$cascade); $this-useDbConfig = 'default'; return $status; } } For multiple Slaves you should use a load balancer to RoundRobin Balance the requests to your slaves. On Feb 10, 9:05 am, Okto Silaban o...@silaban.net wrote: 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 tariques...@gmail.comwrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 o...@silaban.net wrote: 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 tariques...@gmail.com wrote: Have you split the reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- = PHP for E-Biz: http://sanisoft.com = -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
On Feb 3, 5:31 am, Dr. Tarique Sani tariques...@gmail.com wrote: snip 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 performance. Lets see this patch :) -Mark Cheers Tarique -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 don't need to change your apps code), but then comes issue with the network latency. So, for now, we're back to use 1 single DB only :( (with bigger resource) If anybody know how to do this with CakePHP (1.3.x), please help me :D Or, maybe is there any built-in mysql-cluster feature in the CakePHP 2.x? thanks. On Wed, Feb 2, 2011 at 7:39 AM, Louie Miranda lmira...@gmail.com wrote: I think, 100,000 users is small. -- Louie Miranda -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
On Tue, Feb 8, 2011 at 11:25 PM, mark_story mark.st...@gmail.com wrote: On Feb 3, 5:31 am, Dr. Tarique Sani tariques...@gmail.com wrote: snip 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 performance. Lets see this patch :) It is not a patch but a re-write from scratch where we maintain one table per language per model - the behavior just switches the table after detecting language To elaborate eg: you have posts table for default language then there will be posts_de table for holding all the German translations and so on for each language Currently we are testing it on a client's site which has more than 250 models and the translations table had reached nearly a million rows. Will release it - promise :-) Cheers Tarique -- = PHP for E-Biz: http://sanisoft.com = -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
On Tue, Feb 8, 2011 at 11:57 PM, Okto Silaban o...@silaban.net 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 reads and the writes? All the writes go to the master which is on a server of its own and the reads are from the slaves which are typically on the same machine as the webserver and of course use very aggressive caching Cheers Tarique -- = PHP for E-Biz: http://sanisoft.com = -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
@ 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 more than 10,000.000 people. Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 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 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 Andy Gale. http://tv.cakephp.org/video/CakeFoundation/2010/12/24/andy_gale_-_cakephp_at_massive_scale_on_a_budget -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
On Thu, Feb 3, 2011 at 3:52 PM, Shinya Koizumi sh.koiz...@gmail.com 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 then I would like to listen to your reasons/experiences as to why you say CakePHP is not ready for AJAX sites? 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 ;-) ) Cheers Tarique -- = PHP for E-Biz: http://sanisoft.com = -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 1 fev, 21:45, Salines nikola.parad...@gmail.com 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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. Februar 2011, um 00:45:07 schrieb Salines: 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 several framework (Yii, Cakephp, Symfony, RoR...) in general (sorry to ask this in the Cakephp group but i know there are many talents here using many frameworks) ? I found some articles about benchmark evaluation but most of them only made test about the speed of a Hello world system, which are reflected the true performance of each framework (in my opinion) On Wed, Feb 2, 2011 at 7:23 PM, acl68 c...@anjaliebermann.de wrote: 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. Februar 2011, um 00:45:07 schrieb Salines: 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 maximum results. But the last few days I read about making web applications that will have high traffic. In several places I read that CakePHP is not suitable for these purposes. That's what scares me, because I have no experience with high traffic sites. Sorry, my English is not perhaps the best:) -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 knowledge of framework is required if you want large/complicated app perform well too, regardless which framework was used. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 lubomir.st...@gmail.com 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 knowledge of framework is required if you want large/complicated app perform well too, regardless which framework was used. -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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.org and help others with their CakePHP related questions. 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
Re: Does the CakePHP ready for 'Large Scale' web applications?
For speeding up things,you can use phpspeedy in cakephp. On Wed, Feb 2, 2011 at 7:21 PM, Salines nikola.parad...@gmail.com 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 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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, their addons site would still run on CakePHP. -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 Andy Gale. http://tv.cakephp.org/video/CakeFoundation/2010/12/24/andy_gale_-_cakephp_at_massive_scale_on_a_budget -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 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 Andy Gale. http://tv.cakephp.org/video/CakeFoundation/2010/12/24/andy_gale_-_cakephp_at_massive_scale_on_a_budget -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Does the CakePHP ready for 'Large Scale' web applications?
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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
CakePHP can do it. No other opinion needed. -- Larry E. Masters On Tue, Feb 1, 2011 at 5:45 PM, Salines nikola.parad...@gmail.com 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
I think, 100,000 users is small. -- Louie Miranda On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters php...@gmail.com wrote: CakePHP can do it. No other opinion needed. -- Larry E. Masters On Tue, Feb 1, 2011 at 5:45 PM, Salines nikola.parad...@gmail.com 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
1,0 users is very very small I think. On Wed, Feb 2, 2011 at 6:09 AM, Louie Miranda lmira...@gmail.com wrote: I think, 100,000 users is small. -- Louie Miranda On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters php...@gmail.com wrote: CakePHP can do it. No other opinion needed. -- Larry E. Masters On Tue, Feb 1, 2011 at 5:45 PM, Salines nikola.parad...@gmail.comwrote: 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Does the CakePHP ready for 'Large Scale' web applications?
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 query - so if you have long table rows the query gets to be very slow very soon Also 10 is a small total number but performance depends on number of concurrent users - this is not cakePHP specific but a general web app rule But again cake allows you to optimize everything very easily so build with cake and come back with specific problems Cheers Tarique On Wed, Feb 2, 2011 at 5:15 AM, Salines nikola.parad...@gmail.com 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 associations track user activity user has a daily statistics (hits user page, ..) RBAC / ACL, user privileges: Guest, registered, premium, translator, moderator, admin, .. pay per sms, credit card payment gateway SLUG etc We want to build a system for potential 100,000 users of our services in the first year. Content on the site will attract a large number of hits. For future growth: db prepared for load balancing separate servers for images and video etc Nginx server for application, etc I want to hear your views, articles on the net does not provide enough information, most of them old, others suggest other frameworks, http://www.google.com/search?q=php+frameworks+large+scale Thanks -- 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 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php