asp.net mvc 3 - MemoryCache object and load balancing -


i'm writing web application using asp .net mvc 3. want use memorycache object i'm worried causing issues load balanced web servers. when google looks problem solved on server ie using appfabric. if company has load balanced servers on them make sure have appfabric or similar running? or there can or should developer this?

first of all, asp.net should @ asp.net cache instead of memorycache. memorycache generic caching api introduced in .net 4.0 provide equivalent of asp.net cache in non-web applications.

you're correct appfabric resolves issue of multiple servers having own instances of cached data, in provides single logical cache accessible web servers. before leap on solution problem, there's couple of things consider:

  • it not ship part of windows server - is, say, on install on servers if want use it. when appfabric released, there suggestion ship part of next release of windows server, haven't seen windows server 2012 confirms case.

  • you need servers it, or @ least you're advised have them. microsoft's recommendation appfabric run on dedicated servers. means whilst appfabric free download, may incurring additional windows server licence costs. speaking of which...

  • you might need enterprise edition licences. if want use high availability features of appfabric, can servers running enterprise edition, more expensive licence standard edition.

  • you might not need after all. of depend on application , why want use shared caching layer. if concern caches on multiple servers out of sync database (or indeed each other), judicious use of sqlcachedependency objects might past issue.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -