AppFabric SessionState 以 SQL Server 作为备份
如果您希望在高可用性模式下使用 AppFabric,那么您需要确保所有缓存服务器都运行 Server 2008 企业版。在我们的环境中,这对我们来说是不可能的。
我们目前使用一台机器作为我们网络场的状态服务器。显然,这给我们带来了单点故障的可能性。
在调查 AppFabric 时,我发现它能够处理会话状态。无论如何,我们正在考虑在我们的缓存层中引入它。
不以 HA 模式运行它的问题是,如果一个节点出现故障,您将丢失该机器上托管的会话。
我想知道是否有人实现了一个自定义状态提供程序,它支持 AppFabric 并将状态异步备份到 SQL Server,以便在服务器因任何原因变暗时可以重建状态。
我还没有在我的想法中投入任何开发时间,但我想我会将这个想法交给一些聪明的开发人员,看看它是否已经被尝试过、考虑过或者我的想法中是否存在任何明显的漏洞。
If you wish to use AppFabric in high availability mode then you need to ensure that all of your cache servers are running Enterprise edition of Server 2008. This isn't possible for us in our environment.
We currently use a single machine acting as a state server for our web farm. Obviously this leaves us open with a single point of failure.
On investigating AppFabric I found that it was able to handle session state. We are looking at introducing it anyway in our caching layer.
The problem with not running it in HA mode is that if a node goes down you lose the sessions hosted on that box.
I wondered if anyone had implemented a custom state provider which supported AppFabric and asynchronously backed the state off to a SQL Server so that in the event of a server going dark for whatever reason the state could be rebuilt.
I have put no development time into in my idea yet but thought I would float the idea past some clever devs to see if it has been attempted,considered or there are any glaring holes in my idea.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在这里找到http://netpl.blogspot.fr/2007/06/wrapped- inprocsessionstatestore.html,一个具有通用包装器的解决方案,但它似乎不太健壮。
也许可以根据特定事件或变量在提供者之间进行切换。
i found here http://netpl.blogspot.fr/2007/06/wrapped-inprocsessionstatestore.html, a solution for having a generic wrapper, but it does not seems quite robust.
Maybe it is possible to switch between providers based upon a particular event or variable.