Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 633831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:13:43+00:00 2026-05-13T20:13:43+00:00

How do you rewrite a website to be scalable?(traffic) I work with mainly PHP

  • 0

How do you rewrite a website to be scalable?(traffic) I work with mainly PHP and some Ruby on rails and i know its a generic question. I’m just looking to increase my knowledge so any advice would be useful.

Thank you in advance 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:13:44+00:00Added an answer on May 13, 2026 at 8:13 pm

    This is a quite wide question, and it’s going to be pretty difficult to give you a definite answer — but a couple of ideas :

    • First of all, do not pre-optimize !
      • Make sure your application works ; that’s the most important thing.
      • And, only when it becomes necessary, start optimizing.
    • PHP by itself generally scales well :
      • Add a couple more Apache+PHP servers, load-balance your users
      • And this tends to work really easily
    • Filesystem doesn’t scale that well / that easily :
      • it’s not shared accross servers
      • sharing filesystem (with NFS, for instance) can sometimes cause problems.
    • The database is generally the hardest part, when it comes to scaling :
      • Having more than one “write” server is hard
      • Having more than a couple of “read” servers, generally using replication, can become a pain for maintenance
      • You’ll have to think about sharding, one day or another, if replication is not enough.
    • Use lots of caching : the more cache you can use, the less queries you’ll make to the DB, the better it’ll be
      • memcached is great, and scales well : just add a couple of servers, and you get a couple of more GB or memory in your caching-cluster
    • Using a reverse-proxy, so your Apache+PHP servers have less work to do, helps too.

    And a quick couple of links that might give you some ideas :

    • Database Sharding at Netlog, with MySQL and PHP
    • Scaling WikiPedia with LAMP: 7 billion page views per month
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website that employs a generic mod_rewrite rule to push all requests
I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting: http://www.example.com/schedule.aspx?state=ca
I have this rewrite rule RewriteEngine On RewriteBase /location/ RewriteRule ^(.+)/?$ index.php?franchise=$1 Which is
I rewrite URLs to include the title of user generated travelblogs. I do this
I rewrite my old code in new style, like below: #old style open(FD,file); #new
How do I rewrite a URL in ASP.NET? I would like users to be
How do you rewrite this in Linq? SELECT Id, Name FROM TableA WHERE TableA.Id
I am trying to rewrite URLs using mod_rewrite. It is enabled in httpd.conf and
I am attempting to rewrite my ForestPad application utilizing WPF for the presentation layer.
If I use mod_rewrite to control all my 301 redirects, does this happen before

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.