Misplaced Pages

Service-oriented architecture: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 18:08, 16 November 2006 editArnoldReinhold (talk | contribs)Autopatrolled, Administrators31,134 edits Literature: alphabetize by author← Previous edit Latest revision as of 21:43, 24 July 2024 edit undoTule-hog (talk | contribs)Extended confirmed users4,231 edits Principles: add {list
Line 1: Line 1:
{{short description|Architectural pattern in software design}}
{{unreferencedsect}}
{{Use mdy dates|date=April 2015}}
In ], '''service-oriented architecture''' ('''SOA''') is an architectural style that focuses on discrete services instead of a ].<ref name=":0">{{Cite web|title=SOA Source Book - What Is SOA?|url=https://collaboration.opengroup.org/projects/soa-book/pages.php?action=show&ggid=1314|access-date=2021-03-30|website=collaboration.opengroup.org}}</ref> SOA is a good choice for ].<ref>{{Cite book |title=Fundamentals of Software Architecture: An Engineering Approach |publisher=O'Reilly Media |year=2020 |isbn=978-1492043454}}</ref> By consequence, it is also applied in the field of ] where services are provided to the other components by ], through a ] over a network. A service is a discrete unit of functionality that can be accessed remotely and acted upon and updated independently, such as retrieving a credit card statement online. SOA is also intended to be independent of vendors, products and technologies.<ref>{{Cite web|url=https://msdn.microsoft.com/en-us/library/bb833022.aspx|title=Chapter 1: Service Oriented Architecture (SOA)|website=msdn.microsoft.com|access-date=2016-09-21|url-status=dead|archive-url=https://web.archive.org/web/20170707052149/https://msdn.microsoft.com/en-us/library/bb833022.aspx|archive-date=July 7, 2017|df=mdy-all}}</ref>


Service orientation is a way of thinking in terms of services and service-based development and the outcomes of services.<ref name=":0" />
In ], the term '''service-oriented architecture''' (SOA ) expresses a perspective of ] that defines the use of ] ] to support the requirements of the ]es and software users. In an SOA environment, resources on a ]{{ref|alternativeview}} are made available as independent services that can be accessed without knowledge of their underlying platform implementation<ref>Channabasavaiah, Holley and Tuggle, , ''] DeveloperWorks'', 16 Dec 2003</ref>


A service has four properties according to one of many definitions of SOA:<ref>{{cite web|url=https://publications.opengroup.org/standards/soa|title=Service-Oriented Architecture Standards - The Open Group|website=www.opengroup.org}}</ref>
A service-oriented architecture is not tied to a specific technology and may be implemented using a wide range of interoperability standards including ], ], ] or ].
# It logically represents a repeatable business activity with a specified outcome.
# It is self-contained.
# It is a ] for its consumers, meaning the consumer does not have to be aware of the service's inner workings.
# It may be composed of other services.<ref>{{Cite web |url=http://www.opengroup.org/soa/source-book/soa/soa.htm |title=What Is SOA? |website=www.opengroup.org |access-date=2016-09-21 |url-status=dead |archive-url=https://web.archive.org/web/20160819141303/http://opengroup.org/soa/source-book/soa/soa.htm |archive-date=August 19, 2016 |df=mdy-all }}</ref>


Different services can be used in conjunction as a ] to provide the functionality of a large ],<ref>{{Cite book|title=Cloud Computing: A Practical Approach|last=Velte|first=Anthony T.|publisher=McGraw Hill|year=2010|isbn=978-0-07-162694-1}}</ref> a principle SOA shares with ]. Service-oriented architecture integrates distributed, separately maintained and deployed software components. It is enabled by technologies and standards that facilitate components' communication and cooperation over a network, especially over an IP network.
In fact, SOA can be implemented without any of these very useful protocols, and could just as appropriately, for example, use a file system mechanism to communicate data conforming to a defined interface specification between processes conforming to the SOA concept. The key is independent services with defined interfaces which can be called to perform their tasks in a standard way, without the service having pre-knowledge of the calling application, and without the application having or needing knowledge of how the service actually performs its tasks.


SOA is related to the idea of an API (]), an interface or communication protocol between different parts of a computer program intended to simplify the implementation and maintenance of software. An API can be thought of as the service, and the SOA the architecture that allows the service to operate.
SOA can also be regarded as a style of information systems architecture that enables the creation of applications that are built by combining ] and ] services{{fact}}. These services inter-operate based on a formal definition (or contract, e.g., ]) which is independent of the underlying platform and programming language. The interface definition ] of the language-specific service. SOA-compliant systems can therefore be independent of development technologies and platforms (such as ], ] etc). For example, services written in ] running on .Net platforms and services written in Java running on ] platforms can both be consumed by a common composite application. In addition, applications running on either platform can consume services running on the other as Web services, which facilitates reuse.


Note that Service-Oriented Architecture must not be confused with Service Based Architecture as those are two different architectural styles.<ref>{{Cite book |title=Fundamentals of Software Architecture: An Engineering Approach |publisher=O'Reilly Media |year=2020 |isbn=978-1492043454}}</ref>
SOA can support integration and consolidation activities within complex ] systems, but SOA does not specify or provide a methodology or ] for documenting capabilities or services.


== Overview ==
]s such as ] and specifications such as ] extend the service concept further by providing a method of defining and supporting ] of fine grained services into coarser grained business services, which in turn can be incorporated into workflows and business processes implemented in ] or ]{{fact}}.
In SOA, services use protocols that describe how they ] and parse messages using description ]. This metadata describes both the functional characteristics of the service and quality-of-service characteristics. Service-oriented architecture aims to allow users to combine large chunks of functionality to form applications which are built purely from existing services and combining them in an ad hoc manner. A service presents a simple interface to the requester that abstracts away the underlying complexity acting as a black box. Further users can also access these independent services without any knowledge of their internal implementation.<ref>{{Cite web|url=http://www-128.ibm.com/developerworks/library/ws-migratesoa/ |title=Migrating to a service-oriented architecture, Part 1 |date=2008-12-09 |access-date=2016-09-21 |url-status=bot: unknown |archive-url=https://web.archive.org/web/20081209120916/http://www-128.ibm.com/developerworks/library/ws-migratesoa/ |archive-date=December 9, 2008 }}</ref>


== Defining concepts ==
]
The related buzzword ] promotes '']'' between services. SOA separates functions into distinct units, or services,<ref name="Bell">{{cite book|title=Service-Oriented Modeling: Service Analysis, Design, and Architecture|url=https://archive.org/details/serviceorientedm00bell|url-access=limited|publisher=Wiley & Sons|year=2008|isbn=978-0-470-14111-3|page=|chapter=Introduction to Service-Oriented Modeling|author=Michael Bell}}</ref> which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services and their corresponding consumers communicate with each other by passing data in a well-defined, shared format, or by coordinating an activity between two or more services.<ref name="Bell_">{{ cite book |author=Michael Bell|title=SOA Modeling Patterns for Service-Oriented Discovery and Analysis |url=https://archive.org/details/soamodelingpatte00bell|url-access=limited|year=2010 |publisher=Wiley & Sons|isbn=978-0-470-48197-4 |page= }}</ref>


SOA can be seen as part of the continuum which ranges from the older concept of ]<ref name="Bell" /><ref name="Erl">Thomas Erl (June 2005). ''About the Principles''. Serviceorientation.org</ref> and ], through SOA, and on to practices of ]s, ], and ] (which some see as the offspring of SOA).<ref>{{cite web|url=http://apsblog.burtongroup.com/2009/01/soa-is-dead-long-live-services.html |archive-url=https://web.archive.org/web/20090115205704/http://apsblog.burtongroup.com/2009/01/soa-is-dead-long-live-services.html |url-status=dead |archive-date=January 15, 2009 |title=Application Platform Strategies Blog: SOA is Dead; Long Live Services |publisher=Apsblog.burtongroup.com |date=January 5, 2009 |access-date=August 13, 2012}}</ref>
==SOA definitions==


== Principles ==
SOA is a design for linking computational resources (principally, applications and data) on demand to achieve the desired results for service consumers (which can be end users or other services). OASIS (the Organization for the Advancement of Structured Information Standards) defines SOA as the following:
{{list|date=July 2024}}
There are no industry standards relating to the exact composition of a service-oriented architecture, although many industry sources have published their own principles. Some of these<ref>Yvonne Balzer , ''IBM'', July 16, 2004</ref><ref>{{cite web |url= http://msdn.microsoft.com/en-us/library/bb972954.aspx |title=Principles of Service Oriented Design |author=Microsoft Windows Communication Foundation team |work=msdn.microsoft.com |year=2012 |access-date=September 3, 2012}}</ref><ref name="Terl">Principles by ] of SOA Systems Inc. </ref>
include the following:
; ]<ref>{{cite web | title=4.4 Guidelines for Using Web Service Contract Technologies - Anatomy of a Web Service Contract | website=InformIT | date=2021-06-11 | url=http://www.informit.com/articles/article.aspx?p=1250898&seqNum=4 | ref={{sfnref | InformIT | 2021}} | access-date=2021-09-09}}</ref>
: Services adhere to a standard communications agreement, as defined collectively by one or more ] documents within a given set of services.
; Service reference autonomy (an aspect of loose coupling)
: The relationship between services is minimized to the level that they are only aware of their existence.
; Service location transparency (an aspect of loose coupling)
: Services can be called from anywhere within the network that it is located no matter where it is present.
; Service longevity
: Services should be designed to be long lived. Where possible services should avoid forcing consumers to change if they do not require new features, if you call a service today you should be able to call the same service tomorrow.
; ]
: The services act as black boxes, that is their inner logic is hidden from the consumers.
; ]
: Services are independent and control the functionality they encapsulate, from a Design-time and a run-time perspective.
; ]
: Services are stateless, that is either return the requested value or give an exception hence minimizing resource use.
; ]
: A principle to ensure services have an adequate size and scope. The functionality provided by the service to the user must be relevant.
; Service normalization
: Services are decomposed or consolidated (normalized) to minimize redundancy. In some, this may not be done. These are the cases where performance optimization, access, and aggregation are required.<ref>{{cite book|author=Tony Shan|title=IEEE International Conference on Services Computing, 2004. (SCC 2004). Proceedings. 2004 |doi=10.1109/SCC.2004.1358011 |pages=237–244|year=2004|chapter=Building a service-oriented eBanking platform |isbn=978-0-7695-2225-8 |s2cid=13156128 }}2004</ref>
; ]
: Services can be used to compose other services.
; ]
: Services are supplemented with communicative meta data by which they can be effectively discovered and interpreted.
; ]
: Logic is divided into various services, to promote reuse of code.
; Service ]
: Many services which were not initially planned under SOA, may get encapsulated or become a part of SOA.


== Patterns ==
''A paradigm for organizing and utilizing distributed capabilities that may be under the control of different ownership domains. It provides a uniform means to offer, discover, interact with and use capabilities to produce desired effects consistent with measurable preconditions and expectations.''


Each SOA building block can play any of the three roles:
There are multiple definitions of SOA but currently only the ] group has created a formal definition with depth which can be applied to both the technology and business domains.


; Service provider
* ] (SOA-RM)<ref></ref>
: It creates a web service and provides its information to the service registry. Each provider debates upon a lot of hows and whys like which service to expose, which to give more importance: security or easy availability, what price to offer the service for and many more''.'' The provider also has to decide what category the service should be listed in for a given broker service<ref>{{cite book|chapter=Exploring Cloud Service Brokering from an Interface Perspective|last1=Duan |first1=Yucong |title=2014 IEEE International Conference on Web Services|pages=329–336|last2=Narendra |first2= Nanjangud |last3=Du |first3=Wencai |last4=Wang |first4=Yongzhi |last5=Zhou|first5=Nianjun|publisher=]|doi=10.1109/ICWS.2014.55|year=2014|isbn=978-1-4799-5054-6|s2cid=17957063 }}</ref> and what sort of trading partner agreements are required to use the service.
* What Is Service-Oriented Architecture? ()
; Service broker, service registry or service repository
* What is Service-Oriented Architecture? ()
: Its main functionality is to make information regarding the web service available to any potential requester. Whoever implements the broker decides the scope of the broker. Public brokers are available anywhere and everywhere but private brokers are only available to a limited amount of public. ] was an early, no longer actively supported attempt to provide ].
*
; Service requester/consumer
*
: It locates entries in the broker registry using various find operations and then binds to the service provider in order to invoke one of its web services. Whichever service the service-consumers need, they have to take it into the brokers, bind it with respective service and then use it. They can access multiple services if the service provides multiple services.
* Object Management Group ( )
*
* SearchWebServices.com


The service consumer–provider relationship is governed by a ],<ref>{{cite book |chapter=A Survey on Service Contract |last1=Duan |first1=Yucong |title=2012 13th ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing |pages=805–810 |publisher=]|doi=10.1109/SNPD.2012.22 |year=2012 |isbn=978-1-4673-2120-4 |s2cid=1837914 }}</ref> which has a business part, a functional part and a technical part.
Though many definitions of SOA limit themselves to technology or just web services, this is predominantly pushed by technology vendors; in 2003 they talked just of web services, while in 2006 the talk is of events and process engines.{{fact}}


] have two broad, high-level architectural styles: ]. Lower level enterprise integration patterns that are not bound to a particular architectural style continue to be relevant and eligible in SOA design.<ref name="ieeesweip">{{Cite journal | doi = 10.1109/MS.2016.11 | title = A Decade of Enterprise Integration Patterns | journal = IEEE Software | volume = 33 | issue = 1 | pages = 13–19 | year = 2016 | last1 = Olaf Zimmermann, Cesare Pautasso, Gregor Hohpe, Bobby Woolf | doi-access = free }}</ref><ref>{{Cite book | last=Rotem-Gal-Oz | first=Arnon | title= SOA Patterns | publisher= Manning Publications | year=2012 | isbn=978-1933988269 }}</ref><ref>{{cite journal |doi=10.1016/j.cose.2011.03.005 |citeseerx=10.1.1.390.3652|url=http://soadecisions.org/download/ComplianceByDesign-AAM.pdf|title=Compliance by design – Bridging the chasm between auditors and IT architects|year=2011|last1=Julisch|first1=Klaus|last2=Suter|first2=Christophe|last3=Woitalla|first3=Thomas|last4=Zimmermann|first4=Olaf|journal=Computers & Security|volume=30|issue=6–7|pages=410–426}}</ref>
==Why SOA?==
]s believe that SOA can help businesses respond more quickly and cost-effectively to the changing market conditions<ref>Christopher Koch , ''CIO Magazine'', Mar 1 2005</ref>
. This style of architecture promotes reuse at the macro (service) level rather than micro levels (eg. objects). It can also simplify interconnection to and usage of existing IT (legacy) assets.


== Implementation approaches ==
provides a high-level summary on SOA.
Service-oriented architecture can be implemented with ]s or ].<ref>Brandner, M., Craes, M., Oellermann, F., Zimmermann, O., Web Services-Oriented Architecture in Production in the Finance Industry, Informatik-Spektrum 02/2004, Springer-Verlag, 2004</ref> This is done to make the functional building-blocks accessible over standard Internet protocols that are independent of platforms and programming languages. These services can represent either new applications or just wrappers around existing legacy systems to make them network-enabled.<ref>{{Cite web|url=http://www.ibm.com/support/knowledgecenter/en/SSEQTP_6.1.0/com.ibm.websphere.base.iseries.doc/info/iseries/ae/cwbs_soawbs.html|title=www.ibm.com|website=] |access-date=2016-09-10}}</ref>


Implementers commonly build SOAs using web services standards. One example is ], which has gained broad industry acceptance after the recommendation of Version 1.2 from the W3C<ref>{{cite web|url=http://www.w3.org/2003/06/soap12-pressrelease |title=SOAP Version 1.2 の公開について (W3C 勧告) |date=June 24, 2003 |language=ja |publisher=W3.org |access-date=August 13, 2012 }}</ref> (World Wide Web Consortium) in 2003. These standards (also referred to as ]) also provide greater interoperability and some protection from lock-in to proprietary vendor software. One can, however, also implement SOA using any other service-based technology, such as ], ], ], ], or ].
In some respects, SOA can be considered an evolution in architecture, not a revolution. It captures many of best practices or actual use of the architectures that came before it. In communications systems, for example, there has been little development in recent years of solutions that use truly static bindings to talk to other equipment in the network, but by formally embracing a SOA approach, solutions are better positioned to stress the importance of well-defined, highly interoperable interfaces.{{fact}}


Architectures can operate independently of specific technologies and can therefore be implemented using a wide range of technologies, including:
Some have questioned whether SOA is just a revival of modular programming (1970s), event-oriented design (1980s) or interface/component-based design (1990s){{fact}}. SOA promotes the goal of separating users (consumers) from the service implementations. Services can therefore be run on various distributed platforms and be accessed across networks. This can also maximise reuse of services{{fact}}.
* ] based on WSDL and ]
* Messaging, e.g., with ActiveMQ, JMS, RabbitMQ
* RESTful HTTP, with ] (REST) constituting its own constraints-based architectural style
* ] (DDS)
* ]
* ]
* ] (Microsoft's implementation of Web services, forming a part of WCF)
* ]
* ]
* ]


Implementations can use one or more of these protocols and, for example, might use a file-system mechanism to communicate data following a defined interface specification between processes conforming to the SOA concept. The key is independent services with defined interfaces that can be called to perform their tasks in a standard way, without a service having foreknowledge of the calling application, and without the application having or needing knowledge of how the service actually performs its tasks. SOA enables the development of applications that are built by combining loosely coupled and ] services.
==SOA principles==
The following '''guiding principles''' define the ground rules for development, maintenance, and usage of the SOA<ref>Yvonne Balzer , '']'', 16 July 2004</ref>
:
*Reuse, ], ], composability, componentization, and ]
*Compliance to standards (both common and industry-specific)
*Services identification and categorization, provisioning and delivery, and monitoring and tracking


These services inter-operate based on a formal definition (or contract, e.g., WSDL) that is independent of the underlying platform and programming language. The interface definition ] of the language-specific service. SOA-based systems can therefore function independently of development technologies and platforms (such as Java, .NET, etc.). Services written in C# running on .NET platforms and services written in Java running on ] platforms, for example, can both be consumed by a common composite application (or client). Applications running on either platform can also consume services running on the other as web services that facilitate reuse. Managed environments can also wrap COBOL legacy systems and present them as software services.<sup>.</sup><ref>{{Cite web|url=http://www.fujitsu.com/global/documents/about/resources/publications/fstj/archives/vol42-3/paper18.pdf|title=. "Case Study of System Architecture that use COBOL assets"|last=Okishima|first=Haruhiru|date=2006}}</ref>
The following '''specific architectural principles''' for design and service definition focus on specific themes that influence the intrinsic behaviour of a system and the style of its design:
*'''Service ]'''
*'''Service ]''' - Services maintain a relationship that minimizes dependencies and only requires that they maintain an awareness of each other
*''']''' - Services adhere to a communications agreement, as defined collectively by one or more service description documents
*'''Service abstraction''' - Beyond what is described in the service contract, services hide logic from the outside world
*'''Service reusability''' - Logic is divided into services with the intention of promoting reuse
*'''Service composability''' - Collections of services can be coordinated and assembled to form composite services
*'''Service autonomy''' – Services have control over the logic they encapsulate
*'''Service statelessness''' – Services minimize retaining information specific to an activity
*''']''' – Services are designed to be outwardly descriptive so that they can be found and assessed via available discovery mechanisms<ref>Thomas Erl , 2005-2006</ref>


]s such as ] and specifications such as ] and ] extend the service concept by providing a method of defining and supporting orchestration of fine-grained services into more coarse-grained business services, which architects can in turn incorporate into workflows and business processes implemented in ] or ].
In addition, the following factors should also be taken into account when defining an SOA implementation:
*SOA Reference Architecture covers the SOA Reference Architecture, which provides a worked design of an enterprise-wide SOA implementation with detailed architecture diagrams, component descriptions, detailed requirements, design patterns, opinions about standards, patterns on regulation compliance, standards templates etc.
*Life cycle management introduces the Services Lifecycle and provides a detailed process for services management though the service lifecycle, from inception through to retirement or repurposing of the services. It also contains an appendix that includes organization and governance best practices, templates, comments on key SOA standards, and recommended links for more information.
*Efficient use of system resources
*Service maturity and performance
* EAI Enterprise Application Integration


] is an SOA framework that identifies the various disciplines that guide SOA practitioners to conceptualize, analyze, design, and architect their service-oriented assets. The ] offers a modeling language and a work structure or "map" depicting the various components that contribute to a successful service-oriented modeling approach. It illustrates the major elements that identify the "what to do" aspects of a service development scheme. The model enables practitioners to craft a ] and to identify the milestones of a service-oriented initiative. SOMF also provides a common modeling notation to address alignment between business and IT organizations.]
==Service-oriented design and development==
]
{{unreferencedsect}}
The modelling and design methodology for SOA applications has become known by the terms ] and ].


== Organizational benefits ==
===Service contract!===
Some ]s believe that SOA can help businesses respond more quickly and more cost-effectively to changing market conditions.<ref>Christopher Koch {{Webarchive|url=https://web.archive.org/web/20090116015011/http://www.cio.com.au/index.php/id;1350140708 |date=January 16, 2009 }}, ''CIO Magazine'', March 1, 2005</ref> This style of ''architecture'' promotes reuse at the macro (service) level rather than micro (classes) level. It can also simplify interconnection to—and usage of—existing IT (legacy) assets.
A service contract needs to have the following components:
*Header
**Name - Name of the service. Should indicate in general terms what it does, but not be the only definition
**Version - The version of this service contract
**Owner - The person/team in charge of the service
**RACI
***Responsible - The role is the person/team responsible for the deliverables of this contract/service. All versions of the contract
***Accountable - Ultimate Decision Maker in terms of this contract/service
***Consulted - Who must be consulted before action is taken on this contract/service. This is 2-way communication. These people have an impact on the decision and/or the execution of that decision.
***Informed - Who must be informed that a decision or action is being taken. This is a 1-way communication. These people are impacted by the decision or execution of that decision, but have no control over the action.
**Type - This is the type of service to help distinguish the layer it resides.
***Data
***Process
***Functionality
***Presentation
*Functional
**Functional Requirement (From Requirements Document) - Indicates the functionality in specific bulleted items what exactly this service accomplishes. The language should be such that it allows test cases to prove the functionality is accomplished.
**Service Operations - Methods, actions etc. Must be defined in terms of what part of the Functionality it provides.
**Invocation - Indicates the invocation means of the service. This includes the URL, interface, etc. There may be multiple Invocation paths for the same service. We may have the same functionality for an internal and external clients each with a different invocation means and interface. Examples:
***SOAP
***REST
***Events Triggers
*Non-Functional
**Security Constraints - Defines who can execute this service in terms of roles or individual partners, etc. and which invocation mechanism they can invoke.
**Quality of Service - Determines the allowable failure rate
**Transactional - Is this capable of acting as part of a larger transaction and if so, how do we control that?
**Service Level Agreement - Determines the amount of latency the service is allowed to have to perform its actions
**Semantics - Dictates or defines the meaning of terms used in the description and interfaces of the service
**Process - Describes the process, if any, of the contracted service


With SOA, the idea is that an organization can look at a problem holistically. A business has more overall control. Theoretically there would not be a mass of developers using whatever tool sets might please them. But rather they would be coding to a standard that is set within the business. They can also develop enterprise-wide SOA that encapsulates a business-oriented infrastructure. SOA has also been illustrated as a highway system providing efficiency for car drivers. The point being that if everyone had a car, but there was no highway anywhere, things would be limited and disorganized, in any attempt to get anywhere quickly or efficiently. IBM Vice President of Web Services Michael Liebow says that SOA "builds highways".<ref>Elizabeth Millard (January 2005). "Building a Better Process". ''Computer User''. Page 20.</ref>
==SOA and web service protocols==
{{unreferencedsect}}
SOA may be built on ]s standards (e.g., using ] or ]) that have gained broad industry acceptance. These standards (also referred to as ]) also provide greater interoperability and some protection from lock-in to proprietary vendor software. However, one can implement SOA using any service-based technology, such as ].


In some respects, SOA could be regarded as an architectural evolution rather than as a revolution. It captures many of the ]s of previous software architectures. In communications systems, for example, little development of solutions that use truly static bindings to talk to other equipment in the network has taken place. By embracing a SOA approach, such systems can position themselves to stress the importance of well-defined, highly inter-operable interfaces. Other predecessors of SOA include ] and Object-Oriented Analysis and Design (OOAD) of remote objects, for instance, in ].
''Service-oriented architecture'' is often defined as services exposed using the ]{{fact}} . The base level of web services standards relevant to SOA includes the following:


A service comprises a stand-alone unit of functionality available only via a formally defined interface. Services can be some kind of "nano-enterprises" that are easy to produce and improve. Also services can be "mega-corporations" constructed as the coordinated work of subordinate services.
* ] - a markup language for describing data in message payloads in a document format
* ] (or ]) - request/response protocol between clients and servers used to transfer or convey information
* ] - a protocol for exchanging XML-based messages over a computer network, normally using HTTP
* ] (WSDL) - XML-based service description that describes the public interface, protocol bindings and message formats required to interact with a web service
* ] (UDDI) - An XML-based registry to publish service descriptions (WSDL) and allow their discovery


Reasons for treating the implementation of services as separate projects from larger projects include:
Note, however, that a system does not necessarily need to use any or all of these standards to be "service-oriented." For example, some service oriented systems have been implemented using ] and ].
# Separation promotes the concept to the business that services can be delivered quickly and independently from the larger and slower-moving projects common in the organization. The business starts understanding systems and simplified user interfaces calling on services. This advocates ]. That is to say, it fosters business innovations and speeds up time-to-market.<ref>Brayan Zimmerli (November 11, 2009) , ''University of Applied Science of Northwestern Switzerland, School of Business''</ref>
# Separation promotes the decoupling of services from consuming projects. This encourages good design insofar as the service is designed without knowing who its consumers are.
# Documentation and test artifacts of the service are not embedded within the detail of the larger project. This is important when the service needs to be reused later.


SOA promises to simplify testing indirectly. Services are autonomous, stateless, with fully documented interfaces, and separate from the cross-cutting concerns of the implementation. If an organization possesses appropriately defined test data, then a corresponding stub is built that reacts to the test data when a service is being built. A full set of regression tests, scripts, data, and responses is also captured for the service. The service can be tested as a 'black box' using existing stubs corresponding to the services it calls. Test environments can be constructed where the primitive and out-of-scope services are stubs, while the remainder of the mesh is test deployments of full services. As each interface is fully documented with its own full set of regression test documentation, it becomes simple to identify problems in test services. Testing evolves to merely validate that the test service operates according to its documentation, and finds gaps in documentation and test cases of all services within the environment. Managing the data state of ] services is the only complexity.
==SOA, Web 2.0, and mashups ==
] refers to a "second generation" of web sites, primarily distinguished by the ability of visitors to contribute information for collaboration and sharing. Web 2.0 applications use Web services and may include ] program interfaces, ], ], and ]. While there are no set standards for Web 2.0, it is characterised by building on the existing web server architecture and using services. Web 2.0 can therefore be regarded as displaying some SOA characteristics<ref>Dion Hinchcliffe , ''SOA Web Services Journal'', 28 October 2005</ref>.


Examples may prove useful to aid in documenting a service to the level where it becomes useful. The documentation of some APIs within the Java Community Process provide good examples. As these are exhaustive, staff would typically use only important subsets. The 'ossjsa.pdf' file within ] exemplifies such a file.<ref>{{Cite web|url=https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7854-oss_service_activation-1.0-fr-spec-oth-JSpec@CDS-CDS_Developer|title=JSR-000089 OSS Service Activation API Specification 1.0 Final Release|date=July 26, 2011|access-date=May 18, 2024|archive-date=July 26, 2011|archive-url=https://web.archive.org/web/20110726070810/https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=7854-oss_service_activation-1.0-fr-spec-oth-JSpec@CDS-CDS_Developer|url-status=dead}}</ref>
] are also regarded by some as Web 2.0 applications. The term "enterprise mashup" has been coined to describe Web applications that combine content from more than one source into an integrated experience, which share many of the characteristics of ] (SOBAs), which are applications composed of services in a declarative manner. There is ongoing debate about "the collision of Web 2.0, mashups, and SOA", with some stating that Web 2.0 applications are a realisation of SOA composite and business applications.
<ref>Jason Bloomberg , ''Zapthink''</ref>


== Criticism ==
==SOA 2.0 or Advanced SOA==
SOA has been conflated with ]s;<ref>{{cite web|author=Joe McKendrick|title=Bray: SOA too complex; 'just vendor BS'|url=https://www.zdnet.com/article/bray-soa-too-complex-just-vendor-bs/|publisher=ZDNet}}</ref> however, Web services are only one option to implement the patterns that comprise the SOA style. In the absence of native or binary forms of remote procedure call (RPC), applications could run more slowly and require more processing power, increasing costs. Most implementations do incur these overheads, but SOA can be implemented using technologies (for example, ] (JBI), ] (WCF) and ] (DDS)) that do not depend on remote procedure calls or translation through XML or JSON. At the same time, emerging open-source XML parsing technologies (such as ]) and various XML-compatible binary formats promise to significantly improve SOA performance.<ref>Jimmy Zhang (February 20, 2008) {{Webarchive|url=https://web.archive.org/web/20080704164141/http://xml.sys-con.com/read/453082.htm |date=July 4, 2008 }}. ''XML Journal''.</ref><ref>Jimmy Zhang (August 5, 2008) {{Webarchive|url=https://web.archive.org/web/20200109144704/http://soa.sys-con.com/read/250512.htm |date=January 9, 2020 }}. ''Microservices Journal''.</ref><ref>Jimmy Zhang (January 9, 2008) {{Webarchive|url=https://web.archive.org/web/20170730063601/http://www.devx.com/xml/Article/36379 |date=July 30, 2017 }}. ''devx.com''.</ref>
] is talking up '''SOA 2.0''' as "the next-generation version of SOA" combining service-oriented architecture and ], and categorizing the first iteration of SOA as client-server driven<ref>Paul Krill , ''InfoWorld '', May 17, 2006</ref>
.
Even though Oracle indicates that ] is coining a new term, Gartner analysts indicate that they call this '''advanced SOA''' and it is 'whimsically' referred to as SOA 2.0.<ref>Yefim Natis & Roy Schulte , ''Gartner'', July 13, 2006</ref> Most of the pure-play middleware vendors (e.g., ] and ]) have had SOA 2.0 attributes for years. SOA 2.0 can therefore be regarded as marketing and evangelism rather than a new "way of doing things".


Stateful services require both the consumer and the provider to share the same consumer-specific context, which is either included in or referenced by messages exchanged between the provider and the consumer. This constraint has the drawback that it could reduce the overall ] of the service provider if the service-provider needs to retain the shared context for each consumer. It also increases the coupling between a service provider and a consumer and makes switching service providers more difficult.<ref>{{cite web | url=http://www.jpmorgenthal.com/morgenthal/?p=31 | title=The Reason SOA Isn't Delivering Sustainable Software | date=June 19, 2009 | publisher=jpmorgenthal.com | access-date=June 27, 2009 }}</ref> Ultimately, some critics feel that SOA services are still too constrained by applications they represent.<ref>{{cite web | url=https://www.zdnet.com/article/soa-services-still-too-constrained-by-applications-they-represent/ | title=SOA services still too constrained by applications they represent | date=June 27, 2009 | publisher=] | access-date=June 27, 2009 }}</ref>
However, other industry commentators have criticized attaching a version number to an architecture, while others have stated that the "next generation" should apply to the evolution of SOA techniques from IT optimization to business development<ref>Joe McKendrick , ''ZDNet.com'', June 29, 2006</ref>
.


A primary challenge faced by service-oriented architecture is managing of metadata. Environments based on SOA include many services which communicate among each other to perform tasks. Due to the fact that the design may involve multiple services working in conjunction, an Application may generate millions of messages. Further services may belong to different organizations or even competing firms creating a huge trust issue. Thus SOA governance comes into the scheme of things.<ref>{{Cite web|url=https://www.opengroup.org/soa/source-book/soa_refarch/governance.htm|title=Governance Layer|website=www.opengroup.org|access-date=2016-09-22|archive-date=June 4, 2016|archive-url=https://web.archive.org/web/20160604042140/http://www.opengroup.org/soa/source-book/soa_refarch/governance.htm|url-status=dead}}</ref>
==What are the challenges faced in SOA adoption?==
{{unreferencedsect}}
One obvious and common challenge faced is managing '''services ]'''{{fact}}. SOA-based environments can include many services which exchange messages to perform tasks. Depending on the design, a single application may generate millions of messages. Managing and providing information on how services interact is a complicated task.


Another major problem faced by SOA is the lack of a uniform testing framework. There are no tools that provide the required features for testing these services in a service-oriented architecture. The major causes of difficulty are:<ref>{{Cite web|url=http://wso2.com/library/articles/2014/04/how-to-efficiently-test-service-oriented-architecture/|title=How to Efficiently Test Service Oriented Architecture {{!}} WSO2 Inc|website=wso2.com|access-date=2016-09-22}}</ref>
Another challenge is providing '''appropriate levels of security'''. Applications which consume services, particularly those external to company firewalls, are more visible to external parties than traditional monolithic proprietary applications. The flexibility and reach of SOA can compromise security; the ] suite of specifications is being developed to provide appropriate security{{fact}} .
* Heterogeneity and complexity of solution.
* Huge set of testing combinations due to integration of autonomous services.
* Inclusion of services from different and competing vendors.
* ] is continuously changing due to availability of new features and services.


== Extensions and variants ==
As SOA and the ] are constantly being expanded, updated and refined, there is a shortage of skilled people to work on SOA based systems, including the integration of services and construction of services infrastructure.


=== Event-driven architecture ===
There is significant '''vendor hype''' concerning SOA that can create expectations that may not be fulfilled. SOA does not guarantee reduced IT costs, improved systems agility or faster time to market. Successful SOA implementations may realise some or all of these benefits depending on the quality and relevance of the system architecture and design<ref>, ''Computerworld'', June 19, 2006 </ref>
{{Main|Event-driven architecture}}
.
''See also:'' ] ]


=== Application programming interfaces ===
==Criticisms of SOA==
{{Main|Application programming interfaces}}
One of the criticisms of SOA is that the addition of XML layers introduces XML parsing and composition. In the absence of native or binary forms of Remote Procedure Calls (RPCs) applications may run slower and require more processing power, which increases costs.
Application programming interfaces (APIs) are the frameworks through which developers can interact with a web application.


==SOA and Business Architecture== === Web 2.0 ===
] coined the term "]" to describe a perceived, quickly growing set of web-based applications.<ref>{{cite web |url=http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html |title=What Is Web 2.0 |access-date=June 10, 2008 |publisher=Tim O'Reilly |date=September 30, 2005 }}</ref> A topic that has experienced extensive coverage involves the relationship between Web 2.0 and service-oriented architectures.{{Which|date=October 2016}}
One area where SOA has been gaining ground is in its power as a mechanism for defining business services and operating models and thus provide a structure for IT to deliver against the actual business requirements and adapt in a similar way to the business. The purpose of using SOA as a business mapping tool is to ensure that the services created properly represent the business view and are not just what technologists think the business services should be. At the heart of SOA planning is the process of defining architectures for the use of information in
support of the business, and the plan for implementing those architectures (Enterprise
Architecture Planning by Steven Spewak and Steven Hill). Enterprise Business Architecture should always represent the highest and most dominant architecture. Every service should be created with the intent to bring value to the business in some way and must be traceable back to the business architecture.


SOA is the philosophy of encapsulating application logic in services with a uniformly defined interface and making these publicly available via discovery mechanisms. The notion of complexity-hiding and reuse, but also the concept of loosely coupling services has inspired researchers to elaborate on similarities between the two philosophies, SOA and Web 2.0, and their respective applications. Some argue Web 2.0 and SOA have significantly different elements and thus can not be regarded "parallel philosophies", whereas others consider the two concepts as complementary and regard Web 2.0 as the global SOA.<ref name="sch">{{cite journal | url=http://www.alexandria.unisg.ch/Publikationen/37270 | title=Web 2.0 and SOA: Converging Concepts Enabling the Internet of Services | journal=IT Professional | volume=9 | issue=3 | pages=36–41 | access-date=February 23, 2008 | author1=Christoph Schroth | author2=Till Janner | year=2007 | doi=10.1109/MITP.2007.60 | s2cid=2859262 | archive-date=December 3, 2013 | archive-url=https://web.archive.org/web/20131203163749/https://www.alexandria.unisg.ch/Publikationen/37270 | url-status=dead }}</ref>
Within this area, ] was announced by ] as the first SOA-related methodology in 2004. Since then, efforts have been made to move towards greater standardization and the involvement of business objectives, particularly within the ] standards group and specifically the group. All of these approaches take a fundamentally structured approach to SOA, focusing on the Services and Architecture elements and leaving implementation to the more technically focused standards.


The philosophies of Web 2.0 and SOA serve different user needs and thus expose differences with respect to the design and also the technologies used in real-world applications. However, {{As of|2008|lc=y}}, use-cases demonstrated the potential of combining technologies and principles of both Web 2.0 and SOA.<ref name="sch" />
==SOA and network management architecture==
The principles of SOA are currently being applied to the field of ]. Examples of Service-Oriented network management architectures are TS 188 001 ''NGN Management OSS Architecture'' from ], and the recently published M.3060 ''Principles for the Management Of Next Generation Networks'' recommendation from the ].


=== Microservices ===
==Jargon==
{{main|Microservices}}
{{unreferencedsect}}
Microservices are a modern interpretation of service-oriented architectures used to build ]. Services in a microservice architecture<ref>{{cite arXiv|title=Microservices: yesterday, today, and tomorrow|eprint=1606.04036v1|last1=Dragoni|first1=Nicola|last2=Giallorenzo|first2=Saverio|author3=Alberto Lluch Lafuente|last4=Mazzara|first4=Manuel|last5=Montesi|first5=Fabrizio|last6=Mustafin|first6=Ruslan|last7=Safina|first7=Larisa|class=cs.SE|year=2016}}</ref> are ] that communicate with each other over the ] in order to fulfill a goal. These services use technology agnostic ],<ref name="martinfowler">{{cite web|url= http://martinfowler.com/articles/microservices.html|title= Microservices|author= James Lewis and Martin Fowler}}</ref> which aid in encapsulating choice of language and frameworks, making their choice a concern internal to the service. Microservices are a new realisation and implementation approach to SOA, which have become popular since 2014 (and after the introduction of ]), and which also emphasize continuous deployment and other agile practices.<ref>{{Cite journal|last1=Balalaie|first1=A.|last2=Heydarnoori|first2=A.|last3=Jamshidi|first3=P.|date=2016-05-01|title=Microservices Architecture Enables DevOps: Migration to a Cloud-Native Architecture|journal=IEEE Software|volume=33|issue=3|pages=42–52|doi=10.1109/MS.2016.64|issn=0740-7459|hdl=10044/1/40557|s2cid=18802650|url=http://spiral.imperial.ac.uk/bitstream/10044/1/40557/8/SO_SWSI-2015-10-0149.R1_Balalaie.pdf|hdl-access=free}}</ref>
SOA is an architectural style rather than a product. Several vendors offer products which can form the basis of, or enable, SOA--particularly ] (ESB) products. ESBs provide infrastructure that can be purchased, implemented and leveraged for SOA-based systems{{fact}}.
SOA relies heavily on metadata design and management. Metadata design and management products are also critical to implementing SOA architectures.
See the ] for an overview and ideas.


There is no single commonly agreed definition of microservices. The following characteristics and principles can be found in the literature:
==Literature==
* fine-grained interfaces (to independently deployable services),
* business-driven development (e.g. ]),
* IDEAL cloud application architectures,
* polyglot programming and persistence,
* lightweight container deployment,
* decentralized continuous delivery, and
* DevOps with holistic service monitoring.


=== Service-oriented architectures for interactive applications ===
* {{cite book | last=Barry | first=Douglas K. | title= Web Services and Service-Oriented Architectures: The Savvy Manager's Guide | publisher= Morgan Kaufmann Publishers | year=2003 | location=San Francisco | id=ISBN 1-55860-906-7 }}
* {{cite book | last=Bieberstein | first=Norbert | coauthors= Sanjay Bose, Marc Fiammante, Keith Jones, Rawn Shah | title= Service-Oriented Architecture Compass - Business Value, Planning and Enterprise Roadmap | publisher= Pearson | year=2006 | location=Upper Saddle River | id=ISBN 0-13-187002-5 }}
* {{cite book | last=Erl | first=Thomas | title= Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services | publisher= Prentice Hall PTR | year=2004 | location=Upper Saddle River | id=ISBN 0-13-142898-5}}
* {{cite book | last=Erl | first=Thomas | title= Service-Oriented Architecture: Concepts, Technology, and Design | publisher= Prentice Hall PTR | year=2005 | location=Upper Saddle River | id=ISBN 0-13-185858-0}}
* {{cite book | last=Hurwitz | first=Judith | coauthors=Robin Bloor, Carol Baroudi, Marcia Kaufman | title= Service Oriented Architecture for Dummies | publisher= Wiley | year=2006 | location=Hoboken | id=ISBN 0-470-05435-2}}


Interactive applications requiring real-time response times, for example low-latency interactive 3d applications, are using specific service oriented architectures addressing the specific needs of such kind of applications. These include for example low-latency optimized distributed computation and communication as well as resource and instance management.<ref name="roia">{{ cite book | chapter-url=https://link.springer.com/chapter/10.1007/978-3-642-14122-5_31| chapter=A Service-Oriented Interface for Highly Interactive Distributed Applications | title=European Conference on Parallel Processing | access-date=2021-02-09 |author1=Frank Glinka |author2=Allaithy Raed | series=Lecture Notes in Computer Science | year=2009 | volume=6043 | pages=266–277 | doi=10.1007/978-3-642-14122-5_31 | isbn=978-3-642-14121-8 }}</ref><ref name="city">{{ cite book | chapter-url=https://dl.acm.org/doi/10.1145/1999320.1999326| chapter=Service-oriented interactive 3D visualization of massive 3D city models on thin clients | title= COM.Geo '11: Proceedings of the 2nd International Conference on Computing for Geospatial Research & Applications | access-date=2021-02-09 |author1=Dieter Hildebrandt |author2=Jan Klimke | year=2011 | page=1 | doi=10.1145/1999320.1999326 | isbn=9781450306812 | s2cid=53246415 }}</ref><ref name="soim">{{ Cite book | chapter-url=https://ieeexplore.ieee.org/document/7473030| access-date=2021-02-09 |author1=Mahy Aly |author2=Michael Franke | title=2016 IEEE Symposium on Service-Oriented System Engineering (SOSE) | chapter=Service Oriented Interactive Media (SOIM) Engines Enabled by Optimized Resource Sharing | year=2016 | pages=231–237 | doi=10.1109/SOSE.2016.47 | isbn=978-1-5090-2253-3 | s2cid=9511734 | hdl=1854/LU-7215326 | url=https://biblio.ugent.be/publication/7215326 | hdl-access=free }}</ref>
* {{cite web
| last = Jones
| first = Steve
| year = 2005
| url = http://doi.ieeecomputersociety.org/10.1109/MS.2005.80
| title = Toward an acceptable definition of service
| format = PDF | publisher = IEEE Software
}}


== See also ==
* {{cite book | last=Krafzig | first=Dirk | coauthors=Karl Banke, Dirk Slama | title= Enterprise SOA Service Oriented Architecture Best Practices | publisher= Prentice Hall PTR | year=2004 | location=Upper Saddle River | id=ISBN 0-13-146575-9 }}
* ]
* {{cite book | last=Pulier | first=Eric | coauthors=Hugh Taylor | title= Understanding Enterprise SOA | publisher= Manning Publications | year=2005 | location=Greenwich | id=ISBN 1-93239-459-1}}
* ]
* ]
* ]
* ]
* ]
* ] (SOC)
* ]
* Service-oriented distributed applications
* ]


== References ==
* {{cite web
{{reflist|30em}}
| last = SOA Reference Model Technical Committee
* {{cite book |last1=Mauro |first1=Christian |last2=Leimeister |first2=Jan Marco |last3=Krcmar |first3=Helmut |title=2010 43rd Hawaii International Conference on System Sciences |chapter=Service Oriented Device Integration - an Analysis of SOA Design Patterns |date=January 2010 |pages=1–10 |doi=10.1109/HICSS.2010.336 |isbn=978-1-4244-5509-6 |s2cid=457705 |chapter-url=https://www.alexandria.unisg.ch/220592/1/JML_205.pdf |access-date=September 21, 2021 |archive-date=January 24, 2022 |archive-url=https://web.archive.org/web/20220124140802/https://www.alexandria.unisg.ch/220592/1/JML_205.pdf |url-status=dead }}
| first = OASIS
{{commons category}}
| year = 2006
{{Spoken Misplaced Pages|En-Service-oriented architecture.ogg|date=2011-10-27}}
| url = http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=soa-rm
| title = A Reference Model for Service Oriented Architecture.
| format = PDF | publisher = OASIS
}}


{{Prone to spam|date=December 2018}}
* {{cite book
<!-- {{No more links}}
| last = Various authors
| first =
| year = 2006
| url = http://www.amazon.com/gp/product/1427600252/sr=8-1/qid=1155236512/ref=sr_1_1/002-5004521-0480820?ie=UTF8
| title = The Emergence of Grid and Service-Oriented IT: An Industry Vision for Business Success
| format = Paperback | publisher = Tabor Communications, Inc.
}}


Please be cautious adding more external links.
* {{cite web
| last = Wada
| first = Hiroshi
| coauthors = Suzuki, Junichi
| year = 2006
| url = http://dssg.cs.umb.edu/projects/soa.html
| title = A Service-Oriented Design Framework for Secure Network Applications
| format = PDF | publisher = In Proc. of the 30th IEEE International Conference on Computer Software and Applications Conference (COMPSAC 2006)
}}


Misplaced Pages is not a collection of links and should not be used for advertising.
* {{cite web
| last = Wada
| first = Hiroshi
| coauthors = Suzuki, Junichi
| year = 2006
| url = http://dssg.cs.umb.edu/projects/soa.html
| title = A Model-Driven Development Framework for Non-Functional Aspects in Service Oriented Grids
| format = PDF | publisher = In Proc. of 2nd IEEE International Conference on Autonomic and Autonomous Systems (ICAS 2006)
}}


Excessive or inappropriate links will be removed.
== References ==
<div class="references-small">
<references/>
</div>


See ] and ] for details.
==See also==
* ]
* ]
* ]
* ]
* ]
* ]
* ]
* ]
* ] ]
* ]
* ] complementary pattern


If there are already suitable links, propose additions or replacements on
==Footnotes==
the article's talk page.
* {{note|alternativeview}} An alternative view, particularly after initial deployments, is that SOAs properly ought not dictate physical implementation, so the formal definition should not include "network." High performance SOAs may not be viable deployed to distributed nodes on a network, and separate nodes for every (or most) services could be prohibitively expensive.


-->
==External links==
*Bob Sutor:
*InfoWorld:
*OASIS:
*SOA Systems Inc.:
*IBM:
*John Reynolds:
*Sun:
*XML.com:
*Capgemini:
*
*
*
*
*
*
*
*
*
*


{{Software engineering}}
==Articles==
{{Authority control}}
*Progress Software Article. 10-step program to SOA Success:
* BEA SOA white paper library
* CBDI - The SOA Reference Model – Part 1
* CBDI - The SOA Reference Model – Part 2
* IT-Analysis.com
*Capgemini and Intel: - A chronicle of service oriented business transformation
*IBM Systems Journal issue on SOA: 12 papers covering business aspects, developing services, elements of an SOA, and formal methods
* IBM developerWorks -
* IBM developerWorks -
* IBM developerWorks -
* SOA Institue.org - - 3 part series
* ebizQ: ; ; ; by Chris Harding (2005)
* ITtoolbox Blogs: *
*SOA Web Services Journal: ; ; ; by Thomas Erl (2004, 2005)
*ebizQ: by Chris Harding (2006)
*IBM Developer Works:
*IBM SOA Overview:
* (ACM Queue interview with the Amazon.com CTO on their approach to SOA)
*webservices.org: by Colin Adam


]
]
]
]
] ]
]
]

]
]
]
]
]
]
]
]
]
]
]
]
]
]
]

Latest revision as of 21:43, 24 July 2024

Architectural pattern in software design

In software engineering, service-oriented architecture (SOA) is an architectural style that focuses on discrete services instead of a monolithic design. SOA is a good choice for system integration. By consequence, it is also applied in the field of software design where services are provided to the other components by application components, through a communication protocol over a network. A service is a discrete unit of functionality that can be accessed remotely and acted upon and updated independently, such as retrieving a credit card statement online. SOA is also intended to be independent of vendors, products and technologies.

Service orientation is a way of thinking in terms of services and service-based development and the outcomes of services.

A service has four properties according to one of many definitions of SOA:

  1. It logically represents a repeatable business activity with a specified outcome.
  2. It is self-contained.
  3. It is a black box for its consumers, meaning the consumer does not have to be aware of the service's inner workings.
  4. It may be composed of other services.

Different services can be used in conjunction as a service mesh to provide the functionality of a large software application, a principle SOA shares with modular programming. Service-oriented architecture integrates distributed, separately maintained and deployed software components. It is enabled by technologies and standards that facilitate components' communication and cooperation over a network, especially over an IP network.

SOA is related to the idea of an API (application programming interface), an interface or communication protocol between different parts of a computer program intended to simplify the implementation and maintenance of software. An API can be thought of as the service, and the SOA the architecture that allows the service to operate.

Note that Service-Oriented Architecture must not be confused with Service Based Architecture as those are two different architectural styles.

Overview

In SOA, services use protocols that describe how they pass and parse messages using description metadata. This metadata describes both the functional characteristics of the service and quality-of-service characteristics. Service-oriented architecture aims to allow users to combine large chunks of functionality to form applications which are built purely from existing services and combining them in an ad hoc manner. A service presents a simple interface to the requester that abstracts away the underlying complexity acting as a black box. Further users can also access these independent services without any knowledge of their internal implementation.

Defining concepts

The related buzzword service-orientation promotes loose coupling between services. SOA separates functions into distinct units, or services, which developers make accessible over a network in order to allow users to combine and reuse them in the production of applications. These services and their corresponding consumers communicate with each other by passing data in a well-defined, shared format, or by coordinating an activity between two or more services.

SOA can be seen as part of the continuum which ranges from the older concept of distributed computing and modular programming, through SOA, and on to practices of mashups, SaaS, and cloud computing (which some see as the offspring of SOA).

Principles

This article is in list format but may read better as prose. You can help by converting this article, if appropriate. Editing help is available. (July 2024)

There are no industry standards relating to the exact composition of a service-oriented architecture, although many industry sources have published their own principles. Some of these include the following:

Standardized service contract
Services adhere to a standard communications agreement, as defined collectively by one or more service description documents within a given set of services.
Service reference autonomy (an aspect of loose coupling)
The relationship between services is minimized to the level that they are only aware of their existence.
Service location transparency (an aspect of loose coupling)
Services can be called from anywhere within the network that it is located no matter where it is present.
Service longevity
Services should be designed to be long lived. Where possible services should avoid forcing consumers to change if they do not require new features, if you call a service today you should be able to call the same service tomorrow.
Service abstraction
The services act as black boxes, that is their inner logic is hidden from the consumers.
Service autonomy
Services are independent and control the functionality they encapsulate, from a Design-time and a run-time perspective.
Service statelessness
Services are stateless, that is either return the requested value or give an exception hence minimizing resource use.
Service granularity
A principle to ensure services have an adequate size and scope. The functionality provided by the service to the user must be relevant.
Service normalization
Services are decomposed or consolidated (normalized) to minimize redundancy. In some, this may not be done. These are the cases where performance optimization, access, and aggregation are required.
Service composability
Services can be used to compose other services.
Service discovery
Services are supplemented with communicative meta data by which they can be effectively discovered and interpreted.
Service reusability
Logic is divided into various services, to promote reuse of code.
Service encapsulation
Many services which were not initially planned under SOA, may get encapsulated or become a part of SOA.

Patterns

Each SOA building block can play any of the three roles:

Service provider
It creates a web service and provides its information to the service registry. Each provider debates upon a lot of hows and whys like which service to expose, which to give more importance: security or easy availability, what price to offer the service for and many more. The provider also has to decide what category the service should be listed in for a given broker service and what sort of trading partner agreements are required to use the service.
Service broker, service registry or service repository
Its main functionality is to make information regarding the web service available to any potential requester. Whoever implements the broker decides the scope of the broker. Public brokers are available anywhere and everywhere but private brokers are only available to a limited amount of public. UDDI was an early, no longer actively supported attempt to provide Web services discovery.
Service requester/consumer
It locates entries in the broker registry using various find operations and then binds to the service provider in order to invoke one of its web services. Whichever service the service-consumers need, they have to take it into the brokers, bind it with respective service and then use it. They can access multiple services if the service provides multiple services.

The service consumer–provider relationship is governed by a standardized service contract, which has a business part, a functional part and a technical part.

Service composition patterns have two broad, high-level architectural styles: choreography and orchestration. Lower level enterprise integration patterns that are not bound to a particular architectural style continue to be relevant and eligible in SOA design.

Implementation approaches

Service-oriented architecture can be implemented with web services or Microservices. This is done to make the functional building-blocks accessible over standard Internet protocols that are independent of platforms and programming languages. These services can represent either new applications or just wrappers around existing legacy systems to make them network-enabled.

Implementers commonly build SOAs using web services standards. One example is SOAP, which has gained broad industry acceptance after the recommendation of Version 1.2 from the W3C (World Wide Web Consortium) in 2003. These standards (also referred to as web service specifications) also provide greater interoperability and some protection from lock-in to proprietary vendor software. One can, however, also implement SOA using any other service-based technology, such as Jini, CORBA, Internet Communications Engine, REST, or gRPC.

Architectures can operate independently of specific technologies and can therefore be implemented using a wide range of technologies, including:

Implementations can use one or more of these protocols and, for example, might use a file-system mechanism to communicate data following a defined interface specification between processes conforming to the SOA concept. The key is independent services with defined interfaces that can be called to perform their tasks in a standard way, without a service having foreknowledge of the calling application, and without the application having or needing knowledge of how the service actually performs its tasks. SOA enables the development of applications that are built by combining loosely coupled and interoperable services.

These services inter-operate based on a formal definition (or contract, e.g., WSDL) that is independent of the underlying platform and programming language. The interface definition hides the implementation of the language-specific service. SOA-based systems can therefore function independently of development technologies and platforms (such as Java, .NET, etc.). Services written in C# running on .NET platforms and services written in Java running on Java EE platforms, for example, can both be consumed by a common composite application (or client). Applications running on either platform can also consume services running on the other as web services that facilitate reuse. Managed environments can also wrap COBOL legacy systems and present them as software services.

High-level programming languages such as BPEL and specifications such as WS-CDL and WS-Coordination extend the service concept by providing a method of defining and supporting orchestration of fine-grained services into more coarse-grained business services, which architects can in turn incorporate into workflows and business processes implemented in composite applications or portals.

Service-oriented modeling is an SOA framework that identifies the various disciplines that guide SOA practitioners to conceptualize, analyze, design, and architect their service-oriented assets. The Service-oriented modeling framework (SOMF) offers a modeling language and a work structure or "map" depicting the various components that contribute to a successful service-oriented modeling approach. It illustrates the major elements that identify the "what to do" aspects of a service development scheme. The model enables practitioners to craft a project plan and to identify the milestones of a service-oriented initiative. SOMF also provides a common modeling notation to address alignment between business and IT organizations.

Elements of SOA, by Dirk Krafzig, Karl Banke, and Dirk Slama
SOA meta-model, The Linthicum Group, 2007

Organizational benefits

Some enterprise architects believe that SOA can help businesses respond more quickly and more cost-effectively to changing market conditions. This style of architecture promotes reuse at the macro (service) level rather than micro (classes) level. It can also simplify interconnection to—and usage of—existing IT (legacy) assets.

With SOA, the idea is that an organization can look at a problem holistically. A business has more overall control. Theoretically there would not be a mass of developers using whatever tool sets might please them. But rather they would be coding to a standard that is set within the business. They can also develop enterprise-wide SOA that encapsulates a business-oriented infrastructure. SOA has also been illustrated as a highway system providing efficiency for car drivers. The point being that if everyone had a car, but there was no highway anywhere, things would be limited and disorganized, in any attempt to get anywhere quickly or efficiently. IBM Vice President of Web Services Michael Liebow says that SOA "builds highways".

In some respects, SOA could be regarded as an architectural evolution rather than as a revolution. It captures many of the best practices of previous software architectures. In communications systems, for example, little development of solutions that use truly static bindings to talk to other equipment in the network has taken place. By embracing a SOA approach, such systems can position themselves to stress the importance of well-defined, highly inter-operable interfaces. Other predecessors of SOA include Component-based software engineering and Object-Oriented Analysis and Design (OOAD) of remote objects, for instance, in CORBA.

A service comprises a stand-alone unit of functionality available only via a formally defined interface. Services can be some kind of "nano-enterprises" that are easy to produce and improve. Also services can be "mega-corporations" constructed as the coordinated work of subordinate services.

Reasons for treating the implementation of services as separate projects from larger projects include:

  1. Separation promotes the concept to the business that services can be delivered quickly and independently from the larger and slower-moving projects common in the organization. The business starts understanding systems and simplified user interfaces calling on services. This advocates agility. That is to say, it fosters business innovations and speeds up time-to-market.
  2. Separation promotes the decoupling of services from consuming projects. This encourages good design insofar as the service is designed without knowing who its consumers are.
  3. Documentation and test artifacts of the service are not embedded within the detail of the larger project. This is important when the service needs to be reused later.

SOA promises to simplify testing indirectly. Services are autonomous, stateless, with fully documented interfaces, and separate from the cross-cutting concerns of the implementation. If an organization possesses appropriately defined test data, then a corresponding stub is built that reacts to the test data when a service is being built. A full set of regression tests, scripts, data, and responses is also captured for the service. The service can be tested as a 'black box' using existing stubs corresponding to the services it calls. Test environments can be constructed where the primitive and out-of-scope services are stubs, while the remainder of the mesh is test deployments of full services. As each interface is fully documented with its own full set of regression test documentation, it becomes simple to identify problems in test services. Testing evolves to merely validate that the test service operates according to its documentation, and finds gaps in documentation and test cases of all services within the environment. Managing the data state of idempotent services is the only complexity.

Examples may prove useful to aid in documenting a service to the level where it becomes useful. The documentation of some APIs within the Java Community Process provide good examples. As these are exhaustive, staff would typically use only important subsets. The 'ossjsa.pdf' file within JSR-89 exemplifies such a file.

Criticism

SOA has been conflated with Web services; however, Web services are only one option to implement the patterns that comprise the SOA style. In the absence of native or binary forms of remote procedure call (RPC), applications could run more slowly and require more processing power, increasing costs. Most implementations do incur these overheads, but SOA can be implemented using technologies (for example, Java Business Integration (JBI), Windows Communication Foundation (WCF) and data distribution service (DDS)) that do not depend on remote procedure calls or translation through XML or JSON. At the same time, emerging open-source XML parsing technologies (such as VTD-XML) and various XML-compatible binary formats promise to significantly improve SOA performance.

Stateful services require both the consumer and the provider to share the same consumer-specific context, which is either included in or referenced by messages exchanged between the provider and the consumer. This constraint has the drawback that it could reduce the overall scalability of the service provider if the service-provider needs to retain the shared context for each consumer. It also increases the coupling between a service provider and a consumer and makes switching service providers more difficult. Ultimately, some critics feel that SOA services are still too constrained by applications they represent.

A primary challenge faced by service-oriented architecture is managing of metadata. Environments based on SOA include many services which communicate among each other to perform tasks. Due to the fact that the design may involve multiple services working in conjunction, an Application may generate millions of messages. Further services may belong to different organizations or even competing firms creating a huge trust issue. Thus SOA governance comes into the scheme of things.

Another major problem faced by SOA is the lack of a uniform testing framework. There are no tools that provide the required features for testing these services in a service-oriented architecture. The major causes of difficulty are:

  • Heterogeneity and complexity of solution.
  • Huge set of testing combinations due to integration of autonomous services.
  • Inclusion of services from different and competing vendors.
  • Platform is continuously changing due to availability of new features and services.

Extensions and variants

Event-driven architecture

Main article: Event-driven architecture

Application programming interfaces

Main article: Application programming interfaces

Application programming interfaces (APIs) are the frameworks through which developers can interact with a web application.

Web 2.0

Tim O'Reilly coined the term "Web 2.0" to describe a perceived, quickly growing set of web-based applications. A topic that has experienced extensive coverage involves the relationship between Web 2.0 and service-oriented architectures.

SOA is the philosophy of encapsulating application logic in services with a uniformly defined interface and making these publicly available via discovery mechanisms. The notion of complexity-hiding and reuse, but also the concept of loosely coupling services has inspired researchers to elaborate on similarities between the two philosophies, SOA and Web 2.0, and their respective applications. Some argue Web 2.0 and SOA have significantly different elements and thus can not be regarded "parallel philosophies", whereas others consider the two concepts as complementary and regard Web 2.0 as the global SOA.

The philosophies of Web 2.0 and SOA serve different user needs and thus expose differences with respect to the design and also the technologies used in real-world applications. However, as of 2008, use-cases demonstrated the potential of combining technologies and principles of both Web 2.0 and SOA.

Microservices

Main article: Microservices

Microservices are a modern interpretation of service-oriented architectures used to build distributed software systems. Services in a microservice architecture are processes that communicate with each other over the network in order to fulfill a goal. These services use technology agnostic protocols, which aid in encapsulating choice of language and frameworks, making their choice a concern internal to the service. Microservices are a new realisation and implementation approach to SOA, which have become popular since 2014 (and after the introduction of DevOps), and which also emphasize continuous deployment and other agile practices.

There is no single commonly agreed definition of microservices. The following characteristics and principles can be found in the literature:

  • fine-grained interfaces (to independently deployable services),
  • business-driven development (e.g. domain-driven design),
  • IDEAL cloud application architectures,
  • polyglot programming and persistence,
  • lightweight container deployment,
  • decentralized continuous delivery, and
  • DevOps with holistic service monitoring.

Service-oriented architectures for interactive applications

Interactive applications requiring real-time response times, for example low-latency interactive 3d applications, are using specific service oriented architectures addressing the specific needs of such kind of applications. These include for example low-latency optimized distributed computation and communication as well as resource and instance management.

See also

References

  1. ^ "SOA Source Book - What Is SOA?". collaboration.opengroup.org. Retrieved March 30, 2021.
  2. Fundamentals of Software Architecture: An Engineering Approach. O'Reilly Media. 2020. ISBN 978-1492043454.
  3. "Chapter 1: Service Oriented Architecture (SOA)". msdn.microsoft.com. Archived from the original on July 7, 2017. Retrieved September 21, 2016.
  4. "Service-Oriented Architecture Standards - The Open Group". www.opengroup.org.
  5. "What Is SOA?". www.opengroup.org. Archived from the original on August 19, 2016. Retrieved September 21, 2016.
  6. Velte, Anthony T. (2010). Cloud Computing: A Practical Approach. McGraw Hill. ISBN 978-0-07-162694-1.
  7. Fundamentals of Software Architecture: An Engineering Approach. O'Reilly Media. 2020. ISBN 978-1492043454.
  8. "Migrating to a service-oriented architecture, Part 1". December 9, 2008. Archived from the original on December 9, 2008. Retrieved September 21, 2016.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  9. ^ Michael Bell (2008). "Introduction to Service-Oriented Modeling". Service-Oriented Modeling: Service Analysis, Design, and Architecture. Wiley & Sons. p. 3. ISBN 978-0-470-14111-3.
  10. Michael Bell (2010). SOA Modeling Patterns for Service-Oriented Discovery and Analysis. Wiley & Sons. p. 390. ISBN 978-0-470-48197-4.
  11. Thomas Erl (June 2005). About the Principles. Serviceorientation.org
  12. "Application Platform Strategies Blog: SOA is Dead; Long Live Services". Apsblog.burtongroup.com. January 5, 2009. Archived from the original on January 15, 2009. Retrieved August 13, 2012.
  13. Yvonne Balzer Improve your SOA project plans, IBM, July 16, 2004
  14. Microsoft Windows Communication Foundation team (2012). "Principles of Service Oriented Design". msdn.microsoft.com. Retrieved September 3, 2012.
  15. Principles by Thomas Erl of SOA Systems Inc. eight specific service-orientation principles
  16. "4.4 Guidelines for Using Web Service Contract Technologies - Anatomy of a Web Service Contract". InformIT. June 11, 2021. Retrieved September 9, 2021.
  17. Tony Shan (2004). "Building a service-oriented eBanking platform". IEEE International Conference on Services Computing, 2004. (SCC 2004). Proceedings. 2004. pp. 237–244. doi:10.1109/SCC.2004.1358011. ISBN 978-0-7695-2225-8. S2CID 13156128.2004
  18. Duan, Yucong; Narendra, Nanjangud; Du, Wencai; Wang, Yongzhi; Zhou, Nianjun (2014). "Exploring Cloud Service Brokering from an Interface Perspective". 2014 IEEE International Conference on Web Services. IEEE. pp. 329–336. doi:10.1109/ICWS.2014.55. ISBN 978-1-4799-5054-6. S2CID 17957063.
  19. Duan, Yucong (2012). "A Survey on Service Contract". 2012 13th ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing. IEEE. pp. 805–810. doi:10.1109/SNPD.2012.22. ISBN 978-1-4673-2120-4. S2CID 1837914.
  20. Olaf Zimmermann, Cesare Pautasso, Gregor Hohpe, Bobby Woolf (2016). "A Decade of Enterprise Integration Patterns". IEEE Software. 33 (1): 13–19. doi:10.1109/MS.2016.11.{{cite journal}}: CS1 maint: multiple names: authors list (link)
  21. Rotem-Gal-Oz, Arnon (2012). SOA Patterns. Manning Publications. ISBN 978-1933988269.
  22. Julisch, Klaus; Suter, Christophe; Woitalla, Thomas; Zimmermann, Olaf (2011). "Compliance by design – Bridging the chasm between auditors and IT architects" (PDF). Computers & Security. 30 (6–7): 410–426. CiteSeerX 10.1.1.390.3652. doi:10.1016/j.cose.2011.03.005.
  23. Brandner, M., Craes, M., Oellermann, F., Zimmermann, O., Web Services-Oriented Architecture in Production in the Finance Industry, Informatik-Spektrum 02/2004, Springer-Verlag, 2004
  24. "www.ibm.com". IBM. Retrieved September 10, 2016.
  25. "SOAP Version 1.2 の公開について (W3C 勧告)" (in Japanese). W3.org. June 24, 2003. Retrieved August 13, 2012.
  26. Okishima, Haruhiru (2006). ". "Case Study of System Architecture that use COBOL assets"" (PDF).
  27. Enterprise SOA. Prentice Hall, 2005
  28. Christopher Koch A New Blueprint For The Enterprise Archived January 16, 2009, at the Wayback Machine, CIO Magazine, March 1, 2005
  29. Elizabeth Millard (January 2005). "Building a Better Process". Computer User. Page 20.
  30. Brayan Zimmerli (November 11, 2009) Business Benefits of SOA, University of Applied Science of Northwestern Switzerland, School of Business
  31. "JSR-000089 OSS Service Activation API Specification 1.0 Final Release". July 26, 2011. Archived from the original on July 26, 2011. Retrieved May 18, 2024.
  32. Joe McKendrick. "Bray: SOA too complex; 'just vendor BS'". ZDNet.
  33. Jimmy Zhang (February 20, 2008) "Index XML Documents with VTD-XML" Archived July 4, 2008, at the Wayback Machine. XML Journal.
  34. Jimmy Zhang (August 5, 2008) "i-Technology Viewpoint: The Performance Woe of Binary XML" Archived January 9, 2020, at the Wayback Machine. Microservices Journal.
  35. Jimmy Zhang (January 9, 2008) "Manipulate XML Content the Ximple Way" Archived July 30, 2017, at the Wayback Machine. devx.com.
  36. "The Reason SOA Isn't Delivering Sustainable Software". jpmorgenthal.com. June 19, 2009. Retrieved June 27, 2009.
  37. "SOA services still too constrained by applications they represent". ZDNet. June 27, 2009. Retrieved June 27, 2009.
  38. "Governance Layer". www.opengroup.org. Archived from the original on June 4, 2016. Retrieved September 22, 2016.
  39. "How to Efficiently Test Service Oriented Architecture | WSO2 Inc". wso2.com. Retrieved September 22, 2016.
  40. "What Is Web 2.0". Tim O'Reilly. September 30, 2005. Retrieved June 10, 2008.
  41. ^ Christoph Schroth; Till Janner (2007). "Web 2.0 and SOA: Converging Concepts Enabling the Internet of Services". IT Professional. 9 (3): 36–41. doi:10.1109/MITP.2007.60. S2CID 2859262. Archived from the original on December 3, 2013. Retrieved February 23, 2008.
  42. Dragoni, Nicola; Giallorenzo, Saverio; Alberto Lluch Lafuente; Mazzara, Manuel; Montesi, Fabrizio; Mustafin, Ruslan; Safina, Larisa (2016). "Microservices: yesterday, today, and tomorrow". arXiv:1606.04036v1 .
  43. James Lewis and Martin Fowler. "Microservices".
  44. Balalaie, A.; Heydarnoori, A.; Jamshidi, P. (May 1, 2016). "Microservices Architecture Enables DevOps: Migration to a Cloud-Native Architecture" (PDF). IEEE Software. 33 (3): 42–52. doi:10.1109/MS.2016.64. hdl:10044/1/40557. ISSN 0740-7459. S2CID 18802650.
  45. Frank Glinka; Allaithy Raed (2009). "A Service-Oriented Interface for Highly Interactive Distributed Applications". European Conference on Parallel Processing. Lecture Notes in Computer Science. Vol. 6043. pp. 266–277. doi:10.1007/978-3-642-14122-5_31. ISBN 978-3-642-14121-8. Retrieved February 9, 2021.
  46. Dieter Hildebrandt; Jan Klimke (2011). "Service-oriented interactive 3D visualization of massive 3D city models on thin clients". COM.Geo '11: Proceedings of the 2nd International Conference on Computing for Geospatial Research & Applications. p. 1. doi:10.1145/1999320.1999326. ISBN 9781450306812. S2CID 53246415. Retrieved February 9, 2021.
  47. Mahy Aly; Michael Franke (2016). "Service Oriented Interactive Media (SOIM) Engines Enabled by Optimized Resource Sharing". 2016 IEEE Symposium on Service-Oriented System Engineering (SOSE). pp. 231–237. doi:10.1109/SOSE.2016.47. hdl:1854/LU-7215326. ISBN 978-1-5090-2253-3. S2CID 9511734. Retrieved February 9, 2021.
Listen to this article (54 minutes)
Spoken Misplaced Pages iconThis audio file was created from a revision of this article dated 27 October 2011 (2011-10-27), and does not reflect subsequent edits.(Audio help · More spoken articles)
Software engineering
Fields
Concepts
Orientations
Models
Developmental
Other
Languages
Related fields
Categories: