Using Redis as a Data Caching Server
Everyone knows how important caching is in computing. We are surrounded by caching managers here, there and everywhere. You've got your CPU caching in the form of L1 and L2 cache which stores the next bit of data the CPU needs. GPUs have a cache. All hard drives come equipped with an on-board cache. Database servers heavily cache your most used queries and query plans, web servers cache the most used data and web clients (browsers) cache client side data. Basically, caching is everywhere. Why am I mentioning this? Well, recently I have been redesigning a framework that plans to make use of cached data to save trips to the database and Redis looks very enticing. But what's the cost/impact of not using a cache? Well, I found this great link "Latency Numbers Every Programmer Should Know" , which orders the latency numbers of accessing the "CPU cache" all the way up to connecting to a computer over the open internet. The numbers shouldn't s