ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  The PHP Scalability Myth
Subject:   article bugs
Date:   2003-10-17 10:01:31
From:   anonymous2
Ok the article has bugs. As some noted scalability refers to THROUGHPUT not performance (ie. speed).


Actually, Java or JSP by themselves don't solve the prob. And neither does PHP. EJB solves the problem.. in PHP I'm sure the solution is possible but it isn't free. (w Java you have load balancers and connection pooling too.. but the problem w PHP is that you have to roll your own session management.. in EJB its free)


I'm sure I can whip up a solution in C too, but I'd need some time figure out some things.


PHP advantages:
- Rapid development
- little barrier to coding up a solution
- easy to learn


PHP disadvantages:
- Pear::DB sucks (sorry)
- Error handling is not standardized and requires more effort


Java advantages:
- Better for large scale design
- Robust error handling
- Lots of enterprise tools


Java disadvantages:
- Easy things are too troublesome to do
- Slower development



So does PHP scale? Depends on how you design your app. Is there a standard way to do it. I don't think so.



Does Java scale? It does if you use EJB properly.




1 to 2 of 2
1 to 2 of 2