What is caching?

 

Caching keeps frequently accessed objects, images and data closer to where you need them, speeding up access to websites you hit often. … And further the database server has various other caches such as the InnoDB buffer cache, to keep blocks of data in memory, reducing slower requests from disk.

 

Advantages of Caching

Webpages can be cached pre-fetched on the clients, the proxies, and the servers. There are many advantages of web caching, including an improved performance of the web.

  1. Caching reduces bandwidth consumption; therefore, it decreases network traffic and diminishes network congestion
  2. Caching reduces access latency for two reasons:
    a) Frequently accessed documents are fetched from a nearby proxy cache instead of remote data servers; therefore, the transmission delay is minimized.
    b) Caching can reduce the network traffic, so those documents that are not cached can also be retrieved comparatively faster than without caching due to less congestion along the path and with less work load on the server.
  3. Caching reduces the workload of the remote web server by spreading the data widely among the proxy caches over the WAN.
  4. In a scenario where the remote server is not available due to a crash or network partitioning, the client can obtain a cached copy at the proxy. Hence, the robustness of the Web service is enhanced.
Follow me
Latest posts by Stanley Chauke (see all)