Professional PHP

PHP Programming, Web Development, PHP Advocacy and PHP Best Practices.
« Evolution not Revolution
The PHP scalability saga continues »

PHP Scalability and Performance

June 30th, 2004

Troutgirl seems to have hit a hot button in her blog about Friendstar switching from JSP to PHP. This story has been picked up by a variety of bloggers. I originally saw it from Dynamically typed. Russell Beattie Notebook has some good discussion on the topic. Joe Grossberg talks about a redirection problems with the switch over and adds a link to Scott Andrew who talks about standards compliance of the new design. The consensus is that the new version is faster.

I hope that more information will come out about this. It would be nice to have another large scale case study alongside the Yahoo talks: Large Scale PHP, One year of PHP at Yahoo, and Making the case for PHP at Yahoo.

Another interesting case study is the Gaia Online discussion board. One of the largest forums on the net, on a recent check, it claims to have 70 million messages online with roughly 9,000 simultaneous users, and 750,000 registered users. The sitepoint post that brought this to my attention claims they are getting over 700,000 new posts per day. All of this running on a modified version of open source phpBB. Here is an interview with the board owner and founder.

The thread that talks about the modifications to phpBB to support Gaia Online’s volume is very interesting. It focuses mostly on query optimization. Not surprising in light of the previous discussion on PHP’s shared nothing architecture. If PHP encourages moving concurrency management to the database, then application scalability is going to become a matter of database scalability.

Switching from scalability to performance, John Lim talks about his experiences optimizing PHP code using xdebug. His article makes me want to check out xdebug, but I have too much on my plate right now to even risk getting near my PHP configuration. I am hoping that I will have time to do this before the upcoming WACT release.

categories PHP
tags performance-optimization, php-scalability

Related Posts

  • un-Friendster: fired for blogging
  • PHP Development From Java Architects Eye
  • The PHP scalability saga continues
  • Why is PHP Code Considered Hard to Maintain?
  • Friendster wrapup: does MySQL scale
You can leave a response, or trackback from your own site.

9 Responses to “PHP Scalability and Performance”

  1. #1 mark responds...
    August 19th, 2004 at 10:21 am

    PHP looks like a clear winner, but only time will tell.

  2. Jeff Moore's Blog » un-Friendster: fired for blogging pingbacked on September 1st, 2004 at 5:58 am
  3. #3 Venezolano responds...
    September 4th, 2004 at 2:44 pm

    I started with ASP years ago, I think PHP is a lot more powerful… I’d like to know which one would give better performance in high load application between PHP, JSP or ASP.NET… But I think any of them installed on a Unix server will be better than a Windows one.

  4. #4 Ruturaj Vartak responds...
    December 3rd, 2004 at 4:17 am

    I still work in PHP (more than a yr. now) . What I find here in India is that PHP still is considered as a simple Script tech. they consider php is unable to compete with J2EE which IS a more advanced.. but consider the Learning curve is far more sharp for J2EE and I don’t need to say anything about my Love PHP :)

    But yes PHP still needs more application like variable stuff… which is required if you want same set of variables, values over an application…

    Anyways… PHP is still Ruling.

  5. Jeff Moore’s Blog » Blog Archive » php-development-from-java-architects-eye pingbacked on April 23rd, 2005 at 11:05 am
  6. #6 Ajitesh responds...
    August 1st, 2005 at 4:24 am

    Thatks for the nice blog! Looks like PHP is winning over me. I am planning to start a portal and considering PHP or JSP.

  7. #7 John Loehrer responds...
    October 6th, 2005 at 7:38 pm

    I am a developer at gaiaonline.com and i am here to tell you that php scales. We now can easily support 30K simultaneous users signed in with no problem. After a few more optimizations we should be able to double and triple our load, without even adding any more hardware. We currently have about 300M posts on the site, with a few million more being added every day. Our site is now refactored and fine tuned, but the real trick to getting the most bang for your buck is to segregate the data into distinct services and build infrastructure that will allow you to transparently distribute the data load out across your servers. Divide and conquer!

  8. Todo revuelto » Blog Archive » PHP y la escalabilidad pingbacked on February 8th, 2006 at 5:36 am
  9. #9 kvz responds...
    October 6th, 2007 at 9:00 am

    A thorough article to increase the performance of apache & php:
    http://kevin.vanzonneveld.net/techblog/article/survive_heavy_traffic_with_your_webserver

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

code: use [code=php][/code].

Comment Preview

  • Search

  • Subscribe

    Subscribe All Posts
    Subscribe All Comments
    Subscribe All Bookmarks
    Subscribe with Bloglines Subscribe with My Yahoo Add to netvibes Subscribe in NewsGator Online Add to Google
  • Share This

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (16)
    • Open Source (14)
    • PHP (95)
    • Software Design (28)
    • Usability (14)
    • WACT (7)
    • Web Design (20)
  • Recent Comments

    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  94
      noujoum, Michiel Van Kets, isorabins [...]
    • Sarah Snow Stever  24
      Dubai Web Design, Development, Snowcore, ennah [...]
    • Benchmarking PHP's Magic Methods  8
      stas, minikperi, Shelon Padmore [...]
    • Keywords and Language Simplicity  7
      olmse, Handy, minikperi [...]
    • Even the Big Guys Get Validation Wrong  4
      James Benson, Michael, Enric Naval [...]
    • Improved Error Messages in PHP 5  12
      James Benson, Iron, baggreeddog [...]
    • How to Transfer Mac OS X Application Data between Computers  36
      Secret Santa, micala, Khaled bin Alwaleed [...]
    • Programming Language Trends via Google  15
      MattW, Jeff Davis, retry [...]
    • PHP Development From Java Architects Eye  10
      Grrkkvho, Bobrila, FelhoBacsi [...]
    • The value of MVC  9
      Euvmetkk, Bobrila, Vulchak [...]
    • nofollow and comment spam  5
      Scopmazo, Qmumqckx, sss [...]
  • Pages

    • Tags
  • Recent Posts

    • php | tek Wrapup
    • php | tek 2008
    • Sarah Snow Stever
    • Benchmarking PHP’s Magic Methods
    • The Endpoints of the Scale of Stupidity on Video
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)
    • Keywords and Language Simplicity
    • Improved Error Messages in PHP 5
    • Michigan Taxes Graphic Design Services
    • Ruby versus PHP or There and Back Again
  • Archives

    • 2008: May
    • 2007: Jan Feb Mar Apr May Sep Oct Nov
    • 2006: Jan Feb Mar Apr May Jun Jul Oct Nov Dec
    • 2005: Jan Feb Mar Apr May Sep Oct Nov Dec
    • 2004: Apr May Jun Jul Aug Sep Oct Nov
  • Menu

    • Register
    • Log in