Service-oriented architecture: Difference between revisions
m →External links: remove advertising |
m →See also: Removed dead link to Client/SOA |
||
Line 221: | Line 221: | ||
==See also== |
==See also== |
||
* [[Client/SOA]] |
|||
* [[Enterprise service bus]] |
* [[Enterprise service bus]] |
||
* [[Java Business Integration]] |
* [[Java Business Integration]] |
Revision as of 21:54, 11 February 2007
Service-oriented architecture (SOA [pronounced "sō-uh" or "es-ō-ā"]) describes a software architecture that defines the use of loosely coupled software services to support the requirements of business processes and software users. Resources on a network[1] in an SOA environment are made available as independent services that can be accessed without knowledge of their underlying platform implementation.[2]
A service-oriented architecture is not tied to a specific technology. It may be implemented using a wide range of technologies, including REST, RPC, DCOM, CORBA or Web Services. SOA can be implemented using one of these protocols and, for example, might 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 that can be called to perform their tasks in a standard way, without the service having foreknowledge of the calling application, and without the application having or needing knowledge of how the service actually performs its tasks.
SOA can also be regarded as a style of information systems architecture that enables the creation of applications that are built by combining loosely coupled and interoperable services[citation needed]. 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 be independent 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. Applications running on either platform can also consume services running on the other as Web services, which facilitates reuse.
SOA can support integration and consolidation activities within complex enterprise systems, but SOA does not specify or provide a methodology or framework for documenting capabilities or services.
High-level 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 in turn can be incorporated into workflows and business processes implemented in composite applications or portals[citation needed].
SOA definitions
SOA is a design for linking business and computational resources (principally, organizations, 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:
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.
There are multiple definitions of SOA, the OASIS group and the Open Group have created formal definition with depth which can be applied to both the technology and business domains.
- Open Group SOA Definition (SOA-Definition)[3]
- OASIS SOA Reference Model (SOA-RM)[4]
- What Is Service-Oriented Architecture? (XML.com)
- What is Service-Oriented Architecture? (Javaworld.com)
- Webopedia definition
- TechEncyclopedia definition
- Object Management Group (OMG ) SOA Special Interest Group definition
- WhatIs.com definition
- SearchWebServices.com Numerous SOA definitions by industry experts
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.[citation needed]
Why SOA?
The main drivers for SOA adoption are that it links computational resources and promotes their reuse. Enterprise architects believe that SOA can help businesses respond more quickly and cost-effectively to changing market conditions[5] . This style of architecture promotes reuse at the macro (service) level rather than micro level (objects). It can also simplify interconnection to - and usage of - existing IT (legacy) assets.
SOA Practitioners Guide: Why Services-Oriented Architecture? provides a high-level summary on SOA.
In some respects, SOA can be considered an architectural evolution rather than a revolution and captures many of the best practices of previous software architectures. In communications systems, for example, there has been little development of solutions that use truly static bindings to talk to other equipment in the network. By formally embracing a SOA approach, such systems are better positioned to stress the importance of well-defined, highly inter-operable interfaces.[citation needed]
Some have questioned whether SOA is just a revival of modular programming (1970s), event-oriented design (1980s) or interface/component-based design (1990s)[citation needed]. 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[citation needed].
SOA principles
The following guiding principles define the ground rules for development, maintenance, and usage of the SOA[6]
- Reuse, granularity, modularity, composability, componentization, and interoperability
- Compliance to standards (both common and industry-specific)
- Services identification and categorization, provisioning and delivery, and monitoring and tracking
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 Encapsulation
- Service Loose coupling - Services maintain a relationship that minimizes dependencies and only requires that they maintain an awareness of each other
- Service contract - 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
- Service discoverability – Services are designed to be outwardly descriptive so that they can be found and assessed via available discovery mechanisms[7]
In addition, the following factors should also be taken into account when defining an SOA implementation:
- SOA Reference Architecture SOA Practitioners Guide Part 2: 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 SOA Practitioners Guide Part 3: Introduction to Services Lifecycle 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
Service-oriented design and development
The modelling and design methodology for SOA applications has become known by the terms service-oriented analysis and design and SOAD.
Service contract
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 the service to help distinguish it in the layer in which 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
SOA and web service protocols
SOA may be built on Web services standards (e.g., using SOAP) that have gained broad industry acceptance. 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, implement SOA using any service-based technology, such as Jini.
Service-oriented architecture is often defined as services exposed using the Web Services Protocol Stack[citation needed] . The base level of web services standards relevant to SOA includes the following:
- XML - a markup language for describing data in message payloads in a document format
- HTTP (or HTTPS) - request/response protocol between clients and servers used to transfer or convey information
- SOAP - a protocol for exchanging XML-based messages over a computer network, normally using HTTP
- Web Services Description Language (WSDL) - XML-based service description that describes the public interface, protocol bindings and message formats required to interact with a web service
- Universal Description, Discovery, and Integration (UDDI) - An XML-based registry to publish service descriptions (WSDL) and allow their discovery
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 Corba, Jini and REST.
SOA, Web 2.0, and mashups
Web 2.0 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 Ajax program interfaces, Web syndication, blogs, and wikis. 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[8].
Mashups 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 service-oriented business applications (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. [9]
SOA 2.0 or Advanced SOA
Amid much negative reaction, Oracle is talking up SOA 2.0 as "the next-generation version of SOA" combining service-oriented architecture and Event Driven Architecture, and categorizing the first iteration of SOA as client-server driven[10] . Even though Oracle indicates that Gartner is coining a new term, Gartner analysts indicate that they call this advanced SOA and it is 'whimsically' referred to as SOA 2.0.[11] Most of the pure-play middleware vendors (e.g., webMethods and TIBCO) 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".
However, other industry commentators have criticized attaching a version number to an application architecture design approach, while others have stated that the "next generation" should apply to the evolution of SOA techniques from IT optimization to business development[12] .
What are the challenges faced in SOA adoption?
One obvious and common challenge faced is managing services metadata[citation needed]. 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 challenge is providing appropriate levels of security. Security model built into an application may no longer be appropriate when the capabilities of the application are exposed as services that can be used by other applications. That is, application-managed security is not the right model for securing services. A number of new technologies and standards are emerging to provide more appropriate models for security in SOA. See SOA Security entry for more info.
As SOA and the WS-* specifications 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.
Interoperability is another important aspect in the SOA implementations. The WS-I organization has developed Basic Profile (BP) and Basic Security Profile (BSP) to enforce compatibility. Testing tools have been designed by WS-I to help assess whether web services are conformant with WS-I profile guidelines. Additionally, another Charter has been established to work on the Reliable Secure Profile.
There is significant vendor hype concerning SOA that can create expectations that may not be fulfilled. Product stacks are still evolving as early adopters test the development and runtime products with real world problems. 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[13] . See also: WS-MetadataExchange OWL-S
Criticisms of SOA
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.
Another criticism of SOA is that the services are stateless. Stateful service is difficult to avoid in a number of situations. One situation is to establish a session between a consumer and a provider. A session is typically established for efficiency reasons. For example, sending a security certificate with each request is a serious burden for both consumer and provider. It is much quicker to replace the certificate with a token shared only by the consumer and provider. Another situation is to provide customized service.
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. The drawback of this constraint is that it may reduce the overall scalability of the service provider because it may need to remember 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.
Another concern is that WS* standards and products are still evolving (e.g., transaction, security), and SOA can thus introduce risk unless properly managed and estimated with additional budget and contingency for additional Proof of Concept work.
An informal survey by Network Computing placed SOA as the most despised buzzword (November 2006).
Some critics feel SOA is merely an obvious evolution of currently well-deployed architectures (open interfaces, etc).
SOA and Business Architecture
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.
Within this area, SOMA (Service-Oriented Modelling and Architecture) was announced by IBM 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 OASIS standards group and specifically the SOA Adoption Blueprints 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.
SOA and network management architecture
The principles of SOA are currently being applied to the field of network management. Examples of Service-Oriented network management architectures are TS 188 001 NGN Management OSS Architecture from ETSI, and the recently published M.3060 Principles for the Management Of Next Generation Networks recommendation from the ITU-T SOA.
Tools for managing SOA infrastructure include:
- HyPerformix IPS Performance Optimizer
- HP Management Software / Mercury SOA Manager
- IBM Tivoli Framework
- Tidal Software Intersperse
Jargon
SOA is an architectural style rather than a product. Several vendors offer products which can form the basis of, or enable, SOA--particularly Enterprise Service Bus (ESB) products. ESBs provide infrastructure that can be purchased, implemented and leveraged for SOA-based systems[citation needed]. SOA relies heavily on metadata design and management. Metadata design and management products are also critical to implementing SOA architectures. See the list of SOA related products for an overview and ideas.
Literature
- Barry, Douglas K. (2003). Web Services and Service-Oriented Architectures: The Savvy Manager's Guide. San Francisco: Morgan Kaufmann Publishers. ISBN 1-55860-906-7.
- Bieberstein, Norbert (2006). Service-Oriented Architecture Compass - Business Value, Planning and Enterprise Roadmap. Upper Saddle River: Pearson. ISBN 0-13-187002-5.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - Bloomberg, Jason (2006). Service- orient or Be Doomed. Hoboken, New Yersey: WILEY. ISBN 0-13-187002-5.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - Erl, Thomas (2004). Service-Oriented Architecture: A Field Guide to Integrating XML and Web Services. Upper Saddle River: Prentice Hall PTR. ISBN 0-13-142898-5.
- Coenen, Alcedo (2006). "SOA agility in practice" (PDF). Via Nova Architectura.
{{cite web}}
: Cite has empty unknown parameter:|coahthors=
(help) - Erl, Thomas (2005). Service-Oriented Architecture: Concepts, Technology, and Design. Upper Saddle River: Prentice Hall PTR. ISBN 0-13-185858-0.
- Hurwitz, Judith (2006). Service Oriented Architecture for Dummies. Hoboken: Wiley. ISBN 0-470-05435-2.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - Linticum, David (2003). Next Generation Application Integration: From Simple Information to Web Services. New York: Addison-Wesley Professional. ISBN 978-0201844566.
- Mittal, Kunal (2006). "Requirements process for SOA projects, Part 1 of 3: Capturing requirements for an SOA application - Initial requirements to build out your SOA" (HTML). IBM Developerworks.
{{cite web}}
: Cite has empty unknown parameter:|coauthors=
(help)
- Newcomer, Eric (2005). Understanding SOA with Web Services. Addison Wesley. ISBN 0-321-18086-0.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
- Shan, Tony (2006). "A Service-Oriented Solution Framework for Internet Banking" (PDF). International Journal of Web Services Research, Vol. 3, Issue 1, pp 29-48.
{{cite web}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
- Shan, Tony (2006). "Solution Architecture for N-Tier Applications" (PDF). In Proc. of the 3rd IEEE International Conference on Services Computing (SCC 2006), pp. 349-356.
{{cite web}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
- Jones, Steve (2005). "Toward an acceptable definition of service" (PDF). IEEE Software.
- Krafzig, Dirk (2004). Enterprise SOA Service Oriented Architecture Best Practices. Upper Saddle River: Prentice Hall PTR. ISBN 0-13-146575-9.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help) - Pulier, Eric (2005). Understanding Enterprise SOA. Greenwich: Manning Publications. ISBN 1-932394-59-1.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
- SOA Reference Model Technical Committee, OASIS (2006). "A Reference Model for Service Oriented Architecture" (PDF). OASIS.
- Various authors (2006). The Emergence of Grid and Service-Oriented IT: An Industry Vision for Business Success (Paperback). Tabor Communications, Inc.
- Wada, Hiroshi (2006). "A Service-Oriented Design Framework for Secure Network Applications" (PDF). In Proc. of the 30th IEEE International Conference on Computer Software and Applications Conference (COMPSAC 2006).
{{cite web}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
- Wada, Hiroshi (2006). "A Model-Driven Development Framework for Non-Functional Aspects in Service Oriented Grids" (PDF). In Proc. of 2nd IEEE International Conference on Autonomic and Autonomous Systems (ICAS 2006).
{{cite web}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)
References
- ^ 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.
- ^ Channabasavaiah, Holley and Tuggle, Migrating to a service-oriented architecture, IBM DeveloperWorks, 16 Dec 2003
- ^ http://opengroup.org/projects/soa/doc.tpl?gdid=10632
- ^ SOA Reference Model definition
- ^ Christopher Koch A New Blueprint For The Enterprise, CIO Magazine, Mar 1 2005
- ^ Yvonne Balzer Improve your SOA project plans, IBM, 16 July 2004
- ^ Thomas Erl Serviceorientation.org - About the Principles, 2005-2006
- ^ Dion Hinchcliffe Is Web 2.0 The Global SOA?, SOA Web Services Journal, 28 October 2005
- ^ Jason Bloomberg Mashups and SOBAs: Which is the Tail and Which is the Dog?, Zapthink
- ^ Paul Krill Make way for SOA 2.0, InfoWorld , May 17, 2006
- ^ Yefim Natis & Roy Schulte Advanced SOA for Advanced Enterprise Projects, Gartner, July 13, 2006
- ^ Joe McKendrick Anti-SOA 2.0 petition nears 400, ZDNet.com, June 29, 2006
- ^ Is There Real Business Value Behind the Hype of SOA?, Computerworld, June 19, 2006
See also
- Enterprise service bus
- Java Business Integration
- Enterprise application integration
- Business-driven development
- Semantic service oriented architecture
- Service component architecture
- Service-oriented analysis and design
- SOA Governance
- Representational State Transfer
- Big ball of mud anti-pattern
- Comparison of business integration software
- Search oriented architecture complementary pattern
- Service Oriented Infrastructure
- Service-Oriented Architecture Implementation Framework