开发者

WCF Service vs. Referenced Component?

We have a multi services application. We have moved a method that involves a DB access to a separate component that is exposed by a WCF endpoint.

We have more than one service that nee开发者_运维知识库d to use this method.

The dilemma is what to use:

  1. A WCF call to the method.

  2. Call directly to the method, resolved by our DI engine.

The system performance is a critical issue.

So what do you think is better?

  1. Using WCF to make the cal

  2. Reference the required service and call it in-process using the DI engine.

Thanks Or.


If performance is critical, referencing the service component and calling directly the DB without going through all the WCF layers and serialization processes will be faster but less robust. If you decide to change the implementation you will need to recompile the client application as well. My advice would be to measure the performance of the WCF service call and if you are happy with the results leave it that way.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜