Caching :- To improve the performance of any application there are many ways to improve it. Caching is one of the way by which we can improve the application performance and optimize the data retrieval from various sources. In Caching we store frequent used data into a local storage called the cache for some interval and when required we serve data from the cache so it will reduce the database operations and provides the quick data to application. It will minimize the database load and improve the response.
In-Memory Caching :- Data is stored into the memory of web server and
it is relatively fast and simple to implement but it has some limitations of memory in server.
It is suitable for using in the lightwight application and chaching is required for single
instance of application.
In the above image above I have explained the In-Memory Caching technique which has below main points to remember :-
Distributed Caching :- As name suggests one common cache shared accross multiple servers.
Sharing Cache to multiple servers will reduce the memory requirements in single hosted server
and it provides the fast access of cached data and it is widely used in Microservices Architectures
where application deployed on more than one server. Now a days SQL Server and Redis is the
popular chioces for Distributed Caching in ASP.Net Core.
In the above image above I have explained the In-Memory Caching technique which has below main points to remember :-
About the Author
Sudheer Singh Chouhan is a Software Engineer having Expertise in Development Design and Architecting the
applications , Project Management , Designing Large Scale Databases in SQL Server since last 17 Years.
Skill Sets :- Microsoft .NET technologies like ASP.Net Core, Web API, LINQ, Web Forms, WinForms, SQL Server,
EntityFramework, Design Patterns, Solid Principles, Microservices, AWS Cloud.