使用 ASP MVC 作为 MS Orleans 的客户端

Using ASP MVC as Client for MS Orleans

我想将 MS Orleans 与 ASP MVC 客户端一起使用。我想在这个星座中使用 mvc 应用程序作为 Orleans Client Observer。 threadlifetime / apppool 回收等可能会出现问题吗? 奥尔良的documentation

The client part, usually a web front-end,...

...For example, an ASP.NET application running on a web server can be a client part of an Orleans application. The client part executes on top of the .NET thread pool, and is not subject to scheduling restrictions and guarantees of the Orleans Runtime.

但我不太确定如何解释这个。

这只是意味着您的 'client' 代码(从 Orleans 的角度来看客户端;在您的情况下,它实际上 运行ning 在网络服务器上)遵循您期望的正常规则在线程调度程序等方面的应用程序中。我不记得具体细节,因为自从我深入研究文档以来已经有一段时间了,但我相信它们保证某些事情,例如在顶部使用一些特殊调度程序的每个参与者的单线程执行线程池。

很可能您的 Web 应用程序本身不应该 运行 一个 Orleans 筒仓,但作为一个 Orleans 客户端,应该仅作为一个网关与一个单独的应用程序中的筒仓 运行 对话。这样应用程序池回收就不会影响筒仓的运行。

另请参阅:Developing a Client