我们应该为该分布式应用程序使用WCF吗? [英] Should we use WCF for this distributed application?

查看:73
本文介绍了我们应该为该分布式应用程序使用WCF吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想问一下在即将进行的项目中使用WCF的优缺点.

该项目是一个分布式应用程序,可以通过PDA(Windows Mobile)和Web进行访问.我们已经决定使用.NET-C#和ASP.NET.该应用程序还正在与外部系统(SAP)通信.

考虑到这一点,我们正在研究要使用的不同实现.其中之一是使用WCF来实现SOA.由于可以通过两种不同的方式(PDA和Web)访问该应用程序,因此我们认为最好使用WCF,因为我们可以为两端创建一个服务.

由于这是我们第一次使用WCF,因此我想问一下有此经验的开发人员的意见.

在开发,维护,扩展等方面,利用WCF可以获得什么好处?

可能的陷阱和局限性是什么?我们已经怀疑PDA组件会遇到一些问题.

任何建议或知识/经验的分享都将受到欢迎.谢谢!

Hi All,

I''d like to ask the advantages and disadvantages of using WCF for an upcoming project.

The project is a distributed application can be accessed via a PDA (Windows Mobile) and on the Web. We''ve already decided to use .NET - C# and ASP.NET. The application is also communicating with an external system (SAP).

With this in mind, we are looking into different implementations to use. One of these is using WCF to implement SOA. Since the application is being accessed through 2 different means (PDA and web), we''re thinking its better to use WCF since we can create one service for both ends.

Since this is the first time we will be using WCF, I''d like to ask the opinions of those developers who had experience with this.

What are the advantages we can gain by utilizing WCF, in terms of say development, maintenance, extensions?

What could be the possible pitfalls and limitations ? We already suspect we''ll encounter some problems with the PDA component.

Any advice or sharing of knowledge/experience would be welcome. Thank you!

推荐答案

如果真的很重要,可能取决于范围.

我怀疑您可以在两端使用WCF.但是,您也只能在服务器端使用它.然后编写PDA应用程序的代码,以将其作为常规Web应用程序进行访问.

这样做的一个好处是,它证明了远程设备的接口,因此您可以选择使用不支持.Net的其他远程设备.

除此之外,只要对WCF期望不高,我就不会发现WCF有任何重大问题.外来协议基本上是hack,错误报告很简单.

通常,如果有人在进行大型基础部署(如果是这种情况),则不建议采用新技术,但如果对WCF谨慎(实际上是配置选项的文档并基于企业),则可以即使流量很大也可以使用.

如果部署的规模很小,那么至少尝试一下WCF似乎是个不错的选择.只需少量部署,就很难将其弄乱(使用常规协议.)
If it matters at all it probably depends on the scope.

I suspect you can use WCF at both ends. However you can also use it only at the server end. Then code the PDA app to access it as a regular web app.

One advantage to that is that it proves the interface for remote devices so you have the option of using a different remote device that doesn''t support .Net.

Other than that I haven''t found any significant problems with WCF as long at one doesn''t expect too much from it. The exotic protocols are basically hacks and error reporting is simplistic.

Normally if one was doing a large base rollout (if that is your case) then jumping on a new technology is not advisable but if one is careful with WCF (actually the documentation for the configuration options and base it on the enterprise) then it can be pretty usable even for significant traffic.

If it is a small rollout then it would seem like a good place to at least try out WCF. On a small rollout it would be pretty hard to mess it up (with the normal protocols.)


检查此博客
http://forums.asp.net/t/1480028.aspx/1 [ ^ ]
--NDK
check this blog
http://forums.asp.net/t/1480028.aspx/1[^]
--NDK


这篇关于我们应该为该分布式应用程序使用WCF吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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