Presentation is loading. Please wait.

Presentation is loading. Please wait.

Service Oriented Architecture

Similar presentations


Presentation on theme: "Service Oriented Architecture"— Presentation transcript:

1 Service Oriented Architecture
UNIT – I Unit 1

2 Roots of SOA (comparing SOA to past architectures)
What is architecture? IT departments started to recognize the need for a standardized definition of a baseline application that could act as a template for all others. This definition was abstract in nature, but specifically explained the technology, boundaries, rules, limitations, and design characteristics that apply to all solutions based on this template. This was the birth of the application architecture. Types Of Architecture: Application architecture Enterprise architecture Service-oriented architecture Unit 1

3 Application architecture
Application architecture is to an application development team what a blueprint is to a team of construction workers. Different organizations document different levels of application architecture. Some keep it high-level, providing abstract physical and logical representations of the technical blueprint. Others include more detail, such as common data models, communication flow diagrams, application-wide security requirements, and aspects of infrastructure. It is not uncommon for an organization to have several application architectures. A single architecture document typically represents a distinct solution environment. For example, an organization that houses both .NET and J2EE solutions would very likely have separate application architecture specifications for each. A key part of any application-level architecture is that it reflects immediate solution requirements, as well as long-term, strategic IT goals. Unit 1

4 Enterprise architecture
In larger IT environments, the need to control and direct IT infrastructure is critical. When numerous, disparate application architectures co-exist and sometimes even integrate, the demands on the underlying hosting platforms can be complex and onerous. Therefore, it is common for a master specification to be created, providing a high-level overview of all forms of heterogeneity that exist within an enterprise, as well as a definition of the supporting infrastructure. Continuing our previous analogy, an enterprise architecture specification is to an organization what an urban plan is to a city. Therefore, the relationship between an urban plan and the blueprint of a building are comparable to that of enterprise and application architecture specifications. Typically, changes to enterprise architectures directly affect application architectures, which is why architecture specifications often are maintained by the same group of individuals. Further ,enterprise architectures often contain a long-term vision of how the organization plans to evolve its technology and environments. For example, the goal of phasing out an outdated technology platform may be established in this specification. Unit 1

5 Service-oriented architecture
service-oriented architecture spans both enterprise and application architecture domains. The benefit potential offered by SOA can only be truly realized when applied across multiple solution environments. This is where the investment in building reusable and interoperable services based on a vendor-neutral communications platform can fully be leveraged. This does not mean that the entire enterprise must become service-oriented. SOA belongs in those areas that have the most to gain from the features and characteristics it introduces. Note that the term "SOA" does not necessarily imply a particular architectural scope. An SOA can refer to an application architecture or the approach used to standardize technical architecture across the enterprise. Because of the composable nature of SOA (meaning that individual application-level architectures can be comprised of different extensions and technologies), it is absolutely possible for an organization to have more than one SOA. Unit 1

6 Characteristics of SOA
The following primary characteristics: Contemporary SOA is at the core of the service-oriented computing platform. Contemporary SOA increases quality of service. Contemporary SOA is fundamentally autonomous. Contemporary SOA is based on open standards. Contemporary SOA supports vendor diversity. Contemporary SOA fosters intrinsic interoperability. Contemporary SOA promotes discovery. Contemporary SOA promotes federation. Contemporary SOA promotes architectural composability. Unit 1

7 Characteristics of SOA cont…
10.Contemporary SOA fosters inherent reusability. 11.Contemporary SOA emphasizes extensibility. 12.Contemporary SOA supports a service-oriented business modeling paradigm. 13.Contemporary SOA implements layers of abstraction. 14.Contemporary SOA promotes loose coupling throughout the enterprise. 15.Contemporary SOA promotes organizational agility. 16.Contemporary SOA is a building block. 17.Contemporary SOA is an evolution. 18.Contemporary SOA is still maturing. 19.Contemporary SOA is an achievable ideal Unit 1

8 Characteristics of SOA
Service-oriented software architecture has these characteristics Bieber and Carpenter 2001, Stevens, Service-Oriented, 2002, Sun Microsystems, Jini Technology Architectural Overview 2001): Services are discoverable and dynamically bound. Services are self-contained and modular. Services stress interoperability. Services are loosely coupled. Services have a network-addressable interface. Services have coarse-grained interfaces. Services are location-transparent Services are composable. Service-oriented architecture supports self-healing. Unit 1

9 SOA vs Traditional Distributed Internet Architecture
Muliple client-server architectures have appeared Client-server DB connections have been replaced with Remote Procedure Call connections (RPC) using CORBA or DCOM Middleware application servers and transaction monitors require significant attention Multi-tiered client-server environments began incorporating internet technology in 90s. Unit 1

10 SOA vs Traditional Distributed Internet Architecture
The browser shifted 100% of application logic to the server Distributed Internet architecture introduced the Web server as a new physical tier HTTP replaced RPC protocols Unit 1

11 SOA vs Traditional Distributed Internet Architecture
Distributed Internet application put all the application logic on the server side Even client-side scripts are downloaded from the server Entire solution is centralized Emphasis is on: How application logic is partitioned Where partitioned units reside How units of logic should interact Unit 1

12 SOA vs Traditional Distributed Internet Architecture
Difference lies in the principles used to determine the three primary design considerations Traditional systems create components that reside on one or more application servers Components have varying degrees of functional granularity Components on the same server communicate via proprietary APIs. RPC protocols are used across servers via proxy stubs Unit 1

13 SOA vs Traditional Distributed Internet Architecture
Actual references to other physical components can be embedded in programming code (tight coupling) SOAs also rely on components Services encapsulate components Services expose specific sets of functionality Functionality can originate from legacy systems or other sources Unit 1

14 SOA vs Traditional Distributed Internet Architecture
Functionality is wrapped in services Functionality is exposed via open, standardized interface, irrespective of technology providing the solution Services exchange information via SOAP messages. SOAP supports RPC-style and document-style messages Most applications rely on document-style Unit 1

15 SOA vs Traditional Distributed Internet Architecture
Messages are structured to be self-sufficient Messages contain meta information, processing instructions, policy rules SOA fosters reuse on a deep level by promoting solution-agnostic services Unit 1

16 Unit 1

17 Comparing SOA to client-server and distributed internet architectures
Unit 1

18 Client-Server Application Technology
The technology set for client-server applications included 4GLs like VB and PowerBuilder, RDBMSs The SOA technology set has expanded to include Web technologies (HTML, CSS, HTTP, etc) SOA requires the use of XML data representation architecture along with a SOAP messaging framework Unit 1

19 Unit 1

20 Client-Server Application Security
Centralized at the Server level Databases manage user accounts and groups Also controlled within the client executable Security for SOA is much more complex Security complexity is directly related to the degree of security measures required Multiple technologies are required, many in WS-Security framework Unit 1

21 Client-Server Application Administration
Significant maintenance costs associated with client-server Each client housed application code Each update required redistribution Client stations were subject to environment-specific problems Increased server-side demands on databases Unit 1

22 Client-Server Application Administration
SOA solutions are not immune to client-side maintenance challenges Distributed back-end supports scalability, but new admin demands are introduced Management of server resources and service interfaces may require new admin tools and even a private registry Commitment to services and their maintenance may require cultural change in an organization Unit 1

23 ANATOMY OF SOA 1.Logic components of the Web services Framework
Web services contain one or more operations. Figure 8.4 as an example Unit 1 23

24 Logic components of the Web services framework
Each operation governs the process of a specific function the web service is capable of performing. Figure 8.5 gives an example of an operation sending and receiving SOAP messages Unit 1 24

25 Logic components of the Web services framework
Web services form an activity though which they can collectively automate a task. Figure 8.6 as an example Unit 1 25

26 2. Logic components of automation logic
Fundamental parts of the framework SOAP messages Web service operations Web services Activities Renamed terms in SOA Messages Operations Services Processes Activity has been changed because it uses a different context when modeling service-oriented business processes. Unit 1 26

27 Logic components of automation logic
Messages = units of communication Operations = units of work Services = units of processing logic Processes = units of automation logic Unit 1 27

28 Logic components of automation logic
The purpose of these views is to express the process, services and operations. Is also provides a flexible means of partitioning and modularizing the logic. These are the most basic concepts that underlies service-orientation. Unit 1 28

29 3. Components of an SOA Message
A message represents the data required to complete some or all parts of a unit of work. Unit 1 29

30 Components of an SOA Operation
An operation represents the logic required to process messages in order to complete a unit of work. Unit 1 30

31 Components of an SOA Service
A service represents a logically grouped set of operations capable of performing related units of work. Unit 1 31

32 Components of an SOA Processes
A process contains the business rules that determine which service operations are used to complete a unit of automation. A process represents a large piece of work that requires the completion of smaller units of work. Unit 1 32

33 4. How components in an SOA inter-relate
1. An operation sends and receives messages to perform work. 2. An operation is therefore mostly defined by the message it processes. Unit 1 33

34 How components in an SOA inter-relate
3. A service groups is a collection of related operations. 4. A service is therefore mostly define by the operations that comprise it. Unit 1 34

35 How components in an SOA inter-relate
5. A process instance can compose service. 6. A process instance is not necessarily defined by its service because it may only require a subset of the functionality offered by the services. 7. A process instance invokes a unique series of operations to complete its automation. 8. Every process instance is therefore partially defined by the service operation it uses. Unit 1 35

36 How components in an SOA inter-relate
Unit 1 36

37 Unit 1

38 COMMON PRINCIPLES OF SERVICE- ORIENTATION
Unit 1 38

39 Common principles of service-orientation
Services are reusable Services share a formal contract Services are loosely coupled Services abstract underlying logic Services are composable Services are autonomous Services are stateless Services are discoverable Unit 1 39

40 Services are reusable Regardless of weather immediate reuse opportunities exist, services are designed to support potential reuse. Service-oriented encourages reuse in all services. By applying design standards that require reuse accommodate future requirements with less development effort. Unit 1 40

41 Services are reusable Unit 1 41

42 Case Study RailCo created the Invoice Submission Service which contains two operations SubmitInvoice GetTLSMetadata SubmitInvoice - Allows RailCo send electronic invoices to TLS Account Payable Service GetTLSMetadata – checks periodically for changes to TLS Account Payable Service Unit 1 42

43 Case Study In Plain English
Business License Office provides a distinct service Issuing business licenses Renewing business licenses Provides service to all customers Classifies this service as reusable Unit 1 43

44 Services share a formal contract
For services to interact, they need not share anything but formal contract that describe each service and define the terms of information exchange. Unit 1 44

45 Services share a formal contract
Service contracts provide a formal definition of: The service endpoint Each service operation Every input and output message supported by each operation Rules and characteristics of the service and its operations Service contacts define almost all of the primary parts of an SOA. Unit 1 45

46 Services share a formal contract
Unit 1 46

47 Case Study RailCo and TLS agreed to a service contract that allow the two companies to communicate TLS defined the definition of the associated service description documents TLS ensures a standardized level of conformance that applies to each of its online vendors TLS can change the service at any time Unit 1 47

48 Case Study In Plain English
Application form is needed obtain or renew a business license Application formalizes the request in a standard format for the Business License Office Application is a contract between the business and Business License Office Unit 1 48

49 Services are loosely coupled
Services must be designed to interact without the need for tight, cross-service dependencies. Unit 1 49

50 Services are loosely coupled
Unit 1 50

51 Case Study TLS services are designed to communicate with multiple online vendors make it loosely coupled RailCo service are designed to communicate only with TLS B2B system so is considered less loosely coupled Unit 1 51

52 Case Study In Plain English
Once the Application is submitted no further action is required on the business Business and Business License Office remain independent Application is the only requirement to communicate with Business License Office Unit 1 52

53 Services abstract underlying logic
The only part of a service that is visible to the outside world is what is exposed via the service contract. Underlying logic, beyond what is expressed in the descriptions that comprise the contract, is invisible and irrelevant to service requestors. Unit 1 53

54 Services abstract underlying logic
Unit 1 54

55 Case Study RailCo Web services hide the underlying legacy code need to produce the invoices that are needed to sent to TLS TLS Web services hide the underlying services that process the invoices from multiple online vendors Neither service requestor require any knowledge of what processes are working on the other’s service providor Unit 1 55

56 Case Study In Plain English
Business License Office tasks are hidden from the business Business does not care what Business License Office does, it just wants a license Unit 1 56

57 Services are composable
Services may be compose other services. This allows logic to be represented at different levels of granularity and promotes reusability and the creation of abstraction layers. Unit 1 57

58 Services are composable
Unit 1 58

59 Case Study TLS accounts Payable Service is composed on three services
Vendor Profile Service Ledger Service Unit 1 59

60 Case Study In Plain English
Other government agencies can use the Business License Office for their license tasks Unit 1 60

61 THANK YOU Unit 1


Download ppt "Service Oriented Architecture"

Similar presentations


Ads by Google