Today, we are continuing our journey to know more about various types of Cache. In previous article we have seen (How Many Types of Cache do you know?) some examples to understand what exactly Cache stands for along with Client and Server side Cache structure.
Here, we will see some more example of use of the Cache to get familiar with technology or you can say principle frequently using caching, either at server as client (and sometimes both):
1) DNS Cache:
Before any web transfer such as when you visit a website, for an instance http://www.esds.co.in/, our server will perform a DNS query to translate ESDS.co.in to an IP address. This is a behavior that is consistent for each web page and every website. It is therefore logical that a cache is set up at this location. Indeed, it exists on all operating system and also on browsers DNS cache that have the function of cache handler <-> (ESDS.co.in <-> xx.xx.xx.xxx).
So when you visit a website again DNS cache allows not having to re-perform a DNS query and you can access web pages more quickly because cached information will be obtained more quickly than requesting a DNS server on the web.
2) Caching proxy servers:
Proxy server, which are intermediaries between clients and servers (either between the local network and the Internet or between two Internet sites) also often make caching to make access to information faster for clients. The advantage is that caching is now centralized in a single point and can then be used by multiple clients performing the same query.
3) Browser cache:
4) Dynamic Page Cache:
Web server side, a cache can also be set up to not having to regenerate pages that are normally dynamically generated as is the case with most websites today. Using PHP and similar languages allow modularity of websites, but also generate significant resource consumption, since the pages are generated for each request to be built and sent to the client.
Fortunately, caching avoids for the same requested page containing the same information to regenerate a page, but rather to make an already calculated cached page to customers. Some tools can be positioned directly on the web server and other more substantial and used for large trades, which are positioned for upstream flow or for web servers. Then they also act as reverse proxy, for example, the case of Varnish cache.
5) Database Query Cache:
Again in web server, they almost constantly use databases to schedule and sort their information. Each generation of page causes a content search in the database. Therefore, it is often useful to cache the responses from the database to make it faster page generation. This is for example what the DB Cache Reloaded plugin does in WordPress.
We have seen 6 types of Cache, their purpose and structure along with examples to understand them appropriately. So when the next time you see or hear this term you will think of a lot can happen over a simple looking word i.e. Cache.
- Why is Microsoft Turning Its Focus on Linux? - March 29, 2016
- Migrating Enterprise Data to the Cloud – A Checklist - November 30, 2015
- Why is your private cloud beginning to fail? - October 20, 2015