[Book Review] Magento Site Performance Optimization


I have just already read another book from Packt Publishing entitled “Magento Site Performance Optimization”. This book addresses us to optimize Magento default installation. There are several aspects to optimize: hardware, web server application, MySQL, and caching. Mathieu Nayrolles, the author, gives a brief description for all of these factors so that our Magento website will be ready to server heavy requests.

This is a concise and straight-to-the-point book, the book style that I love most :). There are only four chapters for each part to be optimized. First, we have to deal with the right hardware. Using Apache Benchmark (ab), we will be clearly given step by step ways to tune CPU, RAM, and disk space needed. Furthermore, choosing the best hosting company and content delivery network (CDN) provider would provide us guarantee to Magento site performance.

The second chapter, we will be driven to select the best web server including Apache web server, lighttpd, and Nginx. The three servers are installed and  optimized by tweaking its configuration, respectively. This tweaking technique is very helpful since  usually we only install the default package of web server application. This book depicts some modifications to configuration file so that it can handle many connections from client. Moreover, we have to check the optimized configuration by using Apache Benchmark. In the end of chapter, the author concludes that  Nginx is the best choice :)

Magento website only supports MySQL for database engine. This book shows us how to tune, scale, and replicate MySQL in the third chapter. There are some variables need to modified in my.cnf configuration file. Mathieu also introduces MySQL performance tuning tools such as mysqltuner.pl script and Tuning Primer. To improve response time speed, the replication technique is deployed. There is another server for MySQL read to accompany server for write operation. However, the both server have the same data and always get synchronized. It will reduce server load and, of course, increasing Magento site performance.

The last technique proposed by this book is content caching. Magento site content is not only served from disk drive, but also from RAM using caching application. Instead of reading from disk, the content will be taken from RAM. It will greatly improve the performance because RAM has much higher read/write speed than disk drive. We can utilize some caching application such as Varnish Cache, Alternative PHP cache, memcached, and Lesti:fpc.

Don’t postpone to buy this great book from Packt Publishing! They often offer a great deal :) See ya!

July 21, 2014

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>