- Optimize your static content. Compress images to get every last kilobyte out of them while retaining visual quality.
- Add “expires” headers to content to prevent browsers from continually downloading the same files as a user browses your Web site.
- Ensure that your Web server delivers content in a compressed state — for example, mod_deflate for Apache. Clearly this should not be applied to files such as images — which are already compressed — so make sure you set up rules correctly.
- Include these files only on the pages where they are required.
- Optimize your content management system. Reduce the number of database calls you need to make for each page request, for example. In Drupal, this can be as simple as disabling modules you do not need. Also, make any custom code more efficient if possible. A change of one-tenth of a second in an algorithm that is run thousands of times adds up.
- Support caching of data that is frequently accessed. Use Memcache or something similar. Many CMS packages support this, but be careful with dynamic data.
- Load-balance your Web server.
- Separate your read/write databases so that you can have a master/slave database setup, allowing your database infrastructure to be scalable.
- If applicable, split your database vertically or horizontally (or potentially a hybrid of these if this model suits your database structure) over several servers. This may not be suitable for everyone, however.
Tag Archives: server
Jason Mayes, senior Web development engineer at XMOS Ltd., offers his own top 10 list for dealing with site congestion and other potential server outage problems:
It was the first week in my office and got the opportunity to access our company server which is somewhere in USA.I was excited to use it because Centos installed in it.My assignment is to connect my pc with the server via ftp.I never connected ftp so it was a challenge to me.But i found it difficult to connect because i’m a newbie.I tried six precious hours but i failed to connect.After a long struggle i got a clue to connect via sftp.Finally i succeeded in transferring some files.It was a very good experience for me.The following are the steps to connect the server via sftp
SFTP stands for Secure File Transfer Protocol.It also called as SSH protocol.You can find a lot of information about in sftp in
open your terminal.use the command to connect it with the server
sudo sftp <username>@<IPaddress>
Enter the password whien it prompts.
To store the file in the server type the following command.
put [flags ] source-file destination-file
To quit the sftp
To know more about sftp commands visit http://linux.about.com/od/commands/l/blcmdl1_sftp.htm