简体   繁体   English

我们可以在RESTful Web服务中使用SOA体系结构吗?

[英]Can we use SOA architecture in RESTful web services?

在实施REST Web服务时,是否可以使用SOA概念?

I don't quite understand the nature of your question but it is actually the other way around because SOA is more a design pattern that evolves around breaking down modules of a system into its own independent service, where service could (or could not) be a REST web service. 我不太了解您问题的性质,但实际上却是相反的,因为SOA更是一种设计模式,它围绕将系统的模块分解成自己的独立服务而发展,在该独立服务中,服务可能(或不可能)是REST Web服务。 If that is your question, then yes, an SOA system can use REST web services. 如果这是您的问题,那么是的,SOA系统可以使用REST Web服务。

Having a bunch of web services or rest services or COrba services does not make it SOA. 拥有一堆Web服务或休息服务或COrba服务并不能使其成为SOA。 SOA is a architectural design pattern that can be applied regardless of the technology used. SOA是一种架构设计模式,无论使用哪种技术,都可以应用。 Like Leo said it is a design pattern 就像狮子座所说的,这是一种设计模式

SOA is a software design paradigm. SOA是一种软件设计范例。 Its a high level concept for designing a software . 它是设计软件的高级概念。 A design paradigm or pattern is a collection of best practices that are used by many programmer over the years and make them as a standard. 设计范例或模式是最佳实践的集合,多年来,许多程序员一直在使用这些最佳实践并将其作为标准。 While REST is an architectural design pattern that is used to defined or orchestrate a web application. REST是一种体系结构设计模式,用于定义或编排Web应用程序。 Now for designing a SOA you can use any of underlying technology ie REST or SOAP. 现在,设计SOA时,您可以使用任何基础技术,例如REST或SOAP。 Both are different in nature and architecture wise. 两者在性质和架构上都不同。 Any IT organization uses SOA for exposing its business process as a business services that are well orchestrated as IT services over IT infrastructure. 任何IT组织都使用SOA将其业务流程作为一种业务服务公开,该业务服务经过精心组织与IT基础架构上的IT服务。 All these business services are loosely coupled , platform independent and interoperable. 所有这些业务服务都是松散耦合的,独立于平台且可互操作的。 So just to wrap up all SOA is a software design paradigm that is used to orchestrate the business services and these business services are loosely coupled and interoperable. 因此,仅包装所有SOA就是一种用于协调业务服务的软件设计范例,并且这些业务服务是松散耦合和可互操作的。 To implements SOA and your business services you can use any architectural pattern or technology like REST or SOAP. 为了实现SOA和您的业务服务,您可以使用任何架构模式或技术,例如REST或SOAP。

Question should be reversed: 问题应该反过来:

Can we use RESTful web services in SOA architecture 我们可以在SOA架构中使用RESTful Web服务吗

To which the answer is yes you can. 可以的答案是肯定的。

However, I assume you actually mean 但是,我认为你的意思是

Can we use RESTful web services in SOA architecture, as the primary means of communication between services. 我们能否在SOA架构中使用RESTful Web服务作为服务之间进行通信的主要方式。

Some (myself included) would argue that services consuming REST on other services for anything other than POST operations violate the second tenet of SOA which states that Services are autonomous . 某些人(包括我自己)会争辩说,除了POST操作以外,在其他服务上使用REST的服务都违反了SOA的第二个原则,即服务是自主的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM