English 中文(简体)
• 与外部系统连接,设计系统
原标题:Connecting with external systems | How to design the system

我对我如何配置与外部系统相联的系统存在疑问。

Here are the various parts, which I was thinking of putting together:

<><>>>>

  • I have 3 external services which brings in 3 different types of messages to the system.
  • I have a WCF service which listens to all these external services, which converts the messages into a common format.
  • I have a WPF UI which is connected with the WCF service using duplex tcp binding, and messages gets updated on the UI.
  • The UI also sends any outgoing messages to the service which in turn sends it to the external services.

我的问题是,你是否认为这是设计解决办法的一个可衡量、可维持、成本有效的方法? 如果我把这个问题放在内联网的设想中,你是否看到任何具体问题?

我提出的另一项考虑是:

<><>>>

  • Have 3 windows services which connects to the external services.
  • Each service churns out the messages into a canonical format and puts it on a message bus on a specific topic.
  • Have a WCF service which listens to the topics on the message bus for the new messages.
  • Use a duplex binding to update the client with any incoming messages.
  • Client sends the outgoing messages to the WCF service, which in turn drops it on to a specific topic listened by the windows services, which sends them to the external systems.

我在这里感到困惑不解的是,请你帮助我了解什么是更好的办法,如果你能够,请让我指出讨论这些情景的任何联系?

Volume of data exchange is 400 messages every 5 minutes, divided across the external systems.

I m sure lot of you might have faced this situation, so if you have a better approach to this please let me know.

Thanks, -Mike

最佳回答

我当然认为,在处理3种类似但不同的信息格式时,你的选择2是正确的。 采用了两种融合模式:adapter

然而,我认为,将同样的“航道”服务作为向相反方向传递信息的渠道是错误的。 最好把答复渠道从请求处理管道中抽出。

您可采用一种分配模式(或router),处理回复信息回请求来源的路径。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签