This chapter covers
There are two things that we always want to do in web applications:
We can’t always have both at the same time, so we find a compromise. Caching is the name of that compromise. Caching lets us serve data that is fresh enough, with the benefit that we can serve it a lot faster. It’s common sense, and sometimes this isn’t much of a compromise to make as figure 8.1 illustrates—in particular, when your data changes infrequently.
It’s faster to serve ...