契约优先的SOA与WCF [英] Contract-First SOA with WCF

查看:236
本文介绍了契约优先的SOA与WCF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好计算器大师!这个问题更多的是探头,发现人们正在做什么,在社区,在实际情况中,不是专门针对的问题。我寻觅pretty的广泛的关于这一点,虽然我已经找到了很多博客主张合同第一服务设计和一些评论的支持他们,我还没有找到关于实施契约优先使用WCF太大的实际资料,优点和在真实世界环境这样做的利弊,等我最近做了一些深入研究,SOA,主要通过托马斯Erl的书,和他主张的主要理念之一是契约优先的设计。

Hello StackOverflow gurus! This question is more of a probe to discover what people are doing in the community, in practical situations, than a specifically targeted question. I have searched pretty broadly about this, and while I have found a lot of bloggers advocating contract-first service design and some comments backing them up, I have yet to find much practical information about implementing contract-first with WCF, the pros and cons of doing so in a real-world environment, etc. I have recently done some extensive research into SOA, primarily through Thomas Erl's books, and one of the primary concepts he advocates is contract-first design.

我的问题,或者说问题,如下:

My question, or rather questions, are as follows:

  1. 如何接近契约优先服务设计与.NET和WCF?
  2. 是否有除了SvcUtil工具,可以生成客户端和服务的合同等工具? (凡是与VS整合将是理想的)
  3. 什么现实世界的利弊有你有契约优先设计和WCF?
  4. 遭遇
  5. 什么现实世界的利弊有你有契约优先设计和WCF?
  6. 遭遇

其中一个主要问题契约优先发展似乎是工具。 SvcUtil工具是我发现的唯一的事情,可以从合同生成服务code和它有一些pretty的差输出。它的单文件,充满了各种属性和code代文物,它基本上需要再生和替代任何时候,合同被更新。我想preFER一个更好的方法,preferably的东西,不需要再生替换。我很好手动创建服务端的合同,甚至,假设它是现实的真实世界的场景。

One of the major problems with contract-first development seems to be tooling. Svcutil is the only thing I have found that can generate service code from a contract, and it has some pretty poor output. Its single-file, chock full of attributes and code-generation artifacts, and it basically needs to be regenerated and replaced any time the contract is updated. I would prefer a better approach, preferably something that doesn't require regen-replace. I'm fine with manually creating the service-side contract even, assuming it is practical in a real-world scenario.

我AP preciate任何见解和建议!

I appreciate any insight and advice!

编辑:

谢谢大家对您的输入!虽然WCSF解决了我的眼前需求,了解 Protocol Buffers的和的服务工厂是我肯定会帮助我在今后两个有趣的工具。

Thanks everyone for your input! While WCSF solved my immediate needs, learning about Protocol Buffers and Service Factory are both intriguing tools that I am sure will help me in the future.

推荐答案

基督教学生联合会提供了一个契约优先工具VS积分。一探究竟。 (免费)

WSCF provides a contract-first tool with VS integration. Checkitout. (free)

截至7月6日,有一个二进制版本进行了安装程序。

As of July 6th, there's a binary release with a setup program.

这篇关于契约优先的SOA与WCF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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