Farming PHP Preview

Even though issue 03.05 is not out yet, I am already deep in thought about my next article for International PHP Magazine. I’m planning to tap my experience architecting and building scalable web server farms for PHP/MySQL applications to bring you an overview of the issues involved. Combined with the forthcoming issue on Enterprise PHP Coding Standards, this should flesh out some of my thinking and experience implementing PHP solutions for business-critical applications.

Some of the issues I’m considering tackling in my “Farming PHP” article include:

  • Load Balancing versus Round-Robin DNS
  • Web Log Aggregation
  • Separating the PHP and SQL layers via a private network:
    • Configuring multiple interfaces
    • Naming the network via /etc/hosts
    • Hardening the network
  • Leveraging MySQL master/slave replication:
    • For failover using heartbeat
    • To offload read-only reporting
    • For backup
    • For local read-only operations
  • Offloading periodic operations to a separate server
  • Offloading mail sending operations to a separate server using Mail_Queue
  • Dealing with PHP sessions in a distributed environment
  • “Sticky” load balancing sessions
  • Dealing with file uploads in a distribtued environment
  • Separating the backroom/admin functionality from the public-facing app.
  • Pushing files to the farm:
    • Similarities to a compiled model
    • Establishing homogeneous user/group permissions and root trust
    • Setting up incremental, periodic file push when necessary
    • Optional encoding
    • Maintaining versioning on source code for possible rollback
  • Using shared filesystems
  • Modifying existing applications and packages to run on the farm
  • The importance of coding standards in a farmed environment
  • The three primary benefits of farming and tradeoffs involved with different approaches:
    • Redundancy
    • Scalability
    • Mantainability

Sound interesting? Stay tuned for more as I flesh out my thinking, prepare diagrams, and otherwise sift through my experiences bringing best-practice scalability to the powerhouse web development combination of PHP and MySQL.

5 Comments

  1. Robert
    Posted April 19, 2005 at 9:39 am | Permalink

    The editors of PHPDeveloper.org have pointed out that this is probably way too much ground to cover in one article. I agree. I’m looking at the most PHP-relevant components, consolidating and trimming in hopes of giving a solid overview. Comments welcome.

    http://www.phpdeveloper.org/index/3008

  2. Matt
    Posted April 20, 2005 at 12:37 pm | Permalink

    Yes, that sounds very interesting. Keep writing!

  3. Posted April 28, 2005 at 2:10 pm | Permalink

    How is the article coming along?

  4. Posted June 22, 2005 at 11:22 am | Permalink

    Issue 04.05 of PHP Magazine just hit newsstands all over Europe with my article about Farming PHP on the cover. My preview of the subject generated considerable interest from the community, making me realize what an important and far-reaching topic this r

  5. Robert
    Posted June 22, 2005 at 11:47 am | Permalink

    Issue 04.05 was just released with this article on the cover story!

    http://www.robertpeake.com/archives/86-Farming-PHP.html

Post a Comment

Your email is never shared. Required fields are marked *

*
*


Popular Tags

Academia Academy Of American Poets Accessible Poetry Adam Zagajewski Aliso Street Bear Andrew Philip Anna Akhmatova Arroyo Arts Collective Artists' Union Gallery Art Therapy Avant Garde B.H. Fairchild Bart's Books Bell Arts Factory Blogging Code Poet Conservation Czesław Miłosz David Allen Day Fire Denise Levertov Dorianne Laux Facebook First Books Friday Lubina Galway Kinnell George Wallace Gerard Manley Hopkins Gregory Orr GTD Gwendolyn Alley Heart And Mind Henri Cole Hope Jackson Wheeler James Valentine Peake Japan Jawanza Dumisani John Ashbery John Keats Joseph Millar Kathleen Tyler Li-Young Lee London Los Angeles Louise Glück Low-Residency MFA Mark Doty Marriage Marvin Bell Mary Oliver Merlin Mann MFA Residency 1 MFA Residency 2 MFA Residency 3 MFA Residency 4 MFA Residency 5 Michael Wells Michelle Bitting Miranda Nature Negative Capability Ojai Ojai Poetry Festival Pacific University Passings Performance Poetry Phil Taggart Poetry In The Windows Polish Poetry Post-Postmodernism Ralph Waldo Emerson Rattle Read Write Poem Robert Hass Robert Pinsky Sandford Lyne Sandra Alcosser Sarah Maclay Seamus Heaney Social Networking Sonnets Spirituality Stanley Kunitz Stephen Booth Stephen Dunn Suzanne Lummis The Economy The Phoenix The World Stage Tree Bernstein Twitter Umberto Saba Wallace Stevens Why Poetry Zbigniew Herbert ZCE Zen Zoey's Cafe