23
An introduction to SOA An introduction to SOA fundamentals fundamentals By : Abhishek Chatterjee

SOA Fundamentals

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: SOA  Fundamentals

An introduction to SOA An introduction to SOA fundamentalsfundamentals By : Abhishek Chatterjee

Page 2: SOA  Fundamentals

AgendaAgenda

• History of architecture• IBM definition of Architecture• What Is SOA ?• SOA building blocks

•Linking XML, SOAP, WSDL, UDDI for web services•Adepter connections•SOA registry & Service broker•Enterprise service bus•SOA supervisor•SOA security, identity management, authentication•Additional software tools•Application lifecycle model•SOA testing•Business process modeller•Information as service•SOA repository•SOA governance

•SOA – Final picture

Page 3: SOA  Fundamentals

Mainframes: The first applications ran on one central computer. Users connected through dumb terminals or teletype machines. no messaging systems, no GUIs, no shared data, and no interaction between applications .

Workstations : As desktop computers, personal applications; each user ran a locally installed copy and quit it after its use. No data was shared

Networking : Networks connected workstations to each other . This enabled e-mail capability within an enterprise and sharing files on a file server.

Client/server : application no longer ran completely on a central computer or on a workstation, but was split across the two. business logic that ran on the server and local clients. central business logic  running in application servers .

N-tier : Database server runs on a different host computer from the application server, that's a three-tier architecture .

Internet : The Internet is networking on a global network .  enabled communications and information sharing between users anywhere in the world.

World Wide Web : Web made the Internet graphical , using HTML, hyperlinks to other document .

Browser GUIs : Web introduced HTML browsers for viewing static HTML documents. provide interactive GUIs for accessing remote applications. This was a return to the centralized computing model. none of the application ran on the client except for HTML rendering and some simple scripting

Page 4: SOA  Fundamentals

Enterprise architecture: architect is responsible for an enterprise's full range of software-intensive systems, including the relationship between multiple applications, data shared between applications, integration of the applications, and the infrastructure to run applications

Application architecture : focuses on the design of applications to automate business processes and provide functionality that helps users perform business tasks. Focus of functional and quality of service requirements including performance, availability, scalability, security, and integrity.

Information architecture: focus on structure, integrity, security, and accessibility of that data

Infrastructure architecture : focuses on the design of hardware and server software including server computers, storage, workstations, middleware, non-application software, networks, and the physical facilities that support the applications and business processes required by the enterprise

Integration architecture: focuses on the design of solutions that enable existing applications, packaged software offerings, networks, and systems to work together within an enterprise or among enterprises

Operations architecture : focuses on the design of solutions to manage the infrastructure and applications used by the enterprise

Page 5: SOA  Fundamentals

Before we define SOA, Lets find what is Web services and Web 2.0.

Web services: Internet was created to connect applications, but the Web connected people to static content and to server applications. Web services use the Web to connect applications so that one application can invoke behaviour in another application through a Web connection .

Web 2.0: This is the application of Web services to Web sites. The user of a Web site is no longer a person, it's another application.

SOA: It is an architecture for building business application as a set of loosely coupled black box components orchestrated to deliver a well defined level of service by linking together business processes.

Applications have tended to be monolithic, applications at best interacted as peers .

SOA divides an application into a service coordinator . that represents user functionality and service providers that implement the functionality , a service can be reused and shared by multiple composite applications .

Page 6: SOA  Fundamentals

Open system:Consider a web based application for Order processing, allow customers to place order through internet. The Browser for display the information and send information back to web servers. Web server (IIS , Apache etc) for storing the web pages.Order processing application resides in application server (Websphere, oracle weblogic etc) database server: used the read and write data from and to database(Oracle, Db2, MySQL, ADABAS, SQL server )

IBM HTTPServer for OS/390

CICSCICSWebServerWebServerPluginPlugin

CICSCICSTCP/IPTCP/IPlistenerlistener CC

WW

SS

32703270WebWebbridgebridge

3270presentation

logic

W eb-awarepresentation

logic

CICSapplication

CICS region

COMMAREA

W ebBrowser

Directconnection

EXCI

Mainframe system:The Browser for display the information and send information back to application servers/ CICS transaction servers. application server (IBM/Apache HTTP server or CICS transaction servers) for storing the application. Application resides in HTTP server or CICS is responsible for receiving HTTP request and convert to COMMAREA and convert them HTML/XML while sending data back to web browser.

Page 7: SOA  Fundamentals

Separation of Business logic from plumbing logicBusiness service layer for the application ORDER PROCESSingPlumbing layer (managing presentation & data layer)

Presentation layer: web server names and property and management parameters can varyData layer: data server names and property and management parameters can varyAdding existing application to the

serviceAdd invoice system to by creating a adapter

SOA supervisor

Who is in charge?? SOA supervisor Acts like traffic cop, manages end-to-end computer process created by connecting all the other software components together.(maintain service levels) Also, initiates corrective actions in things start to go wrong. (interacts with infrastructure services)

Page 8: SOA  Fundamentals

Breaking order processing application into reusable functions:- order function: customer function payment functionEvery function can be converted to WEB SERVICES.

Web service standards:-XML(eXtensible markup language, WSDL(web service description language), SOAP(simple object access protocol), UDDI (universal description, discovery and integration).

Business process: connect all business services( use as Web services) to create business process.Business application: includes components with supporting web interfaces( Web services). Business process management (BPM): Need some sort of process manager to manage the flow of work between all parts.BPM codifies how business works, links the business functions from existing applications.

Loose Coupling: component service and plumbing are separated so that service itself has no code managing the computing environment.SaaS: Is a model of software deployment where an application is hosted as a service provided to customers across the Internet. By eliminating the need to install and run the application on the customer's own computer, SaaS alleviates the customer's burden of software maintenance, ongoing operation, and support.SaaS Licensing model: Use based licensing model, sold as subscription.

Page 9: SOA  Fundamentals

ESB

SOA supervisor

Enterprise service Bus (ESB):Different pieces of software talk to each other by sending messages.ESB is used to transport messages quickly and reliably between software components.

Work flow engine:Designed to connect a whole business process from end-to-end, flowing work from one individual/process to another until entire BP is carried out.

SOA registry:Its an electronic catalogue where you store information describing what each component does. (publish web sevrices)Acts as a reference that helps them select components and connect them together to create composite applications and build processAlso store How each components connects to other

Service broker:Acts like a needle threading one component to the next in a business process. Uses the information in SOA registry and threads components together for the workflow engine.

Guarantee service: 99.999%Define and measure the service levels for the end-to-end business process.SOA supervisor plays pivotal role.

Page 10: SOA  Fundamentals

XML: the definition language that can accompany information(XSD: defines the template of the information.)SOAP: standard that uses XML to describe messages that are sent from program to program. A program uses SOAP to request a service from another program & then pass the related data.(consists of Envelop, Header, Body and fault)WSDL: A standard based on XML programmers use WSDL to create XML document that describes a Web service and how to access it.(consist of Definition of Post, message(input & Output, data types, program binding)UDDI: It is a framework for describing, discovering and integrating business services via internet. (a public registry)

Page 11: SOA  Fundamentals

• Service broker searches the registry and inform Order processing Adapter about the interface it needs to pass to credit checking services.• As long as the interface is unchanged and registry is up to date. Credit checking application implementation environment change does not make any difference.• Adapter to adapter conversion process happens through Binding.• Late binding: C code require early binding (full code available during the compilation time)• Early binding: Java code does late binding, running interpretively with in JVM or via JIT compiler/JVM

Different kind of adapters:• Web service adapter • Terminal emulation adapter•Document base adapter( EDI, ANSI) • Package application-based adapter• Adapter based on connection standards (CORBA, .NET, JCA)•Middleware adapter (IBM MQ series , BEA message Q)• Transaction engine adapter (CICS, BEA’s Tuxedo)• Data adapter (ODBC, JDBC adapters)

Page 12: SOA  Fundamentals

• Registry contains: •Web service component interface description (XML based interface)• Non-XML based component interface description• Business process definition: service broker uses the information and connects all the components in the business process.• Business process rules: holds policies and rules to be applied when connect to services.• service level description.• Governance rules: content of registry must be subjected a set of management rules.

Page 13: SOA  Fundamentals

• Service broker•Once the user request the order processing application, service broker consults the SOA registry to find out in this business process is allowed to run by checking the service level rules.

•Check any of the 4 main components are running, if not start them. •Check if the interface between the components to be bound to each other.

• Service broker provides other component with the information to connect to Rule engine so that they can execute the rules stored in.

Page 14: SOA  Fundamentals

• What is Inside ESB•Messaging services (support Variety of messaging) •Management service (monitor performance, implement message priority & apply global business rules)

• Interface services ( validate messages against schema definition, support web service standards and non-XLM standards)

• Mediation services: transform messages between formats used by sending & receiving applications.

• Metadata services: transform messages between formats by using metadata definitions held in registry

•Security services: encrypt messages where needed & include standardized security model to authorize, authenticate & audit all ESB activities.

Page 15: SOA  Fundamentals

•IT layers to be supervised:•Business service layer (monitoring service levels, identify fault and failure, fault management, remedial actions, performance modelling and optimization, reporting)•The plumbing layer (response time and customer satisfaction)•The hardware layer. • After service broker threads together and started a business process, send a message to SOA supervisor. •SOA supervisory consults registry to get detail of business process and start the SLA monitoring software.• SLA monitoring utility sends regular performance information to supervisor and in tern it send to some operator console.•If anything goes wrong then it call infrastructure services .

Page 16: SOA  Fundamentals

It pulls of the trick of providing a single identity for user that can be used throughout a computer network, or even across networks.

Old days:Portal accesses the IM software and IM in turn provides all the passwords & access to individual application based on users role. SOA scenario:Connect to business services not applications. So IM software creates a encrypted token containing identity of user, details of the access rights of the user .Service broker delivers this token to all component and each component decrypts and executes it based on the access.

Page 17: SOA  Fundamentals

Weak authentication: password etc

Strong authentication: computer readable cards, biometric reader.

Software fingerprint: Antivirus software have a signature of bad software(Trojan, worms). These signatures are software fingerprints. If these concept is extended for ever good software.Each software component of business services are fingerprinted & stored in signature file.

Service Broker passes the address of each component of the services to authentication software, which then tests it and pass/reject it & service broker then execute the components.

Audit trail is kept using ESB of all messages that are passed

Sometimes we use digital certificates to deal with trusted sources. Its guarantee of authenticity from issue authority, it says the named person and company has this public encryption keys (PKI – public key infrastructure) Certificates are kept in public registry.

Page 18: SOA  Fundamentals

Modelling tools: Rational software modeller

Programming tools: Rational software developer

Application servers: Websphere application servers

DBMS: DB2

CM tools: rational clear case

Testing tools: Rational clear quest

Page 19: SOA  Fundamentals

Lifecycle tool:Iterative model actually involves people from business & technologies but still has a weakness and that is you are still developing the application not a business process.

Getting software developer to think in terms of business process need to follow a new software development lifecycle. Use BPM tool to develop business process.

Page 20: SOA  Fundamentals

BPM tool:Generate the linking code by referring to interfaces published in the SOA registry

Used to build new business functions & publishes their interfaces in the SOA registry

Create instruction to direct a workflow engine.

Store business process map in repository

Page 21: SOA  Fundamentals

Governance:Establish a programming std, establish IT SOA govn best practices, monitoring the life cycle services. Establish a business services policy board made up of corporate, departmental & management representative, ensure proper design of services, identify key implementation issues, monitor SOA services from business perspective.SOA repository:Repository is a full system of records maintaining version controls, where as registry is the real time record of a SOA domain.Information as service:•Data is generally refers to facts.•Information is a collection of these facts in a specific context from which conclusions can be drawn.•To make data more reliable, consistent & trusted use ETL(extract-transform-load) tool.•Information as service is an architectural approach that loosen the tight connection between data & applications to control & shared data enterprise.

Page 22: SOA  Fundamentals

SOA – The final pictureSOA – The final picture

Page 23: SOA  Fundamentals

Thank Thank youyou