Service-Oriented Architecture Explainedby Sayed Hashimi
SOA (service-oriented architecture) has become a buzzword of late. Although the concepts behind SOA have been around for over a decade now, SOA has gained extreme popularity of late due to web services. Before we dive in and talk about what SOA is and what the essentials behind SOA are, it is a useful first step to look back at the evolution of SOA. To do that, we have to simply look at the challenges developers have faced over the past few decades and observe the solutions that have been proposed to solve their problems.
Early programmers realized that writing software was becoming more and more complex. They needed a better way to reuse some of the code that they were rewriting. When researchers took notice of this, they introduced the concept of modular design. With modular design principles, programmers could write subroutines and functions and reuse their code. This was great for a while. Later, developers started to see that they were cutting and pasting their modules into other applications and that this started to create a maintenance nightmare; when a bug was discovered in a function somewhere, they had to track down all of the applications that used the function and modify the code to reflect the fix. After the fix, the deployment nightmare began. Developers didn't like that; they needed a higher level of abstraction.
Researchers proposed classes and object-oriented software to solve this, and many more, problems. Again, as software complexity grew, developers started to see that developing and maintaining software was complex and they wanted a way to reuse and maintain functionality, not just code. Researchers offered yet another abstraction layer to handle this complexity -- component-based software. Component-based software is/was a good solution for reuse and maintenance, but it doesn't address all of the complexities developers are faced with today. Today, we face complex issues like distributed software, application integration, varying platforms, varying protocols, various devices, the Internet, etc. Today's software has to be equipped to answer the call for all of the above. In short, SOA (along with web services) provides a solution to all of the above. By adopting a SOA, you eliminate the headaches of protocol and platforms and your applications integrate seamlessly.
Key Components of SOA
The first step in learning something new is to understand its vocabulary. In the context of SOA, we have the terms service, message, dynamic discovery, and web services. Each of these plays an essential role in SOA.
A service in SOA is an exposed piece of functionality with three properties:
- The interface contract to the service is platform-independent.
- The service can be dynamically located and invoked.
- The service is self-contained. That is, the service maintains its own state.
|Figure 1.1. Directory service|
Service providers and consumers communicate via messages. Services expose an interface contract. This contract defines the behavior of the service and the messages they accept and return. Because the interface contract is platform- and language-independent, the technology used to define messages must also be agnostic to any specific platform/language. Therefore, messages are typically constructed using XML documents that conform to XML schema. XML provides all of the functionality, granularity, and scalability required by messages. That is, for consumers and providers to effectively communicate, they need a non-restrictive type of system to clearly define messages; XML provides this. Because consumers and providers communicate via messages, the structure and design of messages should not be taken lightly. Messages need to be implemented using a technology that supports the scalability requirements of services. Having to redesign messages will break the interface to providers, which can prove to be costly.
Dynamic discovery is an important piece of SOA. At a high level, SOA is composed of three core pieces: service providers, service consumers, and the directory service. The role of providers and consumers are apparent, but the role of the directory service needs some explanation. The directory service is an intermediary between providers and consumers. Providers register with the directory service and consumers query the directory service to find service providers. Most directory services typically organize services based on criteria and categorize them. Consumers can then use the directory services' search capabilities to find providers. Embedding a directory service within SOA accomplishes the following:
- Scalability of services; you can add services incrementally.
- Decouples consumers from providers.
- Allows for hot updates of services.
- Provides a look-up service for consumers.
- Allows consumers to choose between providers at runtime rather than hard-coding a single provider.
Although the concepts behind SOA were established long before web services came along, web services play a major role in a SOA. This is because web services are built on top of well-known and platform-independent protocols. These protocols include HTTP, XML, UDDI, WSDL, and SOAP. It is the combination of these protocols that make web services so attractive. Moreover, it is these protocols that fulfill the key requirements of a SOA. That is, a SOA requires that a service be dynamically discoverable and invokeable. This requirement is fulfilled by UDDI, WSDL, and SOAP. SOA requires that a service have a platform-independent interface contract. This requirement is fulfilled by XML. SOA stresses interoperability. This requirement is fulfilled by HTTP. This is why web services lie at the heart of SOA.
Even though we have decades of experience in software development, we have yet to solve the mysteries of software complexity. As complexity grows, researchers find more innovative ways to answer the call. SOA, in combination with web services, is the latest answer. Application integration is one of the major issues companies face today; SOA can solve that. System availability, reliability, and scalability continue to bite companies today; SOA addresses these issues. Given today's requirements, SOA is the best scalable solution for application architecture.
This article was an introduction to SOA. There is a lot more to SOA than the simple introduction that I have given here. In several future installments, I will discuss the core concepts behind SOA in much more detail. For example, an upcoming article will discuss messages with more breadth. There is a lot more to a message than XML. For example, how do you design synchronous vs. asynchronous messages? How can you ensure reliability? How do you handle security within your messages? These topics and more will be discussed next.
Sayed Hashimi is an independent consultant based in Jacksonville, Florida. He loves to work with both Java and .NET based technologies. His research interest include: languages, algorithms, and mesh generation. Sayed holds a Master of Engineering Degree from the University of Florida.
Return to ONDotnet.com
2006-11-09 07:28:14 TheOne_KM [View]
- Trackback from http://savegoodmoney.com/wmap/addiction%20to%20accutane/addiction-to-accutane.html
addiction to accutane
2005-08-22 21:29:47 [View]
- Trackback from http://los-lobos-with-antonio-banderas.mp3se.com/
Los Lobos with Antonio Banderas
2005-08-22 03:33:42 [View]
- Trackback from http://savegoodmoney.com/wmap/phentermine%20toxicity/phentermine-toxicity.html
2005-08-21 18:24:38 [View]
- Trackback from http://sting.mp3se.com/
2005-08-20 02:00:44 [View]
- Trackback from http://savegoodmoney.com/wmap/tylenol%20dosage/tylenol-dosage.html
2005-08-19 12:06:20 [View]
- Trackback from http:
2005-08-18 04:00:27 [View]
- Trackback from http://www.grills-and-fryers.co
2005-08-16 08:52:09 [View]
- Trackback from http://orishas-feat-heather-headley.mp3se.com/
Orishas Feat. Heather Headley
2005-08-16 04:44:19 [View]
- Trackback from http://www.kellemeshusvetiunnepeket.com/0001596.php
hatásai továbbra állapítja
2005-07-07 09:33:07 [View]
- Trackback from http://dev4net.com/blog/posts/608.aspx
The Prodigal Son Returns
2004-01-09 08:57:33 [View]
- Trackback from http://dev4net.com/blog/posts/607.aspx
The Prodigal Son Returns
2004-01-09 08:45:04 [View]
- Trackback from http://dev4net.com/blog/posts/606.aspx
The Prodigal Son Returns
2004-01-09 08:39:56 [View]
- Trackback from http://objectsharp.com/blogs/bruce/story/235.aspx
The Benefits of a Service-Oriented Architecture
2003-12-30 12:59:03 [View]
- Trackback from http://codeinzen.net/posts/318.aspx
What's behind Microsoft's Whitehorse modeler?
2003-12-18 04:04:56 [View]
- Trackback from http://www.wesnapcity.com/keke/archives/000261.html
2003-11-25 17:20:34 [View]
2003-10-27 14:23:09 anonymous2 [View]
it works, much like http://www.codon4.com
2003-08-19 18:56:26 anonymous2 [View]
More backstory required
2003-08-19 11:24:46 anonymous2 [View]