Your SlideShare is downloading. ×
0
ESBs and SOA

      Paul Fremantle
     paul@wso2.com
CTO and Co-Founder, WSO2
   VP, Apache Synapse
Service Oriented Architecture

• SOA is the best practce for building distributed
  interconnected systems
  – Using well-...
Bus concept
Busbar
A common ESB defniton

 “Any to any data connectvity and transformaton
   (including Web Services) built on an advanced,
 ...
ESB defniton

 “Any to any data connectvity and transformaton
   (including Web Services) built on an advanced,
   proven,...
Jason Bloomberg, Zapthink

  “You're a sofware vendor with a product line chock full
  of proprietary, tghtly-coupled inte...
My defniton of an ESB

“What does it do?” not “How does it do it?”
• Services are independent of the transport and protoco...
Loose Coupling

  • Locaton and Access
     – Scale up, failover, contngency
  • Programming Language
     – Work with ava...
Do you need an ESB to do SOA?
Do you need an ESB to do SOA?
SOA can end up as spaghet




 • Too many point-to-point links
 • Multple protocols, diferent qualites of service
 • No cl...
An ESB can simplify SOA deployment




                                     Virtualization
                               ...
Pragmatc SOA scenarios

• SOA has been seeded “botom-up” within a company, and now
  looking for a way to add order and co...
Apply those rules to an ESB

• Locaton and Access
   – Must provide virtualizaton, multple protocol support, transparency
...
ESB Paterns and Ant-Paterns

• How are ESBs used efectvely
• How are they abused
  – High-level paterns
     • How the ESB...
The Concentrator Patern


                        Mashup/Web Applicaton
                             Dashboard



        ...
The Federated ESB patern

                                         Department
                                            ...
The mini-ESB patern

•   Use a lightweight ESB
•   Co-locate on the same hardware/VM as the service
•   Transformaton, pol...
Actve vs Passive

• The concentrator patern is efectvely passive
   – The ESB reacts to messages/requests from the front-e...
Scenario – Financial Security blocking




   Existing
   System
                                              XML/JMS


 ...
Push-Me Pull-You
Push-me Pull-you
Ant-Paterns

• Ant-Patern #1
  – Implement all your business logic in the ESB
  – Why not?
     • Mixing Infrastructure lo...
Ant-Patern #3

• “Big Brother”
  – The ESB is hosted, managed and controlled by a central IT
    team
  – Because of organ...
The biggest Ant-Patern of all

• Use an ESB because:
   – You heard it was a good idea
   – The salesman told you that you...
ESB Market

• Proprietary
  – IBM WebSphere
  – Oracle/BEA
  – Tibco
• Open Source
  – Fuse/ServiceMix
  – MuleSource/Mule...
What about JBI?

• JBI is the JCP/Sun sponsored standard for ESBs
• Allows a standard deployment and also standard
  adapt...
Openness

• Since the only standard for portability is fawed, I highly
  recommend:
  – Using an Open Source ESB
     • Av...
OSGi and ESBs

• OSGi is a pluggability and component model for Java
• Proven to be efectve as the component approach for
...
Understanding an ESB

• I’m an expert on the WSO2 ESB and Apache Synapse
  – Both share the same core engine and model
• S...
Core model of the ESB

• Two main approaches
  – “Proxy” approach
     • Messages come into a proxy
        – Proxy = { in...
Sequence concept
Built-in Mediators

   – Drop (end)                    –   Property
   – Sequence (call another        –   Header
     seq...
Understanding performance

• Performance of an ESB can be critcal
• Key Measurements are
  – Throughput (can the ESB cope ...
Case Study

• Mobile phone ringtone/media provider
• Every request goes via the ESB
  – Performance and Streaming are crit...
Event Driven Architecture

• Event Architecture takes the SOA one step further
  towards loose-coupling than the previous ...
Eventng in Synapse

                            Synapse

                                                       Subscriber...
Event Driven Architecture with a Master Data
Patern
Governance and ESBs

• Governance is a key issue for SOA
• Governance is fundamentally about ensuring standards
  around E...
Summary

• We have
  –   Identfed how ESBs ft into a Service Oriented Architecture
  –   Discussed when to use an ESB and ...
Questons
Resources

• Reclaiming the ESB
  – htp://wso2.org/library/2913
• Open Source SOA (book) by Jef Davis
  – htp://www.mannin...
WSO2 ESB and SOA
Upcoming SlideShare
Loading in...5
×

WSO2 ESB and SOA

3,517

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,517
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
217
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "WSO2 ESB and SOA"

  1. 1. ESBs and SOA Paul Fremantle paul@wso2.com CTO and Co-Founder, WSO2 VP, Apache Synapse
  2. 2. Service Oriented Architecture • SOA is the best practce for building distributed interconnected systems – Using well-defned interactons between systems – Moving from proprietary formats to open formats: • XML, HTTP, SOAP – Integraton is dependent on external interfaces not on internal code
  3. 3. Bus concept
  4. 4. Busbar
  5. 5. A common ESB defniton “Any to any data connectvity and transformaton (including Web Services) built on an advanced, proven, reliable middleware infrastructure”
  6. 6. ESB defniton “Any to any data connectvity and transformaton (including Web Services) built on an advanced, proven, reliable middleware infrastructure” which means • Our existng middleware re-branded as an SOA platorm, with some new web services adapters at the edges
  7. 7. Jason Bloomberg, Zapthink “You're a sofware vendor with a product line chock full of proprietary, tghtly-coupled integraton middleware… Your sofware, however, does not lend itself to SOA best practces – loose coupling, composable Services, and fexibility in general are all capabilites that you failed to build into your sofware… What to do? The only opton is to slap Web Services interfaces on your stuf, call it an Enterprise Service Bus (ESB), and sell it as SOA middleware. Hopefully your customers won't notce the old wine in new botles. Afer all, that's what marketng is for!”
  8. 8. My defniton 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
  9. 9. Loose Coupling • Locaton and Access – Scale up, failover, contngency • Programming Language – Work with available skills – Integrate old and new • Stack/Vendor – No te in to a partcular proprietary soluton • Time – Asynchronous interactons avoid gridlock
  10. 10. Do you need an ESB to do SOA?
  11. 11. Do you need an ESB to do SOA?
  12. 12. SOA can end up as spaghet • Too many point-to-point links • Multple protocols, diferent qualites of service • No clear picture of all available services
  13. 13. 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
  14. 14. Pragmatc SOA scenarios • SOA has been seeded “botom-up” within a company, and now looking for a way to add order and consistency • Looking to expose existng backend systems as services in a consistent way • Need to provide scale-up and performance management for SOAP and HTTP systems including load-balancing and throtling • Startng to expose services to partners and require a soluton to managing access control, security keys and auditability • Integratng Java and .NET systems with other stacks, need a simple independent way to manage WS-Security, Reliable Messaging
  15. 15. Apply those rules to an ESB • Locaton and Access – Must provide virtualizaton, multple protocol support, transparency • Programming Language – Minimal te to any one programming language – Focus on dynamic languages and XML-centric approaches such as XPath, XQuery and XSLT • Stack/Vendor – Interoperability, works with clients and services from many systems – No requirement to have a proprietary system everywhere • Time – Asynchronous, non-blocking, scalable
  16. 16. ESB Paterns and Ant-Paterns • How are ESBs used efectvely • How are they abused – High-level paterns • How the ESB fts into an organizaton • How the ESB fts into an Enterprise Architecture – Low-level paterns • How the ESB fts into a specifc message fow or business problem
  17. 17. The Concentrator Patern Mashup/Web Applicaton Dashboard Concentrator ESB Consistent access, security, logging, audit, monitoring But no transformaton .NET CRM Apache C/C++ Data service service Axis2 service service service
  18. 18. The Federated ESB patern Department ESB Enterprise ESB Routng, Audit Department ESB Department ESB
  19. 19. The mini-ESB patern • Use a lightweight ESB • Co-locate on the same hardware/VM as the service • Transformaton, polling, protocol translaton, etc • Why? – In the control of the team who own the services – Keeps the SOA model (ownership) with a simple efectve approach to exposing services • What about the embedded ESB model? – e.g. embed transformaton and logging into your Service Hostng platorm
  20. 20. Actve vs Passive • The concentrator patern is efectvely passive – The ESB reacts to messages/requests from the front-end • Actve ESBs: – Poll fle systems/FTP/SFTP for updated work – Actvely call remote services based on tmers – Integrate passive services
  21. 21. 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
  22. 22. Push-Me Pull-You
  23. 23. Push-me Pull-you
  24. 24. Ant-Paterns • Ant-Patern #1 – Implement all your business logic in the ESB – Why not? • Mixing Infrastructure logic and Business Logic • Maintainability • Tooling and Skills • Ant-Patern #2 – Apply waterfall and applicaton deployment approaches to the ESB • Long project cycles • No iteratve approach – Why not? • Lose all fexibility and agility • Once the ESB becomes a statc, code-driven system then you would be beter of updatng your applicatons
  25. 25. Ant-Patern #3 • “Big Brother” – The ESB is hosted, managed and controlled by a central IT team – Because of organizatonal issues using the ESB is complex: • e.g. – It takes months of meetngs 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 communicatons • Avoid the ESB at all costs
  26. 26. The biggest Ant-Patern 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
  27. 27. ESB Market • Proprietary – IBM WebSphere – Oracle/BEA – Tibco • Open Source – Fuse/ServiceMix – MuleSource/Mule – WSO2 ESB/Synapse
  28. 28. What about JBI? • JBI is the JCP/Sun sponsored standard for ESBs • Allows a standard deployment and also standard adapters • Can be seen as a follow-on to JCA • JBI has had litle market success – Failed to bring true portability – Based on a very code-centric deployment model inherited from J2EE • JBI v2 was destned to fx those problems but has gone quiet • Oracle/Sun acquisiton has also thrown doubt on JBI
  29. 29. Openness • Since the only standard for portability is fawed, I highly recommend: – Using an Open Source ESB • Avoid lock-in and proprietary approach – Using open network protocols • E.g. SOAP, HTTP, XMPP, AMQP • Avoid lock-in to MQSeries or Tibco – Use as many standards based approaches as possible • XSLT, XQuery, E4X/JavaScript, SOAP Headers, WS-Security, WS-RM, etc
  30. 30. OSGi and ESBs • OSGi is a pluggability and component model for Java • Proven to be efectve as the component approach for Eclipse • Gaining strong tracton with middleware vendors – BEA/Oracle – IBM – SpringSource – WSO2 • Both ServiceMix and WSO2 ESB have strong OSGi basis – ServiceMix Kernel – WSO2 Carbon OSGi framework • OSGi looks like a much stronger approach than JBI for plugging components into middleware runtmes
  31. 31. Understanding an ESB • I’m an expert on the WSO2 ESB and Apache Synapse – Both share the same core engine and model • Scenario walkthrough • Similar approaches will work with other Open Source ESBs
  32. 32. 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 functon – 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
  33. 33. Sequence concept
  34. 34. 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 – Throtle – Router – Cache – Smooks (transform library) – XSLT – Rule (use a Rules engine) – XQuery – Enttlement (validate access against a XACML server)
  35. 35. Understanding performance • Performance of an ESB can be critcal • Key Measurements are – Throughput (can the ESB cope with the required load) – Latency (does the ESB add unacceptable tme) – 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 connectons with constant thread pool
  36. 36. Case Study • Mobile phone ringtone/media provider • Every request goes via the ESB – Performance and Streaming are critcal – Streaming and non-blocking are key • Contnuous Availability – Ability to upgrade the system live – Without losing transactons – Under load
  37. 37. Event Driven Architecture • Event Architecture takes the SOA one step further towards loose-coupling than the previous paterns: – Its up to you to publish to the right place – Its up to you to subscribe to the right events • You own the wiring too – Allows for situatonal integraton • In the previous paterns the wiring was encoded into the ESB
  38. 38. Eventng in Synapse Synapse Subscriber Mediaton Event Subscriber Publisher Proxy Sequence Publisher Subscriber Event Source Subs subscribe Mgr
  39. 39. Event Driven Architecture with a Master Data Patern
  40. 40. 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
  41. 41. Summary • We have – Identfed how ESBs ft into a Service Oriented Architecture – Discussed when to use an ESB and when not to – Looked at ESB paterns and ant-paterns – Covered some simple ESB approaches – Investgated how ESBs can ft into EDA
  42. 42. Questons
  43. 43. Resources • Reclaiming the ESB – htp://wso2.org/library/2913 • Open Source SOA (book) by Jef Davis – htp://www.manning.com/davis/ • htp://en.wikipedia.org/wiki/Enterprise_service_bus • Apache Synapse – htp://synapse.apache.org • WSO2 ESB – htp://wso2.org/esb
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×