负载均衡器的工作原理与asp.net会议上 [英] How load balancer works with asp.net session
问题描述
我有工作的一个项目,但它需要扩展到多台服务器。管理层正在考虑默认的IIS负载平衡( http://technet.microsoft.com/en -us /库/ jj129389.aspx )
I have a project that's working but it needs to be scaled up to multiple servers. Management is considering default IIS load balancing (http://technet.microsoft.com/en-us/library/jj129389.aspx)
这是否负载平衡器支持粘性会话(在文档中找不到它),有什么办法避免与在很大程度上依赖于会话来存储用户数据的项目问题的方法呢?
Does this load balancer support sticky session (couldn't find it in documentation), and what are the ways to avoid issues with a project that heavily relies on session to store user data?
推荐答案
您可以在数据库中存储你的sessionState。这样,就可以ACROS不同的发球中使用
You can store your sessionstate in your database. This way it can be used acros different serves
下面是关于这一主题的MSDN文章: http://support.microsoft.com/kb/317604
Here is an msdn article on this topic: http://support.microsoft.com/kb/317604
和另外一个我发现:
<一href=\"http://www.developer.com/db/article.php/3595766/Storing-Session-State-in-a-SQL-Server-Database.htm\" rel=\"nofollow\">http://www.developer.com/db/article.php/3595766/Storing-Session-State-in-a-SQL-Server-Database.htm
这篇关于负载均衡器的工作原理与asp.net会议上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!