In this article by Sai Srinivas Sriparasa, author of the book Building a Web Application with PHP and MariaDB: A Reference Guide, we'll learn how caching can be defined as the process of making popular data highly available by temporarily storing the data in memory that allows responding to a request faster by retrieving data from the memory rather than going onto the disk. There are three types of caching, as follows:
- Caching in the database
- Caching in the application
- Content caching
To build a blog application, we need a database that will store the published articles. In most cases, the choice of the database depends on the current project. There are factors such as performance and scalability and we should keep them in mind. In order to have a better look at the possible solutions, we will have a look at the two of the most popular databases, MongoDB and MySQL, in this article by Krasimir Tsonev, the author of Node.js Blueprints. The first one is a NoSQL type of database. According to the Wikipedia entry (http://en.wikipedia.org/wiki/NoSQL) on NoSQL databases:
Read Selecting and initializing the database in full
"A NoSQL or Not Only SQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases."
This article by Rob Friesel, author of the PhantomJS Cookbook, demonstrates how to set up an automated performance analysis task on a continuous integration server (for example, Jenkins CI) using PhantomJS and the YSlow library.Read Automating performance analysis with YSlow and PhantomJS in full