|
Posted by CJ Llewellyn on 05/27/05 00:53
On Thu, 26 May 2005 00:34:50 +0000, mickeyg wrote:
> What is the largest site that use PHP?
Who knows?
> By large site I mean a havy trafic site?
Renault's uk site seems to cope ok running php
http://toolbar.netcraft.com/site_report?url=http://www.uk.renault.co.uk
> How do you scale up a php site when you have a lot of traffic?
Find out where the bottlenecks are and then address them.
Anything that doesn't have to be dynamic, convert to static html.
Avoid doing on the fly graphics generation if possible.
Ensure programming libraries are cleanly coded and only load the code that
is really needed to produce a page.
Put graphic/flash etc files on different servers.
Buy a faster server with dual processors more memory, faster disks.
Split the application and database onto different servers.
Ensure database design is efficient, follow third form normalisation
rules.
Learn to use stored procedures and views instead of simple SQL statements.
Ensure tables are correctly indexed.
Ensure quiries only return nessecary rows.
Minimise the number of SQL queries used per page.
Use a website testing tool to analyse how your site reacts to varying
levels of requests.
Avoid using network functions such as DNS lookups, RSS readers, FTP etc.
If you do need to access remote sites have a management program that
operates seperately from the main site and cache the results.
Navigation:
[Reply to this message]
|