WCF 何时创建端点

发布于 2024-09-07 07:53:25 字数 182 浏览 0 评论 0原文

我有一项 WCF 服务,它(当前)定义了一个到 IMyService 的端点 它实现了大约 20 个 IDataTypeService,它具有对象的 DB 接口。

该服务的使用率相当高,我偶尔会遇到超时错误和其他高使用率错误。

我正在寻找有关是否为更活跃的数据对象的服务创建新端点以及这样做有什么好处(如果有)的信息。

I have a WCF service which has (at the current time) One endpoint defined, to a IMyService
which implements about 20 IDataTypeService which has the DB interfaces for the objects.

The service is pretty high usage and I am having occasional error re timeout and other high use errors.

I am looking for information as to whether to create new end points for the service for the more active data objects, and what benefits (if any) in doing so.

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

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

发布评论

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

评论(1

橘虞初梦 2024-09-14 07:53:25

创建新的端点不一定会提高性能。与任何性能问题一样,第一步是找出问题所在!

第二步是解决问题。

在这种情况下,解决方案可能是获取一台新计算机来运行该服务的第二个副本,然后使用负载平衡。但同一台机器上的其他端点无济于事。

Creating new endpoints won't help performance necessarily. Like any performance problem, the first step is to find out what the problem is!

The second step is to solve the problem.

In this case, the solution might be getting a new computer to run a second copy of the service on, and then using load balancing. But additional endpoints on the same machine won't help.

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