SlideShare a Scribd company logo
Global Scale ESB with Mule

      Andrew D Kennedy
      grkvlt@apache.org
         March 2011
Who Am I
•   Enterprise Java Developer
•   Apache Qpid Committer
•   Previously Security Engineer
•   Over 15 Years Java Experience
•   Worked with various Investment Banks
•   Interested in Data Mining and
    Visualisation
This Presentation
•   What is an ESB
•   What is Mule
•   Mule Applications
•   Mule Scalability
What is an ESB
• Enterprise Service Bus
• SOA
  – Service Oriented Architecture
• SEDA
  – Staged Event-Driven Architecture
• EIP
  – Enterprise Integration Patterns
Service Oriented Architecture
• Services
  – Shared Business Functions
• Decoupling
  – Local and Remote Services
• Distributed Applications
• Directory and Discovery
EIP
• Similar to Design Patterns
    – Gang of Four Book
•   Shared Terminology
•   Names for Common Concepts
•   Allows Discussion
•   Simplifies Design
(Some) Common Patterns
•   Aggregator (268)
•   Channel Adapter (127)
•   Content Based Router (230)
•   Dead Letter Channel (119)
•   Selective Consumer (515)
•   Message Translator (85)
•   Guaranteed Delivery (122)
What is Mule
• Open Source Project
• MuleSoft
  –   Mule Forge
  –   Mule Enterprise
  –   Mule MQ
  –   Tcat Server
• 2.x - Legacy Applications
• 3.1.1 - Current Community Release
• 3.2.0 - Latest Developer Build
Transports
• Carry Messages between Services
• Connector
  – Configuration
  – Threading
  – Retry
• Endpoint
  – Connects Services
  – Transform Messages
  – Transaction Boundary
Endpoint Examples
<file:inbound-endpoint path="/esb/in"
   comparator="org.mule.transport.file.comparator.Older
   FirstComparator" reverseOrder="true” />
<jetty:endpoint name="server" host="localhost"
   port="60203" path="services/Lookup" />
<imaps:endpoint name=”mail" host="localhost"
   password=”hunter2" port="123" user=”adk"/>
<quartz:endpoint name=”batch" repeatCount="10"
   repeatInterval=”60000" jobName="job"/>
<jms:inbound-endpoint queue="test.queue"/>
VM
• Communication within VM
• Synchronous or Asynchronous
• Transactional
<vm:connector name="async"
  queueEvents="true” />
<vm:inbound-endpoint path="in"
  connector-ref="async"/>
JMS
• Queues
• Topics
• Request-Response
<jms:connector name=”jms" specification="1.1"
  connectionFactory-ref=”qpid"
  username=”adk" password=”hunter2” />
<jms:outbound-endpoint queue=”audit” />
<jms:inbound-endpoint topic=”uk.*.gbp” />
Web Services
• HTTP and HTTPS
  – Custom Data Formats
• CXF
  – JAX-WS
  – SOAP
  – WSDL
• REST
CXF JAX-WS
<inbound-endpoint
   address="http://localhost:63081/hello" />
<cxf:jaxws-service
   serviceClass="org.example.ServiceImpl” />
<cxf:jaxws-client clientClass=”com.example.Client”
   wsdlPort="SoapPort”
   wsdlLocation="classpath:/save.wsdl”
   operation=”output” />
<outbound-endpoint
   address="http://www.example.com/services/save” />
File System
• Poll Directory for Input
<file:connector name="input" fileAge="500"
   autoDelete="true" pollingFrequency="100"
   moveToDirectory="/backup"
   moveToPattern="#[header:originalFilename].backup”
   />
• Write Output File
<file:connector name="output" outputAppend="true"
   outputPattern="#[function:datestamp]-
   #[header:originalFilename]" />
Other Transports
•   AJAX              •   TCP
•   jBPM              •   UDP
•   JDBC              •   FTP
•   Quartz            •   POP3
•   STDIO             •   IMAP
•   RMI               •   SMTP
•   Servlet           •   XMPP
Transformers
•   Change message content
•   XML to POJO via JAXB
•   Applied to endpoints
•   Efficient mechanism for processing
•   Similar to AOP
Transformer Types
•   Encryption and Decryption
•   ByteArray to Object
•   Expression Evaluator
•   XML and JSON
•   Compression
•   Encoding and Decoding
Filtering
• Apply to endpoints
• Payload Type
• Expression
    – XPath, OGNL, JXPath
•   RegEx
•   Wildcard
•   Message Property
•   Logical Operators
    – And, Or, Not
Filtering Examples
<and-filter>
    <message-property-filter
        pattern="JMSCorrelationID=1234567890"/>
    <message-property-filter pattern="JMSReplyTo=null"/>
</and-filter>
<or-filter>
    <payload-type-filter expectedType="java.lang.String"/>
    <payload-type-filter expectedType="java.lang.StringBuffer"/>
</or-filter>
<not-filter>
    <wildcard-filter pattern=”com.example.*"/>
</not-filter>
Routers
•   Control message flow at endpoints
•   Used to link services
•   Both inbound and outbound
•   Specify Filtering and Transformations
Selective Consumer
<inbound>
    <selective-consumer-router>
        <mulexml:jxpath-filter
          expression="msg/header/resultcode =
          'success'"/>
    </selective-consumer-router>
    <forwarding-catch-all-strategy>
        <jms:endpoint topic="error.topic"/>
    </forwarding-catch-all-strategy>
</inbound>
Idempotent Filter
<inbound>
    <idempotent-receiver-router
      idExpression="#[message:id]-#[header:foo]">
        <simple-text-file-store directory="./idempotent” />
    </idempotent-receiver-router>
</inbound>
Filtering Router
<outbound>
     <forwarding-catch-all-strategy>
            <jms:outbound-endpoint queue="error.queue"/>
     </forwarding-catch-all-strategy>
     <filtering-router>
            <smtp:outbound-endpoint to=”adk@example.com"/>
            <payload-type-filter expectedType="java.lang.Exception"/>
     </filtering-router>
     <filtering-router>
            <jms:outbound-endpoint queue="string.queue"/>
            <and-filter>
                 <payload-type-filter expectedType="java.lang.String"/>
                 <regex-filter pattern="the quick brown (.*)"/>
            </and-filter>
     </filtering-router>
</outbound>
Services
• Combine Endpoints, Routers and
  Components
• Mule 2.0 idiom
• Replaced with Flows and Patterns
  – Simpler to use and configure
  – Some features still not available
Flows
• Mule 3 idiom
• Inbound endpoint
• Message processors
  – Chained execution
  – Components
• Outbound endpoint for one-way
• Response for request-response
Components
• Carry out actions
• Business logic in a flow
• Simple components
  – Logging
  – Passthrough
  – Testing
• Spring or POJO
• Web services
Message Processors
•   Aggregator and Splitter
•   Message Filters
•   Recipient List
•   Resequencer
•   Round Robin
•   Wire Tap
Example Flow
<flow name=”OrderFlow">
      <file:inbound-endpoint path="/incoming">
              <file:filename-filter name=”order-*.xml"/>
      </file:inbound-endpoint>
      <xml:xslt-transformer xsl-file=”order-transform.xsl"/>
      <splitter expression="xpath://order"/>
      <!-- The following message processors will be invoked for each order in the xml file -->
      <expression-filter expression="xpath://order[@type='book']"/>
      <component class=”com.example.BookOrderProcessor"/>
      <smtp:outbound-endpoint subject="Order Confirmation" address="#[variable:email]"/>
      <jdbc:outbound-endpoint ref=“saveOrder"/ >
      <default-exception-strategy>
              <jms:outbound-endpoint queue="failedOrders"/>
      </default-exception-strategy>
</flow>
JMS Flow
<flow name=”JmsFlow">
      <jms:inbound-endpoint queue="in">
            <jms:transaction action="ALWAYS_BEGIN" />
      </jms:inbound-endpoint>
      <component class="com.example.ProcessMessage" />
      <jms:outbound-endpoint queue="out">
            <jms:transaction action="ALWAYS_JOIN" />
      </jms:outbound-endpoint>
      <default-exception-strategy>
            <commit-transaction exception-pattern="com.example.ExampleException” />
            <jms:outbound-endpoint queue="dead.letter">
                  <jms:transaction action="JOIN_IF_POSSIBLE" />
            </jms:outbound-endpoint>
      </default-exception-strategy>
</flow>
Complex Flow
<flow name=”TwitterFlow”>
      <poll frequency="5000">
             <twitter:search query=”example" />
      </poll>
      <splitter evaluator="json" expression="results" />
      <idempotent-message-filter idExpression="#[json:id]" />
      <enricher target="#[variable:userDescription]" source="#[json:description]">
             <twitter:user userId="#[json:from_user]" />
      </enricher>
      <salesforce:create type="Opportunity">
             <salesforce:sObject>
                   <salesforce:field key="Name" value="#[json:from_user]" />
                   <salesforce:field key="Description" value="#[variable:userDescription]" />
             </salesforce:sObject>
      </salesforce:create>
</flow>
Patterns
• Specific integration Features
• Simple Service
  – Exposes Components as Web Services
• Web Service Proxy
• Bridge
  – Message Adapter and Transformer
• Validator
  – Validates inbound messages synchronously
  – Processes asynchronously
Questions?
Mule Application

Mule 2 Application Design
Mule Scalability
• Global Enterprises
• Performance
• Multiple Data Locations, Sources,
  Destinations and Owners
• Services
  – Software as a Service
  – Infrastructure as a Service
  – Platform as a Service
Problems
• Performance
  –   Computation
  –   Latency
  –   Throughput
  –   Infrastructure
• Integration
  – Adding Functionality
  – Collecting Data
• Security and Identity
• Transactions
Transactions
• ACID
  – Atomicity, Consistency, Isolation, Durability
• Easy on one system
• Hard with distributed systems
  – Pick your boundaries
• Robust failure handling
Computation
• Parallel Processing
• Asynchronous Tasks
• Orchestration
  – Workflow
• Pooling and Threading
• More and faster is better
Bottlenecks
• Bandwidth
  – Networking
  – Latency and Throughput
• External service providers
• Data sources
  – Database
• Messaging
Messaging Backbone
• Sets scalability limits
• Message flow through system
• Infrastructure choices
  –   JMS
  –   Web based
  –   AMQP
  –   XMPP
  –   TIBCO
• Hardware solutions available
Clustering
• Various external components
  – Database
  – Messaging
  – Web Services
• Business logic components
  – Terracotta
  – GigaSpaces XAP
Load Balancing
• Web Services
• Software
• Hardware
  – XML Transformation
  – SSL
• Round Robin
Questions?

Thanks for Listening
Andrew D Kennedy
grkvlt@apache.org
Ad

More Related Content

What's hot (19)

Mule ESB
Mule ESBMule ESB
Mule ESB
niravn
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
javeed_mhd
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
mdfkhan625
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
Khasim Cise
 
Mule overview-ppt
Mule overview-pptMule overview-ppt
Mule overview-ppt
Prabhat gangwar
 
A Workhorse Named Mule
A Workhorse Named MuleA Workhorse Named Mule
A Workhorse Named Mule
David Dossot
 
Introduction to es bs mule
Introduction to es bs   muleIntroduction to es bs   mule
Introduction to es bs mule
Achyuta Lakshmi
 
Database component in mule
Database component in muleDatabase component in mule
Database component in mule
Rajkattamuri
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo
javeed_mhd
 
Mule soa
Mule soaMule soa
Mule soa
D.Rajesh Kumar
 
Mule soft esb – data validation best practices
Mule soft esb – data validation best practicesMule soft esb – data validation best practices
Mule soft esb – data validation best practices
alfa
 
Mule soa
Mule soaMule soa
Mule soa
Son Nguyen
 
Mule integration
Mule integrationMule integration
Mule integration
Son Nguyen
 
Mule agent notifications
Mule agent notificationsMule agent notifications
Mule agent notifications
Shanky Gupta
 
Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
Praneethchampion
 
Mule and web services
Mule and web servicesMule and web services
Mule and web services
Manav Prasad
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Praneethchampion
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
Anand kalla
 
Mulesoft idempotent Message Filter
Mulesoft idempotent Message FilterMulesoft idempotent Message Filter
Mulesoft idempotent Message Filter
kumar gaurav
 
Mule ESB
Mule ESBMule ESB
Mule ESB
niravn
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
javeed_mhd
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
mdfkhan625
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
Khasim Cise
 
A Workhorse Named Mule
A Workhorse Named MuleA Workhorse Named Mule
A Workhorse Named Mule
David Dossot
 
Introduction to es bs mule
Introduction to es bs   muleIntroduction to es bs   mule
Introduction to es bs mule
Achyuta Lakshmi
 
Database component in mule
Database component in muleDatabase component in mule
Database component in mule
Rajkattamuri
 
Junit in mule demo
Junit in mule demo Junit in mule demo
Junit in mule demo
javeed_mhd
 
Mule soft esb – data validation best practices
Mule soft esb – data validation best practicesMule soft esb – data validation best practices
Mule soft esb – data validation best practices
alfa
 
Mule integration
Mule integrationMule integration
Mule integration
Son Nguyen
 
Mule agent notifications
Mule agent notificationsMule agent notifications
Mule agent notifications
Shanky Gupta
 
Mule and web services
Mule and web servicesMule and web services
Mule and web services
Manav Prasad
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Praneethchampion
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
Anand kalla
 
Mulesoft idempotent Message Filter
Mulesoft idempotent Message FilterMulesoft idempotent Message Filter
Mulesoft idempotent Message Filter
kumar gaurav
 

Viewers also liked (20)

Complete integration with mule esb
Complete integration with mule esbComplete integration with mule esb
Complete integration with mule esb
Son Nguyen
 
Fundamentals of Mule Esb
Fundamentals of Mule EsbFundamentals of Mule Esb
Fundamentals of Mule Esb
Praneethchampion
 
Mule Esb Basics
Mule Esb BasicsMule Esb Basics
Mule Esb Basics
mdfkhan625
 
Muleesb
MuleesbMuleesb
Muleesb
harika thamishetti
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
Rupesh Sinha
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
Son Nguyen
 
Mule ESB Training
Mule ESB TrainingMule ESB Training
Mule ESB Training
Attune University
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 
Mule esb presentation
Mule esb presentationMule esb presentation
Mule esb presentation
Lakshmi Prasanna Mavillapalli
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
Achyuta Lakshmi
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1
Srikanth N
 
Mule ESB Fundamentals
Mule ESB FundamentalsMule ESB Fundamentals
Mule ESB Fundamentals
Naresh Chintalcheru
 
Mule ESB - Integration Simplified
Mule ESB - Integration SimplifiedMule ESB - Integration Simplified
Mule ESB - Integration Simplified
Rich Software
 
Why Transliteracy? An Introduction for Librarians
Why Transliteracy? An Introduction for LibrariansWhy Transliteracy? An Introduction for Librarians
Why Transliteracy? An Introduction for Librarians
Bobbi Newman
 
My Presentation for PYP2013
My Presentation for PYP2013My Presentation for PYP2013
My Presentation for PYP2013
Michael Street
 
OCC Presentation
OCC PresentationOCC Presentation
OCC Presentation
Boyd Kassandra
 
Un MóN De Sentiments
Un MóN De SentimentsUn MóN De Sentiments
Un MóN De Sentiments
lalvar25
 
Death of Balzac - Victor Hugo
Death of Balzac - Victor HugoDeath of Balzac - Victor Hugo
Death of Balzac - Victor Hugo
honore
 
Measuring Your Nonprofit Marketing Success
Measuring Your Nonprofit Marketing SuccessMeasuring Your Nonprofit Marketing Success
Measuring Your Nonprofit Marketing Success
Kivi Leroux Miller
 
Complete integration with mule esb
Complete integration with mule esbComplete integration with mule esb
Complete integration with mule esb
Son Nguyen
 
Mule Esb Basics
Mule Esb BasicsMule Esb Basics
Mule Esb Basics
mdfkhan625
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
Rupesh Sinha
 
Mule esb basic introduction
Mule esb basic introductionMule esb basic introduction
Mule esb basic introduction
Son Nguyen
 
Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2Mule ESB Tutorial Part 2
Mule ESB Tutorial Part 2
Srikanth N
 
Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1Mule ESB Tutorial Part 1
Mule ESB Tutorial Part 1
Srikanth N
 
Mule ESB - Integration Simplified
Mule ESB - Integration SimplifiedMule ESB - Integration Simplified
Mule ESB - Integration Simplified
Rich Software
 
Why Transliteracy? An Introduction for Librarians
Why Transliteracy? An Introduction for LibrariansWhy Transliteracy? An Introduction for Librarians
Why Transliteracy? An Introduction for Librarians
Bobbi Newman
 
My Presentation for PYP2013
My Presentation for PYP2013My Presentation for PYP2013
My Presentation for PYP2013
Michael Street
 
Un MóN De Sentiments
Un MóN De SentimentsUn MóN De Sentiments
Un MóN De Sentiments
lalvar25
 
Death of Balzac - Victor Hugo
Death of Balzac - Victor HugoDeath of Balzac - Victor Hugo
Death of Balzac - Victor Hugo
honore
 
Measuring Your Nonprofit Marketing Success
Measuring Your Nonprofit Marketing SuccessMeasuring Your Nonprofit Marketing Success
Measuring Your Nonprofit Marketing Success
Kivi Leroux Miller
 
Ad

Similar to Global Scale ESB with Mule (20)

Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
Mohammed625
 
Spring integration
Spring integrationSpring integration
Spring integration
Dominik Strzyżewski
 
Camel as a_glue
Camel as a_glueCamel as a_glue
Camel as a_glue
Andriy Andrunevchyn
 
Nuxeo JavaOne 2007
Nuxeo JavaOne 2007Nuxeo JavaOne 2007
Nuxeo JavaOne 2007
Stefane Fermigier
 
Spring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring BatchSpring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring Batch
Eberhard Wolff
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
Thang Loi
 
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
Pat Patterson
 
Rich Portlet Development in uPortal
Rich Portlet Development in uPortalRich Portlet Development in uPortal
Rich Portlet Development in uPortal
Jennifer Bourey
 
Lifecycle Management of SOA Artifacts for WSO2 Products
Lifecycle Management of SOA Artifacts for WSO2 ProductsLifecycle Management of SOA Artifacts for WSO2 Products
Lifecycle Management of SOA Artifacts for WSO2 Products
WSO2
 
01 apache camel-intro
01 apache camel-intro01 apache camel-intro
01 apache camel-intro
RedpillLinpro
 
EIP In Practice
EIP In PracticeEIP In Practice
EIP In Practice
Bruce Snyder
 
Webservices Workshop - september 2014
Webservices Workshop -  september 2014Webservices Workshop -  september 2014
Webservices Workshop - september 2014
clairvoyantllc
 
Mule esb
Mule esbMule esb
Mule esb
sathyaraj Anand
 
Nick harris-sic-2011
Nick harris-sic-2011Nick harris-sic-2011
Nick harris-sic-2011
Seattle Interactive Conference
 
Mule overview
Mule overviewMule overview
Mule overview
Mohammed625
 
Mule overview
Mule overviewMule overview
Mule overview
Praneethchampion
 
Mule Overview
Mule OverviewMule Overview
Mule Overview
AbdulImrankhan7
 
IT talk SPb "Full text search for lazy guys"
IT talk SPb "Full text search for lazy guys" IT talk SPb "Full text search for lazy guys"
IT talk SPb "Full text search for lazy guys"
DataArt
 
Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1
WSO2
 
Toulouse Java User Group
Toulouse Java User GroupToulouse Java User Group
Toulouse Java User Group
Emmanuel Vinel
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
Mohammed625
 
Spring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring BatchSpring Web Service, Spring Integration and Spring Batch
Spring Web Service, Spring Integration and Spring Batch
Eberhard Wolff
 
Mule enterprise service bus
Mule enterprise service busMule enterprise service bus
Mule enterprise service bus
Thang Loi
 
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
OData: Universal Data Solvent or Clunky Enterprise Goo? (GlueCon 2015)
Pat Patterson
 
Rich Portlet Development in uPortal
Rich Portlet Development in uPortalRich Portlet Development in uPortal
Rich Portlet Development in uPortal
Jennifer Bourey
 
Lifecycle Management of SOA Artifacts for WSO2 Products
Lifecycle Management of SOA Artifacts for WSO2 ProductsLifecycle Management of SOA Artifacts for WSO2 Products
Lifecycle Management of SOA Artifacts for WSO2 Products
WSO2
 
01 apache camel-intro
01 apache camel-intro01 apache camel-intro
01 apache camel-intro
RedpillLinpro
 
Webservices Workshop - september 2014
Webservices Workshop -  september 2014Webservices Workshop -  september 2014
Webservices Workshop - september 2014
clairvoyantllc
 
IT talk SPb "Full text search for lazy guys"
IT talk SPb "Full text search for lazy guys" IT talk SPb "Full text search for lazy guys"
IT talk SPb "Full text search for lazy guys"
DataArt
 
Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1Better Enterprise Integration With the WSO2 ESB 4.5.1
Better Enterprise Integration With the WSO2 ESB 4.5.1
WSO2
 
Toulouse Java User Group
Toulouse Java User GroupToulouse Java User Group
Toulouse Java User Group
Emmanuel Vinel
 
Ad

More from Andrew Kennedy (20)

Hyperledger Lightning Talk
Hyperledger Lightning TalkHyperledger Lightning Talk
Hyperledger Lightning Talk
Andrew Kennedy
 
Orchestraing the Blockchain Using Containers
Orchestraing the Blockchain Using ContainersOrchestraing the Blockchain Using Containers
Orchestraing the Blockchain Using Containers
Andrew Kennedy
 
Multi-Container Applications Spanning Docker, Mesos and OpenStack
Multi-Container Applications Spanning Docker, Mesos and OpenStackMulti-Container Applications Spanning Docker, Mesos and OpenStack
Multi-Container Applications Spanning Docker, Mesos and OpenStack
Andrew Kennedy
 
Containers: Beyond the Basics
Containers: Beyond the BasicsContainers: Beyond the Basics
Containers: Beyond the Basics
Andrew Kennedy
 
Running Docker in Production
Running Docker in ProductionRunning Docker in Production
Running Docker in Production
Andrew Kennedy
 
Using Clocker with Project Calico - Running Production Workloads in the Cloud
Using Clocker with Project Calico - Running Production Workloads in the CloudUsing Clocker with Project Calico - Running Production Workloads in the Cloud
Using Clocker with Project Calico - Running Production Workloads in the Cloud
Andrew Kennedy
 
Clocker Now and Next
Clocker Now and NextClocker Now and Next
Clocker Now and Next
Andrew Kennedy
 
Clocker, Calico and Docker
Clocker, Calico and DockerClocker, Calico and Docker
Clocker, Calico and Docker
Andrew Kennedy
 
Introducing the Open Container Project
Introducing the Open Container ProjectIntroducing the Open Container Project
Introducing the Open Container Project
Andrew Kennedy
 
Docker Networking with Project Calico
Docker Networking with Project CalicoDocker Networking with Project Calico
Docker Networking with Project Calico
Andrew Kennedy
 
Clocker 1.0.0 Preview
Clocker 1.0.0 PreviewClocker 1.0.0 Preview
Clocker 1.0.0 Preview
Andrew Kennedy
 
Bringing Docker to the Cloud
Bringing Docker to the CloudBringing Docker to the Cloud
Bringing Docker to the Cloud
Andrew Kennedy
 
Simulating Production with Clocker
Simulating Production with ClockerSimulating Production with Clocker
Simulating Production with Clocker
Andrew Kennedy
 
Metaswitch Project Calico
Metaswitch Project CalicoMetaswitch Project Calico
Metaswitch Project Calico
Andrew Kennedy
 
Clocker - How to Train your Docker Cloud
Clocker - How to Train your Docker CloudClocker - How to Train your Docker Cloud
Clocker - How to Train your Docker Cloud
Andrew Kennedy
 
Clocker - The Docker Cloud Maker
Clocker - The Docker Cloud MakerClocker - The Docker Cloud Maker
Clocker - The Docker Cloud Maker
Andrew Kennedy
 
Docker Networking with Clocker and Weave
Docker Networking with Clocker and WeaveDocker Networking with Clocker and Weave
Docker Networking with Clocker and Weave
Andrew Kennedy
 
Deploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache BrooklynDeploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache Brooklyn
Andrew Kennedy
 
Deploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache BrooklynDeploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache Brooklyn
Andrew Kennedy
 
Clocker Evolution
Clocker EvolutionClocker Evolution
Clocker Evolution
Andrew Kennedy
 
Hyperledger Lightning Talk
Hyperledger Lightning TalkHyperledger Lightning Talk
Hyperledger Lightning Talk
Andrew Kennedy
 
Orchestraing the Blockchain Using Containers
Orchestraing the Blockchain Using ContainersOrchestraing the Blockchain Using Containers
Orchestraing the Blockchain Using Containers
Andrew Kennedy
 
Multi-Container Applications Spanning Docker, Mesos and OpenStack
Multi-Container Applications Spanning Docker, Mesos and OpenStackMulti-Container Applications Spanning Docker, Mesos and OpenStack
Multi-Container Applications Spanning Docker, Mesos and OpenStack
Andrew Kennedy
 
Containers: Beyond the Basics
Containers: Beyond the BasicsContainers: Beyond the Basics
Containers: Beyond the Basics
Andrew Kennedy
 
Running Docker in Production
Running Docker in ProductionRunning Docker in Production
Running Docker in Production
Andrew Kennedy
 
Using Clocker with Project Calico - Running Production Workloads in the Cloud
Using Clocker with Project Calico - Running Production Workloads in the CloudUsing Clocker with Project Calico - Running Production Workloads in the Cloud
Using Clocker with Project Calico - Running Production Workloads in the Cloud
Andrew Kennedy
 
Clocker, Calico and Docker
Clocker, Calico and DockerClocker, Calico and Docker
Clocker, Calico and Docker
Andrew Kennedy
 
Introducing the Open Container Project
Introducing the Open Container ProjectIntroducing the Open Container Project
Introducing the Open Container Project
Andrew Kennedy
 
Docker Networking with Project Calico
Docker Networking with Project CalicoDocker Networking with Project Calico
Docker Networking with Project Calico
Andrew Kennedy
 
Bringing Docker to the Cloud
Bringing Docker to the CloudBringing Docker to the Cloud
Bringing Docker to the Cloud
Andrew Kennedy
 
Simulating Production with Clocker
Simulating Production with ClockerSimulating Production with Clocker
Simulating Production with Clocker
Andrew Kennedy
 
Metaswitch Project Calico
Metaswitch Project CalicoMetaswitch Project Calico
Metaswitch Project Calico
Andrew Kennedy
 
Clocker - How to Train your Docker Cloud
Clocker - How to Train your Docker CloudClocker - How to Train your Docker Cloud
Clocker - How to Train your Docker Cloud
Andrew Kennedy
 
Clocker - The Docker Cloud Maker
Clocker - The Docker Cloud MakerClocker - The Docker Cloud Maker
Clocker - The Docker Cloud Maker
Andrew Kennedy
 
Docker Networking with Clocker and Weave
Docker Networking with Clocker and WeaveDocker Networking with Clocker and Weave
Docker Networking with Clocker and Weave
Andrew Kennedy
 
Deploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache BrooklynDeploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache Brooklyn
Andrew Kennedy
 
Deploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache BrooklynDeploying Complex Applications on Docker using Apache Brooklyn
Deploying Complex Applications on Docker using Apache Brooklyn
Andrew Kennedy
 

Recently uploaded (20)

HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.Greenhouse_Monitoring_Presentation.pptx.
Greenhouse_Monitoring_Presentation.pptx.
hpbmnnxrvb
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Quantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur MorganQuantum Computing Quick Research Guide by Arthur Morgan
Quantum Computing Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Semantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AISemantic Cultivators : The Critical Future Role to Enable AI
Semantic Cultivators : The Critical Future Role to Enable AI
artmondano
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 

Global Scale ESB with Mule

  • 1. Global Scale ESB with Mule Andrew D Kennedy [email protected] March 2011
  • 2. Who Am I • Enterprise Java Developer • Apache Qpid Committer • Previously Security Engineer • Over 15 Years Java Experience • Worked with various Investment Banks • Interested in Data Mining and Visualisation
  • 3. This Presentation • What is an ESB • What is Mule • Mule Applications • Mule Scalability
  • 4. What is an ESB • Enterprise Service Bus • SOA – Service Oriented Architecture • SEDA – Staged Event-Driven Architecture • EIP – Enterprise Integration Patterns
  • 5. Service Oriented Architecture • Services – Shared Business Functions • Decoupling – Local and Remote Services • Distributed Applications • Directory and Discovery
  • 6. EIP • Similar to Design Patterns – Gang of Four Book • Shared Terminology • Names for Common Concepts • Allows Discussion • Simplifies Design
  • 7. (Some) Common Patterns • Aggregator (268) • Channel Adapter (127) • Content Based Router (230) • Dead Letter Channel (119) • Selective Consumer (515) • Message Translator (85) • Guaranteed Delivery (122)
  • 8. What is Mule • Open Source Project • MuleSoft – Mule Forge – Mule Enterprise – Mule MQ – Tcat Server • 2.x - Legacy Applications • 3.1.1 - Current Community Release • 3.2.0 - Latest Developer Build
  • 9. Transports • Carry Messages between Services • Connector – Configuration – Threading – Retry • Endpoint – Connects Services – Transform Messages – Transaction Boundary
  • 10. Endpoint Examples <file:inbound-endpoint path="/esb/in" comparator="org.mule.transport.file.comparator.Older FirstComparator" reverseOrder="true” /> <jetty:endpoint name="server" host="localhost" port="60203" path="services/Lookup" /> <imaps:endpoint name=”mail" host="localhost" password=”hunter2" port="123" user=”adk"/> <quartz:endpoint name=”batch" repeatCount="10" repeatInterval=”60000" jobName="job"/> <jms:inbound-endpoint queue="test.queue"/>
  • 11. VM • Communication within VM • Synchronous or Asynchronous • Transactional <vm:connector name="async" queueEvents="true” /> <vm:inbound-endpoint path="in" connector-ref="async"/>
  • 12. JMS • Queues • Topics • Request-Response <jms:connector name=”jms" specification="1.1" connectionFactory-ref=”qpid" username=”adk" password=”hunter2” /> <jms:outbound-endpoint queue=”audit” /> <jms:inbound-endpoint topic=”uk.*.gbp” />
  • 13. Web Services • HTTP and HTTPS – Custom Data Formats • CXF – JAX-WS – SOAP – WSDL • REST
  • 14. CXF JAX-WS <inbound-endpoint address="http://localhost:63081/hello" /> <cxf:jaxws-service serviceClass="org.example.ServiceImpl” /> <cxf:jaxws-client clientClass=”com.example.Client” wsdlPort="SoapPort” wsdlLocation="classpath:/save.wsdl” operation=”output” /> <outbound-endpoint address="http://www.example.com/services/save” />
  • 15. File System • Poll Directory for Input <file:connector name="input" fileAge="500" autoDelete="true" pollingFrequency="100" moveToDirectory="/backup" moveToPattern="#[header:originalFilename].backup” /> • Write Output File <file:connector name="output" outputAppend="true" outputPattern="#[function:datestamp]- #[header:originalFilename]" />
  • 16. Other Transports • AJAX • TCP • jBPM • UDP • JDBC • FTP • Quartz • POP3 • STDIO • IMAP • RMI • SMTP • Servlet • XMPP
  • 17. Transformers • Change message content • XML to POJO via JAXB • Applied to endpoints • Efficient mechanism for processing • Similar to AOP
  • 18. Transformer Types • Encryption and Decryption • ByteArray to Object • Expression Evaluator • XML and JSON • Compression • Encoding and Decoding
  • 19. Filtering • Apply to endpoints • Payload Type • Expression – XPath, OGNL, JXPath • RegEx • Wildcard • Message Property • Logical Operators – And, Or, Not
  • 20. Filtering Examples <and-filter> <message-property-filter pattern="JMSCorrelationID=1234567890"/> <message-property-filter pattern="JMSReplyTo=null"/> </and-filter> <or-filter> <payload-type-filter expectedType="java.lang.String"/> <payload-type-filter expectedType="java.lang.StringBuffer"/> </or-filter> <not-filter> <wildcard-filter pattern=”com.example.*"/> </not-filter>
  • 21. Routers • Control message flow at endpoints • Used to link services • Both inbound and outbound • Specify Filtering and Transformations
  • 22. Selective Consumer <inbound> <selective-consumer-router> <mulexml:jxpath-filter expression="msg/header/resultcode = 'success'"/> </selective-consumer-router> <forwarding-catch-all-strategy> <jms:endpoint topic="error.topic"/> </forwarding-catch-all-strategy> </inbound>
  • 23. Idempotent Filter <inbound> <idempotent-receiver-router idExpression="#[message:id]-#[header:foo]"> <simple-text-file-store directory="./idempotent” /> </idempotent-receiver-router> </inbound>
  • 24. Filtering Router <outbound> <forwarding-catch-all-strategy> <jms:outbound-endpoint queue="error.queue"/> </forwarding-catch-all-strategy> <filtering-router> <smtp:outbound-endpoint to=”[email protected]"/> <payload-type-filter expectedType="java.lang.Exception"/> </filtering-router> <filtering-router> <jms:outbound-endpoint queue="string.queue"/> <and-filter> <payload-type-filter expectedType="java.lang.String"/> <regex-filter pattern="the quick brown (.*)"/> </and-filter> </filtering-router> </outbound>
  • 25. Services • Combine Endpoints, Routers and Components • Mule 2.0 idiom • Replaced with Flows and Patterns – Simpler to use and configure – Some features still not available
  • 26. Flows • Mule 3 idiom • Inbound endpoint • Message processors – Chained execution – Components • Outbound endpoint for one-way • Response for request-response
  • 27. Components • Carry out actions • Business logic in a flow • Simple components – Logging – Passthrough – Testing • Spring or POJO • Web services
  • 28. Message Processors • Aggregator and Splitter • Message Filters • Recipient List • Resequencer • Round Robin • Wire Tap
  • 29. Example Flow <flow name=”OrderFlow"> <file:inbound-endpoint path="/incoming"> <file:filename-filter name=”order-*.xml"/> </file:inbound-endpoint> <xml:xslt-transformer xsl-file=”order-transform.xsl"/> <splitter expression="xpath://order"/> <!-- The following message processors will be invoked for each order in the xml file --> <expression-filter expression="xpath://order[@type='book']"/> <component class=”com.example.BookOrderProcessor"/> <smtp:outbound-endpoint subject="Order Confirmation" address="#[variable:email]"/> <jdbc:outbound-endpoint ref=“saveOrder"/ > <default-exception-strategy> <jms:outbound-endpoint queue="failedOrders"/> </default-exception-strategy> </flow>
  • 30. JMS Flow <flow name=”JmsFlow"> <jms:inbound-endpoint queue="in"> <jms:transaction action="ALWAYS_BEGIN" /> </jms:inbound-endpoint> <component class="com.example.ProcessMessage" /> <jms:outbound-endpoint queue="out"> <jms:transaction action="ALWAYS_JOIN" /> </jms:outbound-endpoint> <default-exception-strategy> <commit-transaction exception-pattern="com.example.ExampleException” /> <jms:outbound-endpoint queue="dead.letter"> <jms:transaction action="JOIN_IF_POSSIBLE" /> </jms:outbound-endpoint> </default-exception-strategy> </flow>
  • 31. Complex Flow <flow name=”TwitterFlow”> <poll frequency="5000"> <twitter:search query=”example" /> </poll> <splitter evaluator="json" expression="results" /> <idempotent-message-filter idExpression="#[json:id]" /> <enricher target="#[variable:userDescription]" source="#[json:description]"> <twitter:user userId="#[json:from_user]" /> </enricher> <salesforce:create type="Opportunity"> <salesforce:sObject> <salesforce:field key="Name" value="#[json:from_user]" /> <salesforce:field key="Description" value="#[variable:userDescription]" /> </salesforce:sObject> </salesforce:create> </flow>
  • 32. Patterns • Specific integration Features • Simple Service – Exposes Components as Web Services • Web Service Proxy • Bridge – Message Adapter and Transformer • Validator – Validates inbound messages synchronously – Processes asynchronously
  • 34. Mule Application Mule 2 Application Design
  • 35. Mule Scalability • Global Enterprises • Performance • Multiple Data Locations, Sources, Destinations and Owners • Services – Software as a Service – Infrastructure as a Service – Platform as a Service
  • 36. Problems • Performance – Computation – Latency – Throughput – Infrastructure • Integration – Adding Functionality – Collecting Data • Security and Identity • Transactions
  • 37. Transactions • ACID – Atomicity, Consistency, Isolation, Durability • Easy on one system • Hard with distributed systems – Pick your boundaries • Robust failure handling
  • 38. Computation • Parallel Processing • Asynchronous Tasks • Orchestration – Workflow • Pooling and Threading • More and faster is better
  • 39. Bottlenecks • Bandwidth – Networking – Latency and Throughput • External service providers • Data sources – Database • Messaging
  • 40. Messaging Backbone • Sets scalability limits • Message flow through system • Infrastructure choices – JMS – Web based – AMQP – XMPP – TIBCO • Hardware solutions available
  • 41. Clustering • Various external components – Database – Messaging – Web Services • Business logic components – Terracotta – GigaSpaces XAP
  • 42. Load Balancing • Web Services • Software • Hardware – XML Transformation – SSL • Round Robin