August 2014	

Patterns for Enterprise Integration Success 	

Software Architect	

Kasun Indrasiri
2	
  
About	
  WSO2	
  
๏  Global	
  enterprise,	
  founded	
  in	
  2005	
  by	
  
acknowledged	
  leaders	
  in	
  XML,	
  web	
  
services	
  	
  technologies,	
  standards	
  	
  and	
  
open	
  source	
  
๏  Provides	
  only	
  open	
  source	
  plaDorm-­‐as-­‐
a-­‐service	
  for	
  private,	
  public	
  and	
  hybrid	
  
cloud	
  deployments	
  
๏  All	
  WSO2	
  products	
  are	
  100%	
  open	
  
source	
  and	
  released	
  under	
  the	
  Apache	
  
License	
  Version	
  2.0.	
  
๏  Is	
  an	
  AcLve	
  Member	
  of	
  OASIS,	
  Cloud	
  
Security	
  Alliance,	
  OSGi	
  Alliance,	
  AMQP	
  
Working	
  Group,	
  OpenID	
  FoundaLon	
  
and	
  W3C.	
  
๏  Driven	
  by	
  InnovaLon	
  
๏  Launched	
  first	
  open	
  source	
  API	
  
Management	
  soluLon	
  in	
  2012	
  
๏  Launched	
  App	
  Factory	
  in	
  2Q	
  2013	
  
๏  Launched	
  Enterprise	
  Store	
  and	
  
first	
  open	
  source	
  Mobile	
  soluLon	
  
in	
  4Q	
  2013	
  
3	
  
What	
  WSO2	
  delivers	
  
About the Presenters	
  
๏  Kasun Indrasiri
๏  SoUware	
  Architect,	
  WSO2	
  ESB	
  
4
Agenda	
  
๏  Commonly used integration patterns with WSO2
Middleware Platform
๏  Inspired from real world scenarios
๏  Integration Ecosystems - Go beyond building a
set of integration silos
5
Glimpse of Modern Enterprises 	
  
๏  Disparate Systems, Services, Protocols
๏  Diverse and dynamic business requirements
๏  No single vendor/solution
๏  On premise/Cloud solutions 	

6
Point to Point/Spaghetti Integration	
  
๏  Scalability, maintainability, troubleshooting
nightmares. 	

7
ESB as the Integration Bus	
  
๏  Conquering integration nightmares with WSO2
ESB	

8
Introducing WSO2 ESB	
  
๏  A light weight, high performance ESB
๏  Comprehensive REST, SOAP, WS-* support
๏  100% compliant with all EIPs (Enterprise
Integration Patterns)
๏  Connectors (Salesforce, Twilio and many more)
๏  SAP, FIX, HL7 - Domain specific solutions
๏  Zero Code/Configuration driven
๏  Extensible and Scalable
9
๏  Conventional Integration Patterns
๏  API Façade Pattern
๏  Hybrid Integration Patterns
๏  Store and Forward
๏  High-availability and Failover
๏  Security Patterns
๏  Patterns Related to Monitoring and Complex Event
Processing
10	

Integrate anything with everything..
๏  Enterprise Integration Patterns
§  De facto standard for enterprise integration
๏  WSO2 ESB offers 100% coverage of EIPs 	

11	

Conventional Integration Patterns
๏  Stateless Service Orchestration – ESB
§  Service Channing – call mediator or receive sequence
§  Clone/Aggregate – clone, aggregate mediators
§  Split/Aggregate - iterate, aggregate mediators
12	

Service Orchestration
๏  A stateless service chaining scenario realized with
the application of multiple EIPs	

13	

Service Orchestration
๏  Stateful Service Orchestration – BPS
§  Stateful orchestration of number of services
§  Long running processes
§  Compensation handling/Rollback
§  Human Tasks
14	

Service Orchestration
๏  Service Orchestration – BPS + ESB
§  ESB handles the connectivity between disparate systems and
services
§  BPS handles the orchestration
15	

Service Orchestration
๏  Service Orchestration – ESB or BPS ?
§  How to select the perfect fit?
•  Stateful vs stateless
•  Complexity of the orchestration
•  Long running processes
•  Learning curve of BPEL
16	

Service Orchestration
๏  WSO2 ESB – Comprehensive REST support
§  HTTP Endpoint – Nouns and Verbs
§  Payload Factory/Script Mediator – Data Formats 	

17	

RESTful Integration 	

Image courtesy : http://www.ansoncheunghk.info/sites/default/files/venue/images/rest_triangle.png
๏  JSON is increasingly getting popular
๏  Native JSON support with WSO2 ESB 4.8
§  No canonicalization (i.e: No conversion back and forth
JSON->SOAP->JSON)
§  JSON Path for JSON Content Based Routing
§  Support all kinds of transformations (JSON->JSON,
JSON<->XML)
18	

Comprehensive JSON Support
๏  HTTP Endpoint and JSON Payload Factory	

19	

RESTful Integration in action
๏  Integrating SAP and non-SAP systems	

๏  IDOC and BAPI based integration
20	

SAP Integration
๏  Make messages persistent so that they are not lost
even if the messaging system crash
§  Message stores and processors
21	

Guaranteed Delivery with WSO2 MB
๏  API Façade with WSO2 ESB and WSO2 API Manager
22	

API Façade Pattern
๏  A connector is a ready made and convenient tool to
reach publicly available web API s.	

23	

Connectors
๏  Salesforce + Google Spread Sheet - Opportunity
Management 	

24	

Cloud to Cloud Integration
๏  SAP-Salesforce Integration 	

25	

Cloud to On-premise Integration
๏  https://storepreview.wso2.com/	

26	

WSO2 Connector Store
๏  Blazing performance – Fastest open source ESB 	

27	

Integration with the fastest ESB 	

ESB	
  Performance	
  Round	
  7.5	
  –	
  February	
  2014	
  
๏  With ELB	

28	

High Availability with worker/manager separation
๏  Without ELB/With external load balancers 	

29	

High Availability with worker/manager separation
๏  Cluster of worker nodes 	

30	

High Availability without worker/manager
๏  OAuth and Entitlement 	

31	

Security Patterns
32	

Business Activity Monitoring
33	

Real time monitoring/CEP
๏  Cloud/On-premise integration with API Management 	

34	

Use Cases
๏  Integration for Connected Business
๏  Integrate anything with everything
๏  Real world Use cases
35	

Conclusion
36	

QnA
37	
  
Business	
  Model	
  
6	

Links	
  
๏  WSO2 ESB - http://wso2.com/products/enterprise-service-bus/
๏  WSO2 ESB Connectors -
http://docs.wso2.org/display/ESB480/ESB+Connectors
๏  WSO2 ESB performance comparison -
http://wso2.com/library/articles/2014/02/esb-performance-
round-7.5/
๏  RESTful Integration -
http://wso2.com/library/articles/2013/12/restful-integration-
with-wso2-esb/
๏  Guaranteed Delivery with WSO2 ESB -
http://wso2.com/library/articles/2014/01/guaranteed-
delivery-with-Message-Store-Message-Processor%20/
Contact	
  us	
  !	
  

Patterns for Enterprise Integration Success

  • 1.
    August 2014 Patterns forEnterprise Integration Success Software Architect Kasun Indrasiri
  • 2.
    2   About  WSO2   ๏  Global  enterprise,  founded  in  2005  by   acknowledged  leaders  in  XML,  web   services    technologies,  standards    and   open  source   ๏  Provides  only  open  source  plaDorm-­‐as-­‐ a-­‐service  for  private,  public  and  hybrid   cloud  deployments   ๏  All  WSO2  products  are  100%  open   source  and  released  under  the  Apache   License  Version  2.0.   ๏  Is  an  AcLve  Member  of  OASIS,  Cloud   Security  Alliance,  OSGi  Alliance,  AMQP   Working  Group,  OpenID  FoundaLon   and  W3C.   ๏  Driven  by  InnovaLon   ๏  Launched  first  open  source  API   Management  soluLon  in  2012   ๏  Launched  App  Factory  in  2Q  2013   ๏  Launched  Enterprise  Store  and   first  open  source  Mobile  soluLon   in  4Q  2013  
  • 3.
    3   What  WSO2  delivers  
  • 4.
    About the Presenters   ๏  Kasun Indrasiri ๏  SoUware  Architect,  WSO2  ESB   4
  • 5.
    Agenda   ๏  Commonlyused integration patterns with WSO2 Middleware Platform ๏  Inspired from real world scenarios ๏  Integration Ecosystems - Go beyond building a set of integration silos 5
  • 6.
    Glimpse of ModernEnterprises   ๏  Disparate Systems, Services, Protocols ๏  Diverse and dynamic business requirements ๏  No single vendor/solution ๏  On premise/Cloud solutions 6
  • 7.
    Point to Point/SpaghettiIntegration   ๏  Scalability, maintainability, troubleshooting nightmares. 7
  • 8.
    ESB as theIntegration Bus   ๏  Conquering integration nightmares with WSO2 ESB 8
  • 9.
    Introducing WSO2 ESB   ๏  A light weight, high performance ESB ๏  Comprehensive REST, SOAP, WS-* support ๏  100% compliant with all EIPs (Enterprise Integration Patterns) ๏  Connectors (Salesforce, Twilio and many more) ๏  SAP, FIX, HL7 - Domain specific solutions ๏  Zero Code/Configuration driven ๏  Extensible and Scalable 9
  • 10.
    ๏  Conventional IntegrationPatterns ๏  API Façade Pattern ๏  Hybrid Integration Patterns ๏  Store and Forward ๏  High-availability and Failover ๏  Security Patterns ๏  Patterns Related to Monitoring and Complex Event Processing 10 Integrate anything with everything..
  • 11.
    ๏  Enterprise IntegrationPatterns §  De facto standard for enterprise integration ๏  WSO2 ESB offers 100% coverage of EIPs 11 Conventional Integration Patterns
  • 12.
    ๏  Stateless ServiceOrchestration – ESB §  Service Channing – call mediator or receive sequence §  Clone/Aggregate – clone, aggregate mediators §  Split/Aggregate - iterate, aggregate mediators 12 Service Orchestration
  • 13.
    ๏  A statelessservice chaining scenario realized with the application of multiple EIPs 13 Service Orchestration
  • 14.
    ๏  Stateful ServiceOrchestration – BPS §  Stateful orchestration of number of services §  Long running processes §  Compensation handling/Rollback §  Human Tasks 14 Service Orchestration
  • 15.
    ๏  Service Orchestration– BPS + ESB §  ESB handles the connectivity between disparate systems and services §  BPS handles the orchestration 15 Service Orchestration
  • 16.
    ๏  Service Orchestration– ESB or BPS ? §  How to select the perfect fit? •  Stateful vs stateless •  Complexity of the orchestration •  Long running processes •  Learning curve of BPEL 16 Service Orchestration
  • 17.
    ๏  WSO2 ESB– Comprehensive REST support §  HTTP Endpoint – Nouns and Verbs §  Payload Factory/Script Mediator – Data Formats 17 RESTful Integration Image courtesy : http://www.ansoncheunghk.info/sites/default/files/venue/images/rest_triangle.png
  • 18.
    ๏  JSON isincreasingly getting popular ๏  Native JSON support with WSO2 ESB 4.8 §  No canonicalization (i.e: No conversion back and forth JSON->SOAP->JSON) §  JSON Path for JSON Content Based Routing §  Support all kinds of transformations (JSON->JSON, JSON<->XML) 18 Comprehensive JSON Support
  • 19.
    ๏  HTTP Endpointand JSON Payload Factory 19 RESTful Integration in action
  • 20.
    ๏  Integrating SAPand non-SAP systems ๏  IDOC and BAPI based integration 20 SAP Integration
  • 21.
    ๏  Make messagespersistent so that they are not lost even if the messaging system crash §  Message stores and processors 21 Guaranteed Delivery with WSO2 MB
  • 22.
    ๏  API Façadewith WSO2 ESB and WSO2 API Manager 22 API Façade Pattern
  • 23.
    ๏  A connectoris a ready made and convenient tool to reach publicly available web API s. 23 Connectors
  • 24.
    ๏  Salesforce +Google Spread Sheet - Opportunity Management 24 Cloud to Cloud Integration
  • 25.
    ๏  SAP-Salesforce Integration 25 Cloud to On-premise Integration
  • 26.
  • 27.
    ๏  Blazing performance– Fastest open source ESB 27 Integration with the fastest ESB ESB  Performance  Round  7.5  –  February  2014  
  • 28.
    ๏  With ELB 28 HighAvailability with worker/manager separation
  • 29.
    ๏  Without ELB/Withexternal load balancers 29 High Availability with worker/manager separation
  • 30.
    ๏  Cluster ofworker nodes 30 High Availability without worker/manager
  • 31.
    ๏  OAuth andEntitlement 31 Security Patterns
  • 32.
  • 33.
  • 34.
    ๏  Cloud/On-premise integrationwith API Management 34 Use Cases
  • 35.
    ๏  Integration forConnected Business ๏  Integrate anything with everything ๏  Real world Use cases 35 Conclusion
  • 36.
  • 37.
  • 38.
    6 Links   ๏  WSO2ESB - http://wso2.com/products/enterprise-service-bus/ ๏  WSO2 ESB Connectors - http://docs.wso2.org/display/ESB480/ESB+Connectors ๏  WSO2 ESB performance comparison - http://wso2.com/library/articles/2014/02/esb-performance- round-7.5/ ๏  RESTful Integration - http://wso2.com/library/articles/2013/12/restful-integration- with-wso2-esb/ ๏  Guaranteed Delivery with WSO2 ESB - http://wso2.com/library/articles/2014/01/guaranteed- delivery-with-Message-Store-Message-Processor%20/
  • 39.