Proxy Caching Example, Different Caching Location in ASP.Net

Caching in a web application can be done either on client side (Client Browser), In between Client and Server (Proxy & Reverse Proxy Caching ) and on Server Side( Data Caching/ Page Output Caching) . So we can classified caching location in 4 way
  1. Client Caching
  2. Proxy Caching
  3. Reverse Proxy Caching
  4. Web Server Caching
Client Caching : In Client Caching Client Browser perform caching by storing cached data on local disk as temporary file or browser internal memory. This provide quick access of some information by client which reduce the network load and server load also. This information can't be shared by other clients so it is client specific.

Advantages
  • Data that are cached on local client can be easily accessed
  • Reduce Network Traffic
Disadvantages
  • Cached data are totally browser dependent, so it is not shareable
Proxy Caching : Main disadvantage of Client caching was data that are store on client browser are client specific. Proxy Caching technique used a dedicated server that store caching information in between client and web server in a shared location, that all client can used same shared data. The proxy server (e.g. Microsoft Proxy Server ) fulfills all the requests for the Web page without sending out the request to the actual Web server over the Internet, resulting in faster access.
Proxy caches are often located near network gateways to reduce the bandwidth . Some times Multiple Proxy Cache server is used for larger number of client. This is called Cache Array.

Advantages
  • Data that are cached on proxy server can a accessed easily
  • Reduce Network Traffic
Disadvantages
  • It a Deployment and Infrastructure overhead to maintain a Proxy Cache Server
Reverse Proxy Caching : Some Proxy Cache server can placed in front of web server to reduce the number of requests that they receive. This allows the proxy server to respond to the frequently received requests and pass the other requests to the Web server. This is called a reverse proxy.

Advantages
  • Data that are cached on reverse proxy server can a accessed easily
  • Web server reduce the number of request
Disadvantages
  • As the Server configured in front of Web sever some what it increases the network traffic.
Web Server Caching : In Web server caching cached data stored inside the web server, Data caching and page caching used web sever caching mechanism.

Advantages
  • Improve the performance of sites by decreasing the round trip of data retrieving from database or some other server
Disadvantages
  • Increase the Network Load
Tags: , , , , , , , , , , , , , , ,
Hot on Web:


About author