服务呼叫外部系统的最佳方法 [英] Best Approach for service calls to external system

查看:62
本文介绍了服务呼叫外部系统的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找方案最佳实践的方向;

I'm looking for direction on best practice for a scenario;

我需要BizTalk将消息路由到Dynamics CRM,这些消息旨在对CRM实体执行CRUD操作。

I need BizTalk to route messages to Dynamics CRM, these messages are designed to perform CRUD operations on CRM entities.

现在,CRM已将一组标准Web服务作为其API的一部分 - 这些将被用作  as CRUD操作的一组基本方法 - 然而,这些方法需要扩展到为我的需求提供额外的业务逻辑 - 我的问题是这个额外逻辑的
最佳位置。

Now, CRM has a set of standard web services as part of its API - these will be used as a base set of methods for CRUD ops - these will however need to be extended to inlucde extra business logic for my needs - my question is whats the best place for this extra logic.


  • 我的第一个想法是包括一个位于BizTalk和CRM之间的业务层,提供一个层暴露Web服务方法,这些方法连接到基本CRM Web服务,准备接收来自BizTalk或;
  • 在BizTalk中的业务流程中包含业务逻辑,并省去额外的biz逻辑层。

最佳做法是什么似乎可行?

What is the best practice approach for this as both seem feasible ?

如果是后者,那么这是一个仅仅从BizTalk业务流程中调用自定义.net组件的问题(这些组件会直接与核心CRM服务交互)还是有一个首选方法?

If the latter of these, would it be a question of merely calling custom .net components from BizTalk orchestration (these would interact directly with core CRM services) or is there a preferred method ?

谢谢,

Intos

推荐答案

对于架构类型的问题,答案总是"取决于"。您的情况看起来像是一个经典的SOA场景,其中

For architecture kind of questions the answer is always going to be "it depends". You situation looks like a classic SOA scenario where

1。您有一套Integration Services(提供Dynamics CRM)

1. You got set of Integration Services (Dynamics CRM supplied)

2。您需要在Integration Service之上提供业务服务(以抽象业务功能),并且

2. You need a Business Services on top of Integration Service (to abstract the business functionality), and

3。可能是整合商业服务的业务流程。

3. May be a Business Process to Integrate Business Services.

您在这里讨论的是中间层"商业服务",该层通常会使用 "服务组成"图案。 BizTalk Orchestrations非常适合这种服务组合逻辑。说过
并没有阻止你使用像WCF这样的其他技术来进行组合。

The one you are discussing here is the middle layer "Business Services",  this layer will normally use a  "Services Composition" pattern. BizTalk Orchestrations can be a perfect fit for such service composition logic. Having said that there is nothing stopping you to do the composition using other technologies like WCF.

这里的关键是你需要考虑其他非功能性需求,比如表现并得出结论。

The key thing here is you need to take into considerations other non-functional requirements like performance and derive a conclusion.


这篇关于服务呼叫外部系统的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆