Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 WCF 服务要使用 NLB(Windows 网络负载平衡器)进行负载平衡。所以我需要一个 Dictionary 对象在 WCF 服务的所有实例之间进行同步。
最好的方法是什么?
WCF 服务本质上是无状态的。您可以打开经典模式并使用会话,但会话必须存储在数据库中。您可以跨服务器共享内存中的对象。