0

Any example, which elaborate managing asp.net mvc 3 cache in web farm (application hosted on multiple servers) using windows server 2008 r2 DFS?

I will appreciate your response.

aamir sajjad
  • 3,019
  • 1
  • 27
  • 26

2 Answers2

2

For caching in web farm, you can use Windows Server AppFabric Caching.

The topic is significantly huge. If you have specific problem, we can help you!

Win
  • 61,100
  • 13
  • 102
  • 181
1

You mean this stuff? http://msdn.microsoft.com/en-us/library/xsbfdd8c%28v=vs.100%29.aspx

It shouldn't be any different then if you're using a non server farm or regular file system.

Are you having a specific problem?

Andrew Walters
  • 4,763
  • 6
  • 35
  • 49
  • Hi Andrew, let me reiterate the problem. i am using the asp.net cache however, the application is deployed on two or more servers. let say client send request One and it hit the getOrder on Server A and get cached. however when same client/user request the getOrder, it hits the Server B in this case. this is the problem to sync the cache on both node. I hope that i explained it. – aamir sajjad Sep 12 '12 at 17:25
  • 1
    Ahh I see. Generally I use the cache for throw-away-able data maybe something pulled from an expensive database query or webservice call. For information like you have, I would usually store the data in the database the sites user. Although, it's usually also possible to set the load balance or switch to retain affinity so that during a user's session they always are directed to the same server. – Andrew Walters Sep 12 '12 at 17:30