单一窗口服务提供对缓存数据的访问?

发布于 2024-08-30 04:01:28 字数 242 浏览 14 评论 0原文

我需要一个解决方案,其中有一个 Windows 服务,为各种使用者提供对缓存数据的访问:MVC Web 应用程序、经典 ASP 页面中使用的 .Net 程序集(COM 互操作)、其他 Windows 服务、Windows 窗体应用程序。因此,数据必须可以从各个进程访问。缓存的数据是只读的。目前,所有进程都位于同一台机器上。环境是.net Framework 3.5和c#。

我的问题是,多个应用程序域/进程如何从单个 Windows 服务检索缓存数据?

I need a solution where I have a single windows service providing access to cached data to various consumers: To an MVC web application, a .Net Assembly (COM interop) used within an classic ASP page, other windows services, a windows forms application. So the data must be accessible from various processes. The data being cached is read-only. For now, all processes are located on the same machine. The environment is .net framework 3.5 and c#.

My question is, how can multiple appdomains/processes retrieve cached data from a single windows service?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

柒七 2024-09-06 04:01:28

我会考虑在 Windows 服务上托管 WCF 端点。这样几乎任何东西都应该能够与之通信。

您可能想要查看的另一件事是 Windows Server AppFabric 缓存。如果您发现需要横向扩展,它可以轻松地允许您的服务使用多个服务器。但是,我认为只能通过托管代码 (.NET) 访问。

I would look into hosting a WCF endpoint on the windows service. That way pretty much anything should be able to communicate with it.

An other thing you may want to have a look at is Windows Server AppFabric Cache. It would easily allow your service to use multiple servers if you find the need to scale out. However, that, I think, is only accessible via managed code (.NET).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文