ASP.NET Caching Solution for Load Balancing

We are developing an ASP.NET web application in a load balancing system. Now we are faced with several problems with the current caching system:

  • It does not sync between web servers. There are some solutions, such as SQL cache dependency or split caching service implementation:
    • SQL Caching Dependency: It is stable, but rather slow for our application.
    • Shared caching service: it is faster, but not stable, because we will have a bottle neck problem. Do you have a solution to this problem?
  • When we upgrade the database system to clustered servers, what is the stable solution for the Cache system?

Thanks.

+6
source share
2 answers

We use memcached and have no problems with it. Very reliable and fairly easy to implement. What do you mean that you have a bottle neck problem with a third-party caching solution? We run it for about a year or so, and we had a lot of experience working with it.

Edit: Our environment is load balanced on 3 web servers and 2 SQL servers.

Another reason I would prefer a third party is that you can cache anything in it, objects, data, etc.

Settings: http://syntaxhelp.com/ASP.NET/Cache/memcache Links: http://code.google.com/p/memcached/wiki/NewStart

+2
source

Saw NCache. It is free (Express version. For Professional and Enterprise developers only) and asp.net compatible.

NCache is an extremely fast and scalable in-memory distributed cache that caches application data. NCache also stores ASP.NET session sessions in web farms. The grill works with a Loadbalancer and is easy to configure.

+3
source

Source: https://habr.com/ru/post/910981/


All Articles