用于补偿 SOA 中缺乏继承的模式 [英] Patterns for Compensating Lack of Inheritance in SOA

查看:44
本文介绍了用于补偿 SOA 中缺乏继承的模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现继承和基类的概念是 OOP 的最强点.但是在 SOA 中不鼓励这样做.那么,在 SOA 中克服这种限制的流行模式是什么?您能否提供解释(在 WCF 中进行代码演示)这些模式的教程?

I find Inheritance and concept of base class as the strongest point of OOP. But this is not encouraged in SOA. So, what are the popular patterns for overcoming this limitation in SOA? Could you please provide tutorials that explains (with code demonstration in WCF) these patterns?

注意:这不是关于 SOA 中可用模式的一般问题.但它更具体地针对上述问题.

Note: This is NOT a general question about patterns available in SOA. But it is more specific to the above mentioned problem.

注意:我将 WCF 用于 SOA.

Note: I am using WCF for SOA.

阅读:

  1. 做不要在设计中使用抽象基类;但在建模/分析中"

SOA 架构究竟是怎样的应该实施吗?

如何处理Java多态在面向服务的架构中

如何快速了解 SOA?

什么是面向服务的架构?

DDD 和 SOA 真的可以很好地协同工作吗?

SOA 和 WCF 设计问题:这是一个不寻常的系统设计吗?

设计 WCF 数据协定和操作

C# 4.0 中的扩展对象

Expando Objects in C# 4.0

推荐答案

无论您是否认为 SOA 是通过 SOAP、REST 或消息传递来实现的,服务都是以文档为中心的.服务不是面向对象的.

No matter whether or not you think about SOA as implemented by SOAP, REST or messaging, services are document-centric. Services are not object-oriented.

虽然多态性在 OOD 中是一种强大的设计工具,但它不适用于 SOA,因为 SOA 建模不涉及类.

While polymorphism is a strong design tool in OOD, it's not applicable in SOA because SOA modeling doesn't involve classes.

这篇关于用于补偿 SOA 中缺乏继承的模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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