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.

Filed Under

  • PHP

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.

11 Responses to “PHP Scalability and Performance”

  1. Jeff Moore's Blog » un-Friendster: fired for blogging says:
    9/1/2004 at 5:58 am

    [...] I had hoped that more information would come out about Friendsters Java to PHP conversion (1 2 3). Sadly, I don’t think thats going to happen. It seems t [...]

  2. mark says:
    8/19/2004 at 10:21 am

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

  3. Venezolano says:
    9/4/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. Ruturaj Vartak says:
    12/3/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 says:
    4/23/2005 at 11:05 am

    [...] led premature optimization. And it often leads to code that is slower and less scalable. Scalable applications can be written in PHP. One just uses a di [...]

  6. Ajitesh says:
    8/1/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. John Loehrer says:
    10/6/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 says:
    2/8/2006 at 5:36 am

    [...] PHP scalability and performance  [...]

  9. kvz says:
    10/6/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

  10. Shared-Nothing FTW « 21st Century Digital Boy says:
    2/18/2009 at 9:10 am

    [...] Hmmm. Shared nothing … I wonder where I’ve heard that before. [...]

  11. Pierre says:
    8/2/2009 at 3:43 am

    Many users of PHP, Python and the like will face disruption of their business model soon because of the “CPU frequency halt”:
    http://gwan.ch/en_scalability.html

Leave a Reply

Click here to cancel 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

    Subscribe Feed
    Share Subscribe to this blog…
    Share Bookmark or share this page…
  • About

    My name is Jeff Moore. I'm a PHP programmer living in San Francico and working for a startup.

    More about me…

  • Categories (Home)

    • Agile Methods (14)
    • Mac (14)
    • Misc (17)
    • Open Source (14)
    • PHP (98)
    • Software Design (29)
    • Usability (14)
    • Web Design (20)
  • Recent Comments

    • Programming Language Trends via Google  19
      Craigslist pva, jessica, Scott [...]
    • Looking Towards the Cloud  35
      bentonville multiple listing, cosmetic dental, Sam Brodish [...]
    • PHP versus ASP  8
      Marhta Blight, Ravi, Ryan Brooks [...]
    • How to Transfer Mac OS X Application Data between Computers  59
      Website Migration, harry the computer support guy, Dotty Salvage [...]
    • Working with PHP 5 in Mac OS X 10.5 (Leopard)  157
      lehuuphuc, Robert Parthemer, Lingerie Intimate [...]
    • PHP Games  25
      jessica, Tennille Cranor at Chilli Plants, Lucas Ortell [...]
    • un-PEAR-ing  5
      jessica, Eugene Panin, Arnaud [...]
    • The Legality of Republishing RSS Feeds  23
      kevinxiao, Marissa Miscovich, Quick Student Loans [...]
    • Faster Page Loading  4
      jessica, angular cheilitis, Aaron Rosenfeld [...]
    • PDO versus MDB2  15
      jessica, kevinxiao, Gavin [...]
  • Recent Posts

    • ZendCon: Writing Maintainable PHP Code
    • Looking Towards the Cloud
    • Holiday Tech Support
    • Closures are coming to PHP
    • 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)
  • Site

    • Archives
    • Log in
  • Search