The principles of service-orientation part 4 of 6: Service discoverability and composition [by Thomas Erl]
来源:互联网 发布:免费淘宝开店教程 编辑:程序博客网 时间:2024/05/11 03:36
Service discoverability
The characteristic of discoverability essentially helps avoid the accidental creation of redundant services or services that implement redundant logic. Because each service operation provides a potentially reusable piece of automation logic, the metadata attached to a service needs to sufficiently describe not only the service's overall purpose, but also the functionality offered by its individual operations.
This service-orientation principle is related to, but distinct from, discoverability on an architectural level, in which case service discoverability refers to the technology architecture's ability to provide a discovery mechanism, such as a service registry or directory. These extensions effectively become part of the overall infrastructure in support of SOA implementations.
On a service level, the principle of discoverability refers to the design of an individual service so that it becomes as discoverable as possible, regardless of whether a discoverability product or extension actually exists in its surrounding implementation environment.
The reasoning behind this is that even if there's no need for a service registry because there simply isn't enough of a service inventory to warrant one, services should still be designed as highly discoverable resources. That way, when a service portfolio grows in size, the evolutionary governance of those services can be better managed because each service is equipped with sufficient metadata to properly communicate its purpose and capabilities.
Service composition
As service portfolios grow in size, service compositions will become an unavoidable and increasingly important design aspect of building service-oriented solutions. The main reason this particular principle is so important is because it ensures that services are designed in such a manner so that they can participate as effective members, or controllers, of these compositions.
The requirement for any service to be composable also places an emphasis on the design of service operations. Composability is simply another form of reuse and therefore operations need to be designed in a standardized manner (and with an appropriate level of granularity) to maximize composition opportunities.
A common SOA extension that underlines the relevance of composability is orchestration. Here, a service-oriented business process can be expressed through a composition language, such as WS-BPEL, essentially classifying the process itself as a service composition represented by a parent process service. Either way, the need for a service to be highly composable is irrespective of whether immediate composition requirements exist.
Composition discoverability
Each of the principles we explain in this series has relationships with others. Service composability, for example, is a characteristic that is influenced by the extent to which several other principles are collectively applied.
Even discoverability ties into effective composition. A fundamental rule of service abstraction is that a service can represent any range of logic from any types of supported sources, including other services. If services encapsulate others, we have a composition. To build an effective composition, the service designer will need a means of finding the most suitable services to act as composition members. Furthermore, once the composition is completed and deployed, potential consumers of the service representing the composition will benefit from an awareness of its existence, purpose, and capabilities.
Discovery supports and enables both of these scenarios, thereby furthering the cause of service-orientation.
What's next
Many of the principles we've covered so far are focused on the design and utilization of the service contract. Service statelessness and service autonomy, the two principles we'll describe in our next article, deal more with what's under the hood, in that they promote specific design characteristics of a service's underlying logic.
This article contains excerpts from "Service-Oriented Architecture: Concepts, Technology, and Design" by Thomas Erl (792 pages, Hardcover, ISBN: 0131858580, Prentice Hall/Pearson PTR, Copyright 2006). For more information, visit www.soabooks.com.
- The principles of service-orientation part 4 of 6: Service discoverability and composition [by Thomas Erl]
- The principles of service-orientation part 3 of 6: Service abstraction and reuse [by Thomas Erl]
- The principles of service-orientation part 1 of 6: Introduction to service-orientation [by Thomas Erl]
- The principles of service-orientation part 2 of 6: Service contracts and loose coupling [by Thomas Erl]
- Business analysis and SOA part 2 of 6: Business service models and the entity-centric business service [by Thomas Erl]
- Business analysis and SOA part 1 of 6: The benefits of business services [by Thomas Erl]
- Business analysis and SOA part 4 of 6: SOA delivery lifecycle and the top-down approach [by Thomas Erl]
- Business analysis and SOA part 3 of 6: Process-centric business services [by Thomas Erl]
- Principles of Service Design: Service Patterns and Anti-Patterns
- SOA Principles of Service Design
- Service and Service Composition
- Part 4 The Principles of Java Application Performance Tuning
- angularJs-The factory and service of angularJs
- UTL_HTTP Call a Web Service and Pass Parameters as Part of the URL
- The Principles of OOD
- Toward a pattern language for Service-Oriented Architecture and Integration, Part 2: Service composition
- The Evolution of web service
- restart of the W3SVC service
- DataGrid经典
- WEB打印新产品——Turbo ePrinting 试用报告(续1)
- The principles of service-orientation part 3 of 6: Service abstraction and reuse [by Thomas Erl]
- C#如何在Form中嵌入并且操作Excel表格
- 好人啊。。。
- The principles of service-orientation part 4 of 6: Service discoverability and composition [by Thomas Erl]
- 化学式搜索引擎Chmoogle(eMolecules)及未来的搜索引擎
- private方法如何做单元测试?
- static方法无法使用mock object来模拟方法的动作?
- C#或者说.NET的自动内存管理 学习中碰到的问题。
- Business analysis and SOA part 1 of 6: The benefits of business services [by Thomas Erl]
- SVN、Local方式、个人源码管理
- Business analysis and SOA part 2 of 6: Business service models and the entity-centric business service [by Thomas Erl]
- 百度之星程序设计大赛初题目