How to Sync a C# Application in-memory object
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.
精彩评论