开发者

Problem created by load balancing

I have an ASP.NET 3.0 application that works fine on one server. It uses application variables to check if a user has checked out a file and locks it for all other users. When I put the application on the load balanced servers, the application didnt work as expected since it multiple users got sent t开发者_StackOverflow社区o multiple servers and each user could check out the requred file.

The main point is that is there any way I can share the application variables in my application even though it is distributed on multiple servers. Ot is there a better way to get a global variable?


If you are splitting the web servers but have a common database server, then writing that information to the database is an option.

You can create a name/value table to store the variables that you commonly are storing in the application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜