Trucos para mejorar la velocidad, estabilidad y escalabilidad de un site

A través de la web de High Scalabilty llego a un articulo en Software Projects sobre mejorar el rendimiento en websites. La conclusion que anuncian es que puedes llegar a mejorar hasta 10 veces la velocidad de tu site. La verdad es que cualquiera que haya montado una web a media/gran escala ya habrá considerado algunas de las mejoras que propone (si no las tuvieras, tendrías un site lento y caído la mitad del tiempo). Así que creo que lo de 10 veces es cuanto menos exagerado, pero de todas formas sigue siendo un articulo muy interesante ya que aporta mejoras de velocidad, escalabilidad y estabilidad. Además para los que ya estamos en este mundo, nos demuestra que vamos por buen camino (ya que como mínimo la mitad de la lista ya esta aplicado en Emagister) y que siempre hay algo que aprender.

Aquí tenéis un paste de las mejoras propuestas:

  • Switch all database writes to offline processing
  • Minimize number of database read access to the bare minimum. No more than two queries per page.
  • Denormalize your database and Optimize MySQL tables
  • Implement MemCached and change your database-access layer to fetch information from the in-memory database first.
  • Store all sessions in memory.
  • If your system has high reads, keep MySQL tables as MyISAM. If your system has high writes, switch MySQL tables to InnoDB.
  • Limit server side processing to the minimum.
  • Precompile all php scripts using eAccelerator
  • If you’re using WordPress, implement WP-Cache
  • Reduce size of all images by using an image optimizer
  • Merge multiple css/js files into one, Minify your .js scripts
  • Avoid hardlinking to images or scripts residing on other domains.
  • Put .css references at the top of your page, .js scripts at the bottom.
  • Install FireFox FireBug and YSlow. YSlow analyze your web pages on the fly, giving you a performance grade and recommending the changes you need to make.
  • Optimize httpd.conf to kill connections after 5 seconds of inactivity, turn gzip compression on.
  • Configure Apache to add Expire and ETag headers, allowing client web browsers to cache images, .css and .js files
  • Consider dumping Apache and replacing it with Lighttpd or Nginx.
  • El articulo completo: I can make your site run 10 times faster

    Post a Comment

    Your email is never published nor shared. Required fields are marked *