PHP Classes

scaling

Recommend this page to a friend!

      PHP Classes blog  >  Top 10 Wrong Ideas Ab...  >  All threads  >  scaling  >  (Un) Subscribe thread alerts  
Subject:scaling
Summary:PHP scales up, most other platforms don't scale down
Messages:3
Author:michael kimsal
Date:2011-08-18 20:15:28
Update:2011-08-19 04:52:35
 

  1. scaling   Reply   Report abuse  
Picture of michael kimsal michael kimsal - 2011-08-18 20:16:29
Another diff (or misconception) It's certainly possible to scale PHP up to run massive multi-server apps. Whether other platforms do that more efficiently or not is up for debate, but still possible. Few other platforms can scale down the way PHP does - embed 3 lines in a web site, runs, memory's cleaned up, etc. Lots more baggage and set up for most people to make that happen in .net or java, for example.

  2. Re: scaling   Reply   Report abuse  
Picture of Hernani Cerqueira Hernani Cerqueira - 2011-08-19 02:47:15 - In reply to message 1 from michael kimsal
This is probably the best pro-PHP argument i've seen in many years. Never thought of that until now, but is so true that makes me feel stupid :)

  3. Re: scaling   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-08-19 04:52:35 - In reply to message 1 from michael kimsal
Good point. I am not very experienced with Java but from what I understood, Java requires that you reserve a certain amount of RAM to run its virtual machine, so that memory cannot be used by other applications in the same machine.

It may seem that it can be faster to execute code preloaded in memory, but it seems to be a great waste of memory.

PHP can be much more efficient than that by using caching extensions and pre-forked Web server processes to not be too slow to handle each request.