SlideShare a Scribd company logo
1 of 37
Download to read offline
Enterprise Service Bus (ESB) and SOA


              Paul Fremantle
             paul@wso2.com
        CTO and Co-Founder, WSO2
           VP, Apache Synapse
SOA – Enterprise Expectations
Standards




         • A set of extensible and composable standards that work together
         • Providing a common, standard, interoperable base to implement
                                       SOA


  SOA & SOAP                 Core Axis: WS with Apache Axis2             3
                                      © WSO2 Inc. 2006
A Sample SOAP Message


<soap:Envelope
  xmlns:soap="http://schemas.xmlsoap.org/soap/envel
  ope/">
 <soap:Header/>
 <soap:Body>
  <getProductDetails
     xmlns="http://warehouse.example.com/ws">
     <productID>827635</productID>
  </getProductDetails>
  </soap:Body>
</soap:Envelope>



 SOA & SOAP         Core Axis: WS with Apache Axis2   4
                             © WSO2 Inc. 2006
Key SOA Standards

Orchestration                     Business Process Execution Language (BPEL)‫‏‬

                SECURE                         RELIABLE                   TRANSACTIONAL




                                                                                                            WS-Policy
                WS-Security                    WS-ReliableMessaging       WS-AtomicTransaction
  Composable




                                                                                                                        WS-MetadataExchange
                     (encrypt, sign, auth)‫‏‬    (ExactlyOnce,              (2 Phase Commit ~XA)‫‏‬
  Quality       WS-SecureConversation          InOrder delivery, ~JMS)‫‏‬
  of                 (~SSL)‫‏‬                                              WS-BusinessActivity
                WS-Trust                                                  (Long running loosely coupled)‫‏‬
  Service
                XACML


                                                  WS-Addressing
   Messaging




                                                                                                            WSDL
                                                         SOAP

   Transport                                  HTTP, TCP, SMTP, UDP
                                                     Wire interaction                                       Metadata

    The Web services platform forms a complete framework for open
    standards enterprise middleware

  SOA & SOAP                              Core Axis: WS with Apache Axis2                                                              5
                                                     © WSO2 Inc. 2006
Other key approaches for SOA

• JMS
  – MQSeries, Tibco, Sonic
  – ActiveMQ, AMQP, Apache QPid
  – Loosely coupled, asynchronous reliable message passing
• REST
  –   A style of using HTTP
  –   Representational State Transfer
  –   Most HTTP applications are NOT “RESTful”
  –   Key characteristics of a RESTful app:
       • Use HTTP Verbs properly
       • Use mime-types properly
       • Use linking everywhere
       • Permanent URLs
Bus concept
Busbar
A common ESB definition

 “Any to any data connectivity and transformation
   (including Web Services) built on an advanced,
   proven, reliable middleware infrastructure”
ESB definition

 “Any to any data connectivity and transformation
   (including Web Services) built on an advanced,
   proven, reliable middleware infrastructure”
 which means
 • Our existing middleware re-branded as an SOA
   platform, with some new web services adapters at
   the edges
Jason Bloomberg, Zapthink

  “You're a software vendor with a product line chock full
  of proprietary, tightly-coupled integration middleware…
  Your software, however, does not lend itself to SOA best
  practices – loose coupling, composable Services, and
  flexibility in general are all capabilities that you failed to
  build             into            your             software…
  What to do? The only option is to slap Web Services
  interfaces on your stuff, call it an Enterprise Service Bus
  (ESB), and sell it as SOA middleware. Hopefully your
  customers won't notice the old wine in new bottles.
  After all, that's what marketing is for!”
My definition of an ESB

“What does it do?” not “How does it do it?”
• Services are independent of the transport and protocol
  used to access them
• Monitors and manages services with minimal intrusion
• Transforms and mediates messages
• Bridges between different message exchange patterns
• Helps implement service governance
• Provides a common backbone to the SOA
Do you need an ESB to do SOA?
Do you need an ESB to do SOA?
SOA can end up as spaghetti




  • Too many point-to-point links
  • Multiple protocols, different qualities of service
  • No clear picture of all available services
An ESB can simplify SOA deployment




                                     Virtualization
                                     Perf Mgmt
                                     •Load balance
                                     •Throttle
                                     Transport
                                      matching
                                     Access control
                                     Message
                                       transform
                                     Logging and
                                      auditability



                                                      Integrated
                                                       Registry/
                                                      Repository
                      Web-based console
ESB Patterns and Anti-Patterns

• How are ESBs used effectively
• How are they abused
   – High-level patterns
      • How the ESB fits into an organization
      • How the ESB fits into an Enterprise Architecture
   – Low-level patterns
      • How the ESB fits into a specific message flow or business problem
The Concentrator Pattern


                        Mashup/Web Application
                             Dashboard



                           Concentrator ESB
         Consistent access, security, logging, audit, monitoring
                        But no transformation



    .NET           CRM            Apache
                                                   C/C++            Data
   service        service          Axis2
                                                  service          service
                                  service
The Federated ESB pattern

                                          Department
                                             ESB


                    Enterprise ESB
                    Routing, Audit
     Department
        ESB


                                     Department
                                        ESB
The mini-ESB pattern

•   Use a lightweight ESB
•   Co-locate on the same hardware/VM as the service
•   Transformation, polling, protocol translation, etc
•   Why?
    – In the control of the team who own the services
    – Keeps the SOA model (ownership) with a simple effective
      approach to exposing services

• What about the embedded ESB model?
    – e.g. embed transformation and logging into your Service
      Hosting platform
Active vs Passive

• The concentrator pattern is effectively passive
   – The ESB reacts to messages/requests from the front-end
• Active ESBs:
   – Poll file systems/FTP/SFTP for updated work
   – Actively call remote services based on timers
   – Integrate passive services
Scenario – Financial Security blocking




   Existing
   System
                                              XML/JMS



    legacy
    flat file                                           Existing
                                                        System
                               WSO2 ESB
                              Split/Iterate
                            DBLookup/Filter
                            Transform to MQ
                                  Send




   WSO2 ESB                    Database
     Poll
 Record->XML
  XML->XML
     Send
 NEW YORK                   LONDON
Push-Me Pull-You
Push-me Pull-you
Anti-Patterns

• Anti-Pattern #1
   – Implement all your business logic in the ESB
   – Why not?
      • Mixing Infrastructure logic and Business Logic
      • Maintainability
      • Tooling and Skills
• Anti-Pattern #2
   – Apply waterfall and application deployment approaches to
     the ESB
      • Long project cycles
      • No iterative approach
   – Why not?
      • Lose all flexibility and agility
      • Once the ESB becomes a static, code-driven system then you would
        be better off updating your applications
Anti-Pattern #3

• “Big Brother”
   – The ESB is hosted, managed and controlled by a central IT
     team
   – Because of organizational issues using the ESB is complex:
      • e.g.
          – It takes months of meetings to get access
          – The Central IT team is trying to recoup the investment and internally
            charges $000/year to use the ESB
          – The central IT deployment model holds up users
   – Departments and divisions actually sneak behind the ESB
      • Set up peer-to-peer communications
      • Avoid the ESB at all costs
The biggest Anti-Pattern of all

• Use an ESB because:
   – You heard it was a good idea
   – The salesman told you that you need one (over a nice
     dinner)
   – You need a new TLA on your resume/CV
   – Its an excuse to spend several months learning and going to
     conferences
ESB Market

• Proprietary
  – IBM WebSphere
  – Oracle/BEA
  – Tibco
• Open Source
  – Fuse/ServiceMix
  – MuleSource/Mule
  – WSO2 ESB/Synapse
Core model of the ESB

• Two main approaches
  – “Proxy” approach
     • Messages come into a proxy
        – Proxy = { inSequence, targetEndpoint, outSequence, faultSequence}
        – Sequence = { ordered list of mediators }
        – Mediator = Unit of function


  – Rule/Policy based approach
     • All messages come to a central sequence
        – Sequence categorizes and routes requests based on the message
     • Known in Synapse as the “main” sequence
Sequence concept
Built-in Mediators

   – Drop (end)                     –   Property
   – Sequence (call another         –   Header
     sequence)                      –   Validate
   – Clone                          –   DBReport
   – Callout (call a WS)            –   DBLookup
   – Filter (if-then-else)          –   Class mediator
   – Switch                         –   Command Mediator
   – Iterate                        –   Script
   – Aggregate                      –   Spring
   – Send                           –   Throttle
   – Router                         –   Cache
   – Smooks (transform library)     –   XSLT
   – Rule (use a Rules engine)      –   XQuery
   – Entitlement (validate access
     against a XACML server)
Understanding performance

• Performance of an ESB can be critical
• Key Measurements are
  – Throughput (can the ESB cope with the required load)
  – Latency (does the ESB add unacceptable time)
  – Concurrency (does the ESB run out of threads)

• Two key technologies
  – Streaming and Streaming XML
     • Ability to operate in constant memory and handle XML without
       building a full tree
  – Non-blocking IO
     • Ability to manage large numbers of connections with constant
       thread pool
Case Study

• Mobile phone ringtone/media provider
• Every request goes via the ESB
  – Performance and Streaming are critical
  – Streaming and non-blocking are key
• Continuous Availability
  – Ability to upgrade the system live
  – Without losing transactions
  – Under load
Governance and ESBs

• Governance is a key issue for SOA
• Governance is fundamentally about ensuring standards
  around Enterprise IT
  – Policies
  – People
  – Processes
• ESBs can be very important for this
  – Policy Enforcement Point
  – Monitoring Point
  – Central Access Point for enterprise services
Summary

• We have
  –   Identified how ESBs fit into a Service Oriented Architecture
  –   Discussed when to use an ESB and when not to
  –   Looked at ESB patterns and anti-patterns
  –   Covered some simple ESB approaches
  –   Investigated how ESBs can fit into EDA
Questions

More Related Content

What's hot

OPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATIONOPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATION
SUMIT KUMAR
 
Review of Information Technology Function Critical Capability Models
Review of Information Technology Function Critical Capability ModelsReview of Information Technology Function Critical Capability Models
Review of Information Technology Function Critical Capability Models
Alan McSweeney
 

What's hot (20)

Oracle Cloud Infrastructure
Oracle Cloud InfrastructureOracle Cloud Infrastructure
Oracle Cloud Infrastructure
 
Oracle EPM/BI Overview
Oracle EPM/BI OverviewOracle EPM/BI Overview
Oracle EPM/BI Overview
 
Oracle Cloud Reference Architecture
Oracle Cloud Reference ArchitectureOracle Cloud Reference Architecture
Oracle Cloud Reference Architecture
 
Microservice Architecture
Microservice ArchitectureMicroservice Architecture
Microservice Architecture
 
Introducción a Amazon EKS
Introducción a Amazon EKSIntroducción a Amazon EKS
Introducción a Amazon EKS
 
AWS Overview
AWS Overview AWS Overview
AWS Overview
 
OCI Overview
OCI OverviewOCI Overview
OCI Overview
 
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | EdurekaITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
 
OPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATIONOPEN TEXT ADMINISTRATION
OPEN TEXT ADMINISTRATION
 
Oracle Cloud Reference Architecture
Oracle Cloud Reference ArchitectureOracle Cloud Reference Architecture
Oracle Cloud Reference Architecture
 
Cloud architecture with the ArchiMate Language
Cloud architecture with the ArchiMate LanguageCloud architecture with the ArchiMate Language
Cloud architecture with the ArchiMate Language
 
Application rationalization- Invest today to save tomorrow!
Application rationalization- Invest today to save tomorrow!Application rationalization- Invest today to save tomorrow!
Application rationalization- Invest today to save tomorrow!
 
Review of Information Technology Function Critical Capability Models
Review of Information Technology Function Critical Capability ModelsReview of Information Technology Function Critical Capability Models
Review of Information Technology Function Critical Capability Models
 
IMPLEMENTATION BEST PRACTICES Sep 22.pdf
IMPLEMENTATION BEST PRACTICES Sep 22.pdfIMPLEMENTATION BEST PRACTICES Sep 22.pdf
IMPLEMENTATION BEST PRACTICES Sep 22.pdf
 
Using the IVI (Innovation Value Institute) IT CMF (IT Capability Maturity Fra...
Using the IVI (Innovation Value Institute) IT CMF (IT Capability Maturity Fra...Using the IVI (Innovation Value Institute) IT CMF (IT Capability Maturity Fra...
Using the IVI (Innovation Value Institute) IT CMF (IT Capability Maturity Fra...
 
The business value of Microsoft Azure and cloud transformation
The business value of Microsoft Azure and cloud transformationThe business value of Microsoft Azure and cloud transformation
The business value of Microsoft Azure and cloud transformation
 
Well Architected Framework - Data
Well Architected Framework - Data Well Architected Framework - Data
Well Architected Framework - Data
 
Togaf 9.2 Introduction
Togaf 9.2 IntroductionTogaf 9.2 Introduction
Togaf 9.2 Introduction
 
SaaS Architecture Past and Present
SaaS Architecture Past and PresentSaaS Architecture Past and Present
SaaS Architecture Past and Present
 
Azure API Management
Azure API ManagementAzure API Management
Azure API Management
 

Viewers also liked

Enterprise service bus(esb)
Enterprise service bus(esb)Enterprise service bus(esb)
Enterprise service bus(esb)
prksh89
 
Capgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FRCapgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FR
Skander Guetari
 
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
IIBA_Latvia_Chapter
 
Service Oriented Enterprise Architecture
Service Oriented Enterprise ArchitectureService Oriented Enterprise Architecture
Service Oriented Enterprise Architecture
Yan Zhao
 
Security Patterns with WSO2 ESB
Security Patterns with WSO2 ESBSecurity Patterns with WSO2 ESB
Security Patterns with WSO2 ESB
WSO2
 
SOA in banking issues and remedies
SOA in banking   issues and remediesSOA in banking   issues and remedies
SOA in banking issues and remedies
Debajani Mohanty
 

Viewers also liked (19)

ESB What it is?
ESB What it is?ESB What it is?
ESB What it is?
 
Enterprise service bus(esb)
Enterprise service bus(esb)Enterprise service bus(esb)
Enterprise service bus(esb)
 
Why Enterprise Service Bus (ESB)
Why Enterprise Service Bus (ESB)Why Enterprise Service Bus (ESB)
Why Enterprise Service Bus (ESB)
 
ESB Concepts
ESB ConceptsESB Concepts
ESB Concepts
 
Introduction to Enterprise Service Bus
Introduction to Enterprise Service BusIntroduction to Enterprise Service Bus
Introduction to Enterprise Service Bus
 
Introduction to Enterprise Service Bus
Introduction to Enterprise Service BusIntroduction to Enterprise Service Bus
Introduction to Enterprise Service Bus
 
Capgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FRCapgemini Offre Data Services - Brochure FR
Capgemini Offre Data Services - Brochure FR
 
Enterprise Service Bus
Enterprise Service BusEnterprise Service Bus
Enterprise Service Bus
 
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
'A View-Based Approach to Quality of Service Modelling in Service-Oriented En...
 
Service Oriented Enterprise Architecture
Service Oriented Enterprise ArchitectureService Oriented Enterprise Architecture
Service Oriented Enterprise Architecture
 
ESB
ESBESB
ESB
 
Security Patterns with WSO2 ESB
Security Patterns with WSO2 ESBSecurity Patterns with WSO2 ESB
Security Patterns with WSO2 ESB
 
SOA in banking issues and remedies
SOA in banking   issues and remediesSOA in banking   issues and remedies
SOA in banking issues and remedies
 
Sessie 17 gamification
Sessie 17 gamificationSessie 17 gamification
Sessie 17 gamification
 
WSO2-ESB - The backbone of Enterprise Integration
WSO2-ESB - The backbone of Enterprise IntegrationWSO2-ESB - The backbone of Enterprise Integration
WSO2-ESB - The backbone of Enterprise Integration
 
SOA in Financial Services
SOA in Financial ServicesSOA in Financial Services
SOA in Financial Services
 
SOA & ESB Presentation
SOA & ESB PresentationSOA & ESB Presentation
SOA & ESB Presentation
 
Getting started with SAP PI/PO an overview presentation
Getting started with SAP PI/PO an overview presentationGetting started with SAP PI/PO an overview presentation
Getting started with SAP PI/PO an overview presentation
 
SAP PI and SOA Overview
SAP PI and SOA OverviewSAP PI and SOA Overview
SAP PI and SOA Overview
 

Similar to ESB and SOA

WSO2 ESB and SOA
WSO2 ESB and SOAWSO2 ESB and SOA
WSO2 ESB and SOA
WSO2
 
Ss Wrap Up Session 13 Aug
Ss Wrap Up Session 13 AugSs Wrap Up Session 13 Aug
Ss Wrap Up Session 13 Aug
WSO2
 
Webbinar slides
Webbinar slidesWebbinar slides
Webbinar slides
WSO2
 
Ss Esb
Ss EsbSs Esb
Ss Esb
WSO2
 
Ss Esb
Ss EsbSs Esb
Ss Esb
WSO2
 
Enterprise Integration with the WSO2 ESB
Enterprise Integration with the WSO2 ESB Enterprise Integration with the WSO2 ESB
Enterprise Integration with the WSO2 ESB
WSO2
 
Enterprise Service Bus Features and Advantages.docx
Enterprise Service Bus Features and Advantages.docxEnterprise Service Bus Features and Advantages.docx
Enterprise Service Bus Features and Advantages.docx
cirek63365
 
ESB and Mule ESB solution
ESB and Mule ESB solutionESB and Mule ESB solution
ESB and Mule ESB solution
Swati Bansal
 
Esb buyers guide_final
Esb buyers guide_finalEsb buyers guide_final
Esb buyers guide_final
WSO2
 
A Buyers Guide to an Enterprise Service Bus (ESB)
A Buyers Guide to an Enterprise Service Bus (ESB)A Buyers Guide to an Enterprise Service Bus (ESB)
A Buyers Guide to an Enterprise Service Bus (ESB)
WSO2
 
The Intricacies Of Enterprise Integration Soa Vs Esb
The Intricacies Of Enterprise Integration   Soa Vs EsbThe Intricacies Of Enterprise Integration   Soa Vs Esb
The Intricacies Of Enterprise Integration Soa Vs Esb
rsnarayanan
 

Similar to ESB and SOA (20)

WSO2 ESB and SOA
WSO2 ESB and SOAWSO2 ESB and SOA
WSO2 ESB and SOA
 
Tactics Esb Implementation
Tactics Esb ImplementationTactics Esb Implementation
Tactics Esb Implementation
 
Wso2 esb
Wso2 esbWso2 esb
Wso2 esb
 
Wso2 esb
Wso2 esbWso2 esb
Wso2 esb
 
Ss Wrap Up Session 13 Aug
Ss Wrap Up Session 13 AugSs Wrap Up Session 13 Aug
Ss Wrap Up Session 13 Aug
 
SOA Summer School: Best of SOA Summer School – Encore Session
SOA Summer School: Best of SOA Summer School – Encore Session SOA Summer School: Best of SOA Summer School – Encore Session
SOA Summer School: Best of SOA Summer School – Encore Session
 
Webbinar slides
Webbinar slidesWebbinar slides
Webbinar slides
 
Ss Esb
Ss EsbSs Esb
Ss Esb
 
Ss Esb
Ss EsbSs Esb
Ss Esb
 
Service Oriented Architecture (SOA) [2/5] : Enterprise Service Bus
Service Oriented Architecture (SOA) [2/5] : Enterprise Service BusService Oriented Architecture (SOA) [2/5] : Enterprise Service Bus
Service Oriented Architecture (SOA) [2/5] : Enterprise Service Bus
 
Enterprise Integration with the WSO2 ESB
Enterprise Integration with the WSO2 ESB Enterprise Integration with the WSO2 ESB
Enterprise Integration with the WSO2 ESB
 
Enterprise Service Bus and JBI
Enterprise Service Bus and JBIEnterprise Service Bus and JBI
Enterprise Service Bus and JBI
 
Enterprise Service Bus Features and Advantages.docx
Enterprise Service Bus Features and Advantages.docxEnterprise Service Bus Features and Advantages.docx
Enterprise Service Bus Features and Advantages.docx
 
Mule esb demo
Mule esb demoMule esb demo
Mule esb demo
 
Enterprise service bus
Enterprise service busEnterprise service bus
Enterprise service bus
 
ESB and Mule ESB solution
ESB and Mule ESB solutionESB and Mule ESB solution
ESB and Mule ESB solution
 
Esb buyers guide_final
Esb buyers guide_finalEsb buyers guide_final
Esb buyers guide_final
 
A Buyers Guide to an Enterprise Service Bus (ESB)
A Buyers Guide to an Enterprise Service Bus (ESB)A Buyers Guide to an Enterprise Service Bus (ESB)
A Buyers Guide to an Enterprise Service Bus (ESB)
 
The Intricacies Of Enterprise Integration Soa Vs Esb
The Intricacies Of Enterprise Integration   Soa Vs EsbThe Intricacies Of Enterprise Integration   Soa Vs Esb
The Intricacies Of Enterprise Integration Soa Vs Esb
 
Do We Need Esb Any More
Do We Need Esb Any MoreDo We Need Esb Any More
Do We Need Esb Any More
 

More from WSO2

More from WSO2 (20)

Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2Driving Innovation: Scania's API Revolution with WSO2
Driving Innovation: Scania's API Revolution with WSO2
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
WSO2CON 2024 - Unlocking the Identity: Embracing CIAM 2.0 for a Competitive A...
 
WSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AIWSO2CON 2024 Slides - Unlocking Value with AI
WSO2CON 2024 Slides - Unlocking Value with AI
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
WSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the CloudWSO2CON 2024 - Elevating the Integration Game to the Cloud
WSO2CON 2024 - Elevating the Integration Game to the Cloud
 
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & InnovationWSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
WSO2CON 2024 - OSU & WSO2: A Decade Journey in Integration & Innovation
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
WSO2CON 2024 - IoT Needs CIAM: The Importance of Centralized IAM in a Growing...
 
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and ApplicationsWSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
WSO2CON 2024 - Architecting AI in the Enterprise: APIs and Applications
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
WSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital BusinessesWSO2CON 2024 - Software Engineering for Digital Businesses
WSO2CON 2024 - Software Engineering for Digital Businesses
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
WSO2CON 2024 - Not Just Microservices: Rightsize Your Services!
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

ESB and SOA

  • 1. Enterprise Service Bus (ESB) and SOA Paul Fremantle paul@wso2.com CTO and Co-Founder, WSO2 VP, Apache Synapse
  • 2. SOA – Enterprise Expectations
  • 3. Standards • A set of extensible and composable standards that work together • Providing a common, standard, interoperable base to implement SOA SOA & SOAP Core Axis: WS with Apache Axis2 3 © WSO2 Inc. 2006
  • 4. A Sample SOAP Message <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envel ope/"> <soap:Header/> <soap:Body> <getProductDetails xmlns="http://warehouse.example.com/ws"> <productID>827635</productID> </getProductDetails> </soap:Body> </soap:Envelope> SOA & SOAP Core Axis: WS with Apache Axis2 4 © WSO2 Inc. 2006
  • 5. Key SOA Standards Orchestration Business Process Execution Language (BPEL)‫‏‬ SECURE RELIABLE TRANSACTIONAL WS-Policy WS-Security WS-ReliableMessaging WS-AtomicTransaction Composable WS-MetadataExchange (encrypt, sign, auth)‫‏‬ (ExactlyOnce, (2 Phase Commit ~XA)‫‏‬ Quality WS-SecureConversation InOrder delivery, ~JMS)‫‏‬ of (~SSL)‫‏‬ WS-BusinessActivity WS-Trust (Long running loosely coupled)‫‏‬ Service XACML WS-Addressing Messaging WSDL SOAP Transport HTTP, TCP, SMTP, UDP Wire interaction Metadata The Web services platform forms a complete framework for open standards enterprise middleware SOA & SOAP Core Axis: WS with Apache Axis2 5 © WSO2 Inc. 2006
  • 6. Other key approaches for SOA • JMS – MQSeries, Tibco, Sonic – ActiveMQ, AMQP, Apache QPid – Loosely coupled, asynchronous reliable message passing • REST – A style of using HTTP – Representational State Transfer – Most HTTP applications are NOT “RESTful” – Key characteristics of a RESTful app: • Use HTTP Verbs properly • Use mime-types properly • Use linking everywhere • Permanent URLs
  • 9. A common ESB definition “Any to any data connectivity and transformation (including Web Services) built on an advanced, proven, reliable middleware infrastructure”
  • 10. ESB definition “Any to any data connectivity and transformation (including Web Services) built on an advanced, proven, reliable middleware infrastructure” which means • Our existing middleware re-branded as an SOA platform, with some new web services adapters at the edges
  • 11. Jason Bloomberg, Zapthink “You're a software vendor with a product line chock full of proprietary, tightly-coupled integration middleware… Your software, however, does not lend itself to SOA best practices – loose coupling, composable Services, and flexibility in general are all capabilities that you failed to build into your software… What to do? The only option is to slap Web Services interfaces on your stuff, call it an Enterprise Service Bus (ESB), and sell it as SOA middleware. Hopefully your customers won't notice the old wine in new bottles. After all, that's what marketing is for!”
  • 12. My definition of an ESB “What does it do?” not “How does it do it?” • Services are independent of the transport and protocol used to access them • Monitors and manages services with minimal intrusion • Transforms and mediates messages • Bridges between different message exchange patterns • Helps implement service governance • Provides a common backbone to the SOA
  • 13. Do you need an ESB to do SOA?
  • 14. Do you need an ESB to do SOA?
  • 15. SOA can end up as spaghetti • Too many point-to-point links • Multiple protocols, different qualities of service • No clear picture of all available services
  • 16. An ESB can simplify SOA deployment Virtualization Perf Mgmt •Load balance •Throttle Transport matching Access control Message transform Logging and auditability Integrated Registry/ Repository Web-based console
  • 17. ESB Patterns and Anti-Patterns • How are ESBs used effectively • How are they abused – High-level patterns • How the ESB fits into an organization • How the ESB fits into an Enterprise Architecture – Low-level patterns • How the ESB fits into a specific message flow or business problem
  • 18. The Concentrator Pattern Mashup/Web Application Dashboard Concentrator ESB Consistent access, security, logging, audit, monitoring But no transformation .NET CRM Apache C/C++ Data service service Axis2 service service service
  • 19. The Federated ESB pattern Department ESB Enterprise ESB Routing, Audit Department ESB Department ESB
  • 20. The mini-ESB pattern • Use a lightweight ESB • Co-locate on the same hardware/VM as the service • Transformation, polling, protocol translation, etc • Why? – In the control of the team who own the services – Keeps the SOA model (ownership) with a simple effective approach to exposing services • What about the embedded ESB model? – e.g. embed transformation and logging into your Service Hosting platform
  • 21. Active vs Passive • The concentrator pattern is effectively passive – The ESB reacts to messages/requests from the front-end • Active ESBs: – Poll file systems/FTP/SFTP for updated work – Actively call remote services based on timers – Integrate passive services
  • 22. Scenario – Financial Security blocking Existing System XML/JMS legacy flat file Existing System WSO2 ESB Split/Iterate DBLookup/Filter Transform to MQ Send WSO2 ESB Database Poll Record->XML XML->XML Send NEW YORK LONDON
  • 25. Anti-Patterns • Anti-Pattern #1 – Implement all your business logic in the ESB – Why not? • Mixing Infrastructure logic and Business Logic • Maintainability • Tooling and Skills • Anti-Pattern #2 – Apply waterfall and application deployment approaches to the ESB • Long project cycles • No iterative approach – Why not? • Lose all flexibility and agility • Once the ESB becomes a static, code-driven system then you would be better off updating your applications
  • 26. Anti-Pattern #3 • “Big Brother” – The ESB is hosted, managed and controlled by a central IT team – Because of organizational issues using the ESB is complex: • e.g. – It takes months of meetings to get access – The Central IT team is trying to recoup the investment and internally charges $000/year to use the ESB – The central IT deployment model holds up users – Departments and divisions actually sneak behind the ESB • Set up peer-to-peer communications • Avoid the ESB at all costs
  • 27. The biggest Anti-Pattern of all • Use an ESB because: – You heard it was a good idea – The salesman told you that you need one (over a nice dinner) – You need a new TLA on your resume/CV – Its an excuse to spend several months learning and going to conferences
  • 28. ESB Market • Proprietary – IBM WebSphere – Oracle/BEA – Tibco • Open Source – Fuse/ServiceMix – MuleSource/Mule – WSO2 ESB/Synapse
  • 29.
  • 30. Core model of the ESB • Two main approaches – “Proxy” approach • Messages come into a proxy – Proxy = { inSequence, targetEndpoint, outSequence, faultSequence} – Sequence = { ordered list of mediators } – Mediator = Unit of function – Rule/Policy based approach • All messages come to a central sequence – Sequence categorizes and routes requests based on the message • Known in Synapse as the “main” sequence
  • 32. Built-in Mediators – Drop (end) – Property – Sequence (call another – Header sequence) – Validate – Clone – DBReport – Callout (call a WS) – DBLookup – Filter (if-then-else) – Class mediator – Switch – Command Mediator – Iterate – Script – Aggregate – Spring – Send – Throttle – Router – Cache – Smooks (transform library) – XSLT – Rule (use a Rules engine) – XQuery – Entitlement (validate access against a XACML server)
  • 33. Understanding performance • Performance of an ESB can be critical • Key Measurements are – Throughput (can the ESB cope with the required load) – Latency (does the ESB add unacceptable time) – Concurrency (does the ESB run out of threads) • Two key technologies – Streaming and Streaming XML • Ability to operate in constant memory and handle XML without building a full tree – Non-blocking IO • Ability to manage large numbers of connections with constant thread pool
  • 34. Case Study • Mobile phone ringtone/media provider • Every request goes via the ESB – Performance and Streaming are critical – Streaming and non-blocking are key • Continuous Availability – Ability to upgrade the system live – Without losing transactions – Under load
  • 35. Governance and ESBs • Governance is a key issue for SOA • Governance is fundamentally about ensuring standards around Enterprise IT – Policies – People – Processes • ESBs can be very important for this – Policy Enforcement Point – Monitoring Point – Central Access Point for enterprise services
  • 36. Summary • We have – Identified how ESBs fit into a Service Oriented Architecture – Discussed when to use an ESB and when not to – Looked at ESB patterns and anti-patterns – Covered some simple ESB approaches – Investigated how ESBs can fit into EDA