开发者

How to Sync a C# Application in-memory object

开发者 https://www.devze.com 2022-12-30 19:54 出处:网络
I have a WCF service to be load balanced with NLB (Windows Network Load Balancer). So I need a Dictionaryobject to be synced across all the instances of the WCF s开发者_JAVA百科ervice.

I have a WCF service to be load balanced with NLB (Windows Network Load Balancer). So I need a Dictionary object to be synced across all the instances of the WCF s开发者_JAVA百科ervice.

What is the best possible way to do this?


WCF Services are by nature, stateless. You can turn on classic mode and use session, but session will have to be stored in the database. You can share in-memory objects across servers.

0

精彩评论

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

关注公众号