Introduction to Message-Oriented Middleware

Edward Curry
Edward CurryResearch Unit Leader at Digital Enterprise Research Institute (DERI)
Introduction to
Message-Oriented Middleware


  Invited Talk to University of Limerick
               February ‘05



              Edward Curry
  National University of Ireland, Galway
             edcurry@acm.org
Further Information
Message-Oriented Middleware




 in Middleware for Communications,
 Q. H. Mahmoud, Ed. Chichester,
 England: John Wiley and Sons,
 2004, pp. 1-28.

  Full text available at:
  http://www.edwardcurry.org/publications/curry_MfC_MOM_04.pdf
Presentation Outline
 Interaction Models
   – Synchronous & Asynchronous Communication
 Introduction to the Remote Procedure Call (RPC)
 Introduction to Message-Oriented Middleware (MOM)
   – When to use MOM or RPC
 MOM Overview
   – Message Queues
   – Messaging Models
      • Point-to-Point & Publish/Subscribe
      • Comparison of Messaging Models
 Service-Oriented Architectures
   – Role of XML, Web Services, SOAP, MOM
   – Developing Service-Oriented Architectures

           Introduction to Message-Oriented Middleware   3
Challenges of Distributed Computing

Direct Remote Procedure Call (RPC)
 mechanisms struggle in large-scale widely
 distributed deployments

Alternative to RPC has emerged

Message-Oriented Middleware
  –any middleware infrastructure providing messaging
  capab.
  –peer-to-peer relationship between individual clients
  –each peer can send/receive messages to/from
  other peers
        Introduction to Message-Oriented Middleware   4
Interaction Models
 Two model dominate distributed computing environments
   – synchronous and asynchronous communication
   – a solid knowledge of models is key to understanding benefits and
     differences between MOM and other forms of distribution

 Synchronous Interaction
   – caller must block & wait (suspend processing) until the called
     completes
   – participants do not have processing control independence
      • they rely on the return of control from the called systems

 Asynchronous Interaction
   – caller retains processing control, does not need to block
   – requires an intermediary to handle the exchange of requests
   – participants retain processing independence (continue processing)
     regardless of the state of the others
             Introduction to Message-Oriented Middleware         5
Synchronous Communication




 Introduction to Message-Oriented Middleware   6
Asynchronous Communication




 Introduction to Message-Oriented Middleware   7
Introducing RPC
 Traditional Distribution model
   – Utilized in middleware platforms including
      • CORBA, Java RMI, Microsoft DCOM & XML-RPC
   – Based on the synchronous interaction model

 RPC creates a facade, making both processes believe
  they are in the same process space
    – Similar to a local procedure call
       • control is passed to procedure in sequential
         synchronous manner
 Direct conversation between two parties
   – (similar to a person-to-person telephone
     conversation)
          Introduction to Message-Oriented Middleware   8
RPC Deployment




Introduction to Message-Oriented Middleware   9
RPC Cont.
 Coupling
    – invasive mechanism of distribution
    – works on object or function interfaces, producing tightly coupled systems
    – Inflexible method of integrating multiple systems

 Reliability
    – most impl. provide little or no guaranteed reliable communication capability
    – very vulnerable to service outages

 Scalability
    – blocking nature of RPC can adversely affect performance
    – subsystems do not scale equally, effectively slows whole system down to the
      maximum speed of slowest participant
    – synchronous interactions use more bandwidth (several calls are needed)

 Availability
    – systems built using the RPC model are interdependent
    – require simultaneous availability of all subsystems

                 Introduction to Message-Oriented Middleware             10
MOM
 Based on the asynchronous interaction model
    – not required to block and wait on a message send

 Allows delivery of messages when the sender or receiver is
    – not active or available to respond at the time of execution

 Supports delivery for messages that may take minutes to deliver
    – as apposed to RPC that delivers in milliseconds or seconds
        • ( ! 100% True)

 Sending application has no guarantee message will be read nor
  is it given guarantee about the time it will take to deliver
    – these aspects are mainly determined by the receiving application

 Similar to the postal service
    – Messages are delivered to the post office; the postal service then
      takes responsibility for safe delivery of the message


             Introduction to Message-Oriented Middleware              11
MOM Deployment




Introduction to Message-Oriented Middleware   12
MOM
 Coupling
    – creates loose coupling between participants in a system
        • independent layer acts as an intermediary to exchange messages
        • ability to link systems without adapting source and target systems

 Reliability
    – guarantee message delivery to each intended recipient exactly once
        • message loss is prevented by using a store and forward mechanism
    – high-level of reliability (typically configurable)

 Scalability
    – decouples performance characteristics of the subsystems from each other
        • subsystems can scale independently
    – messaging models contain natural traits for effective load balancing (…)

 Availability
    – high availability capabilities
    – does not require simultaneous or “same-time” availability of all subsystems
                 Introduction to Message-Oriented Middleware              13
When to use RPC or MOM
 RPC
    –   suffers from inflexibility and tight coupling
    –   problematic to scale parts of the system and deal with service outages
    –   assumes simultaneously available
    –   require more bandwidth than a similar MOM interaction
    –   designed on the notion of a single client talking to a single server, traditional RPC
        has no built in support for one-to-many communications

    – simplicity of the mechanism and straightforward implementation
    – guarantee of sequential processing - RPC is slow but consistent
        • work is always carried out in the correct order.
        • important considerations for systems that requires 100% temporal integrity
    – temporal inaccuracies

 RPC is ideal if you want a strongly-typed/OO system with tight coupling,
  compile-time semantic checking and more straightforward impl.
 MOM is an ideal solution if the systems will be a geographically dispersed
  deployment with poor network connectivity and stringent demands in
  reliability, flexibility and scalability
                Introduction to Message-Oriented Middleware                        14
Overview MOM

 MOM Overview
  – Message Queues
  – Messaging Models
    • Point-to-Point & Publish/Subscribe
    • Comparison of Messaging Models




       Introduction to Message-Oriented Middleware   15
Message Queues

 Queues provide ability to store messages on MOM

 Queue are sorted in a particular order
   – standard queue is the First-In First-Out (FIFO) queue

 Other Types of Queues
   – Public Queue
   – Private Queue
   – Temporary Queue
   – Journal Queues
   – Connector/Bridge Queue
   – Dead-Letter/Dead-Message Queue

          Introduction to Message-Oriented Middleware   16
Message Queues




Introduction to Message-Oriented Middleware   17
Messaging Models

 Two main message models are commonly available
   – point-to-point
   – publish/subscribe

 Both are based on the exchange of messages
  through a channel (queue)

 Typical system will utilize a mix of these models to
  achieve different messaging objectives




          Introduction to Message-Oriented Middleware    18
Point-to-Point Model




 Straightforward asynchronous exchange of messages
   – message routed to consuming clients via a queue
   – no restriction on number of publishing clients
   – usually only a single consuming client (not a strict requirement)
      • each message is delivered only once to only one receiver

 Messages are always delivered and will be stored in the
  queue until a consumer is ready to retrieve them
            Introduction to Message-Oriented Middleware          19
Publish Subscribe Models




 One-to-many and many-to-many distribution mechanism
   – allows single producer to send a message to one user or potentially
     hundreds of thousands of consumers
 Clients "publish" to a specific topic or channel
 Channels are “subscribed” to by clients to consume msgs
 No restriction on the role of a client
   – may be both a producer and consumer of a channel§
             Introduction to Message-Oriented Middleware        20
Hierarchical Channels

      Hierarchical channels (topics)
           – Destination grouping mechanism in pub/sub
             model
           – Structure allows channels to be defined in a
             hierarchical fashion
           – Each sub-channel offers a more granular
             selection of the messages contained in its parent
           – Clients subscribe to the most appropriate level of
             channel

       In large-scale systems, grouping of
        messages into related types (i.e. into
        channels) helps to manage large volumes
        of different messages
Introduction to Message-Oriented Middleware           21
Comparsion of Models
Most messaging objectives can be achieved
 using either model or combination of both
Fundamental difference
   – publish/subscribe model
      • every consumer to a topic/channel will receive a
        message published to it
   – point-to-point model
      • only one consumer will receive it
Topics can be used to categorize different
 types of messages
Pub/Sub model is more powerful messaging
 model for flexibility, but it is more complex
         Introduction to Message-Oriented Middleware   22
MOM Services

Message Filtering
Transactions
Reliable Message Delivery
Guaranteed Message Delivery
Message Formats
Load Balancing
Clustering


        Introduction to Message-Oriented Middleware   23
Programming MOM

 A large number of MOM implementations exist
   – WebSphere MQ (formerly MQSeries), TIBCO, SonicMQ,
     Hermes, SIENA, Gryphon, JEDI, REBECCA, OpenJMS, etc
 Java Message Service (JMS)
   – Common way for Java programs to create, send, receive and
     read MOM messages
   – JMS specification defines
      • general purpose Application Programming Interface (API)
      • set of semantics that describe the interface and general
        behaviour of a messaging service
 Write code once using API and plug-in desired MOM
   – makes client-messaging code portable between MOM
     providers

          Introduction to Message-Oriented Middleware        24
Service Oriented Architecture

 The problems and obstacles encountered during system
  integration pose major challenges for IT departments:

  “70% of the average IT department budget is devoted to data
                     integration projects”
                                                                     –IDC

  “PowerPoint engineers make integration look easy with lovely
                  cones and colorful boxes”
                                             – Sean McGrath, CTO, Propylon

“A typical enterprise will devote 35% - 40% of its programming
budget to programs whose purpose is solely to transfer
information between different databases and legacy systems”-
Gartner Group
           Introduction to Message-Oriented Middleware                25
Service Oriented Architecture

 MOM used to create highly open and flexible systems
  that allow the seamless integration of subsystems

 MOM solves many of the transport issues with integration

 However, major problems still exist with the
  representation of data, its format and structure

 To develop a truly open system, MOM requires the
  assistance of additional technologies such as XML and
  Web Services


           Introduction to Message-Oriented Middleware   26
XML
 Programming language and platform independent
  format for representing data
   – eliminates any networking, operating system or platform
     binding that a binary proprietary protocol would use

 Once data is expressed in XML, it is trivial to change
  the format

 To use XML as a message exchange medium,
  standard formats need to be defined to structure the
  XML messages
   – i.e. ebXML andOASIS Universal Business Language (UBL)
      • With UBL, you convert your internal message formats to
        the standard UBL format and export to the external
        environment
           Introduction to Message-Oriented Middleware         27
Web Services
 Web Services
    – platform and language independent standards
      defining protocols for heterogeneous integration
 Can be seen in a number of ways
    – Business-to-business/enterprise application
      integration tool
    – natural evolution of basic RPC mechanism
 A key benefit of a web services deployment is that
  they act as a facade to the underlying language or
  platform
 Web services which are often touted as a
  replacement for traditional RPC
   – Viewed in this light they still suffer from many of its
     shortcomings
           Introduction to Message-Oriented Middleware         28
SOAP
The Simple Object Access Protocol (SOAP)
  – simple and lightweight mechanism for exchanging structured
    and typed information between peers in a decentralized,
    distributed environment using XML
  – allows you to bind it to a transport mechanism
      • SMTP, HTTP, or JMS

Has a number of uses
  – document exchange protocol
  – heterogeneous interoperability standard
  – wire protocol standard (something not defined in JMS)
  – RPC mechanism

In this talk we SOAP see as a document exchange
 protocol between heterogeneous systems
            Introduction to Message-Oriented Middleware     29
Developing SOAs
Through a combination of XML, SOAP and WS, we
 are able to create Service-Oriented Architectures
 (SOA)
A service is a set of input messages sent to a single
 or composition of objects, with the return of causally
 related output messages
   –fundamental design concept is to reduce
    processing to logic black boxes
   –standard XML format for input and output formats
An important aspect of SOAs is message centric
 structure
Once initial infrastructure created for the architecture,
 the amount of effort to connect to further systems is
 minimal
          Introduction to Message-Oriented Middleware   30
XML Transformation Pipelines




 Where message formats differ
   – XML based integration can convert the message to
     and from the format using XML transformation pipeline
   – data transformation can be seen as just another
     assembly line problem
   – with transformations taking place outside of the
     applications it a non-invasive method of integration
          Introduction to Message-Oriented Middleware   31
Sample SOA Deployment




Introduction to Message-Oriented Middleware   32
SOA Summary




XML + Web Services + MOM
                              = Open Systems
Service Oriented Architecture




      Introduction to Message-Oriented Middleware   33
Summary



All good Distributed Application Deployments (DAD)s
 need a good Message-Oriented Middleware (MOM)
                                                      -Anon.




        Introduction to Message-Oriented Middleware      34
1 of 34

Recommended

Message Oriented Middleware by
Message Oriented MiddlewareMessage Oriented Middleware
Message Oriented MiddlewareManuswath K.B
3K views68 slides
An Introduction to the Message Queuing Technology & IBM WebSphere MQ by
An Introduction to the Message Queuing Technology & IBM WebSphere MQAn Introduction to the Message Queuing Technology & IBM WebSphere MQ
An Introduction to the Message Queuing Technology & IBM WebSphere MQRavi Yogesh
1.7K views16 slides
SOA - Architecture Orientée Service : Démystification by
SOA - Architecture Orientée Service : DémystificationSOA - Architecture Orientée Service : Démystification
SOA - Architecture Orientée Service : DémystificationKhaled Ben Driss
7.2K views63 slides
7 eai-patterns by
7 eai-patterns7 eai-patterns
7 eai-patternsClaudia Rosu
17.1K views23 slides
Architectures orientés services (SOA) by
Architectures orientés services (SOA)Architectures orientés services (SOA)
Architectures orientés services (SOA)Heithem Abbes
8.7K views57 slides
Présentation SOA by
Présentation SOAPrésentation SOA
Présentation SOACynapsys It Hotspot
5.1K views39 slides

More Related Content

What's hot

Architecture orientée service (SOA) by
Architecture orientée service (SOA)Architecture orientée service (SOA)
Architecture orientée service (SOA)Klee Group
15.6K views38 slides
Cours Middleware orientés objets by
Cours Middleware orientés objetsCours Middleware orientés objets
Cours Middleware orientés objetsVincent Englebert
2.3K views135 slides
IBM MQ High Availability 2019 by
IBM MQ High Availability 2019IBM MQ High Availability 2019
IBM MQ High Availability 2019David Ware
4.5K views42 slides
Comparison of MQTT and DDS as M2M Protocols for the Internet of Things by
Comparison of MQTT and DDS as M2M Protocols for the Internet of ThingsComparison of MQTT and DDS as M2M Protocols for the Internet of Things
Comparison of MQTT and DDS as M2M Protocols for the Internet of ThingsReal-Time Innovations (RTI)
51.2K views14 slides
Chp2 - Vers les Architectures Orientées Services by
Chp2 - Vers les Architectures Orientées ServicesChp2 - Vers les Architectures Orientées Services
Chp2 - Vers les Architectures Orientées ServicesLilia Sfaxi
4.4K views42 slides
IBM MQ - High Availability and Disaster Recovery by
IBM MQ - High Availability and Disaster RecoveryIBM MQ - High Availability and Disaster Recovery
IBM MQ - High Availability and Disaster RecoveryMarkTaylorIBM
9K views68 slides

What's hot(20)

Architecture orientée service (SOA) by Klee Group
Architecture orientée service (SOA)Architecture orientée service (SOA)
Architecture orientée service (SOA)
Klee Group15.6K views
IBM MQ High Availability 2019 by David Ware
IBM MQ High Availability 2019IBM MQ High Availability 2019
IBM MQ High Availability 2019
David Ware4.5K views
Chp2 - Vers les Architectures Orientées Services by Lilia Sfaxi
Chp2 - Vers les Architectures Orientées ServicesChp2 - Vers les Architectures Orientées Services
Chp2 - Vers les Architectures Orientées Services
Lilia Sfaxi4.4K views
IBM MQ - High Availability and Disaster Recovery by MarkTaylorIBM
IBM MQ - High Availability and Disaster RecoveryIBM MQ - High Availability and Disaster Recovery
IBM MQ - High Availability and Disaster Recovery
MarkTaylorIBM9K views
Chp1- Introduction aux Technologies Web et SOA by Lilia Sfaxi
Chp1- Introduction aux Technologies Web et SOAChp1- Introduction aux Technologies Web et SOA
Chp1- Introduction aux Technologies Web et SOA
Lilia Sfaxi4.3K views
Architectures orientées services by Donia Hammami
Architectures orientées servicesArchitectures orientées services
Architectures orientées services
Donia Hammami1.1K views
IBM MQ and Kafka, what is the difference? by David Ware
IBM MQ and Kafka, what is the difference?IBM MQ and Kafka, what is the difference?
IBM MQ and Kafka, what is the difference?
David Ware1.5K views
Architecture réparties et les services web by CHOUAIB EL HACHIMI
Architecture réparties et les services webArchitecture réparties et les services web
Architecture réparties et les services web
CHOUAIB EL HACHIMI2.4K views
Communication middleware by Peter R. Egli
Communication middlewareCommunication middleware
Communication middleware
Peter R. Egli5.4K views
Service mesh(istio) monitoring by Jeong-Ho Na
Service mesh(istio) monitoringService mesh(istio) monitoring
Service mesh(istio) monitoring
Jeong-Ho Na1.9K views
Tp2 - WS avec JAXRS by Lilia Sfaxi
Tp2 - WS avec JAXRSTp2 - WS avec JAXRS
Tp2 - WS avec JAXRS
Lilia Sfaxi4.1K views
Overview - ESBs and IBM Integration Bus by Juarez Junior
Overview - ESBs and IBM Integration BusOverview - ESBs and IBM Integration Bus
Overview - ESBs and IBM Integration Bus
Juarez Junior3.4K views
Demystifying the use of circuit breakers with MuleSoft by Sandeep Deshmukh
Demystifying the use of circuit breakers with MuleSoftDemystifying the use of circuit breakers with MuleSoft
Demystifying the use of circuit breakers with MuleSoft
Sandeep Deshmukh858 views

Viewers also liked

Karangan ilmiah ( harits w) by
Karangan ilmiah ( harits w)Karangan ilmiah ( harits w)
Karangan ilmiah ( harits w)Rietz Wiguna
2.2K views8 slides
1. lipid by
1. lipid1. lipid
1. lipidAhmad Aminudin
526 views50 slides
Postgre Diagram by
Postgre DiagramPostgre Diagram
Postgre Diagramkhacthuong2008
2.3K views19 slides
Clase cultura inglesa final by
Clase cultura inglesa finalClase cultura inglesa final
Clase cultura inglesa finalCyntia Ocañas
555 views45 slides
第一课 信息概念 by
第一课 信息概念第一课 信息概念
第一课 信息概念librajin
239 views16 slides
Etika Bisnis ( kritik iklan) by
Etika Bisnis ( kritik iklan)Etika Bisnis ( kritik iklan)
Etika Bisnis ( kritik iklan)Rietz Wiguna
1.2K views4 slides

Viewers also liked(20)

Karangan ilmiah ( harits w) by Rietz Wiguna
Karangan ilmiah ( harits w)Karangan ilmiah ( harits w)
Karangan ilmiah ( harits w)
Rietz Wiguna2.2K views
第一课 信息概念 by librajin
第一课 信息概念第一课 信息概念
第一课 信息概念
librajin239 views
Etika Bisnis ( kritik iklan) by Rietz Wiguna
Etika Bisnis ( kritik iklan)Etika Bisnis ( kritik iklan)
Etika Bisnis ( kritik iklan)
Rietz Wiguna1.2K views
Bina button di Report menggunakan Macro Builder by Noor Taib
Bina button di Report menggunakan Macro Builder Bina button di Report menggunakan Macro Builder
Bina button di Report menggunakan Macro Builder
Noor Taib417 views
shawnees geometry by roslynroom3
shawnees geometryshawnees geometry
shawnees geometry
roslynroom3979 views
数据监测体系 by yixieshi
数据监测体系数据监测体系
数据监测体系
yixieshi490 views
I kursas bakalaurai by zzzdaina
I kursas bakalauraiI kursas bakalaurai
I kursas bakalaurai
zzzdaina176 views
Lead for trainers ls test2 by brucesimpson
Lead for trainers  ls test2Lead for trainers  ls test2
Lead for trainers ls test2
brucesimpson211 views
Slovak Consular Services in Belfast, 7 and 8 April_2014 by konzulatNYC
Slovak Consular Services in Belfast, 7 and 8 April_2014Slovak Consular Services in Belfast, 7 and 8 April_2014
Slovak Consular Services in Belfast, 7 and 8 April_2014
konzulatNYC678 views
Centro Estetico Vicenza - B-IO by vitalitysalus
Centro Estetico Vicenza - B-IOCentro Estetico Vicenza - B-IO
Centro Estetico Vicenza - B-IO
vitalitysalus391 views
Presentation by my Group by kipronobrian
Presentation by my GroupPresentation by my Group
Presentation by my Group
kipronobrian208 views
Boolean Operators by gvsulib
Boolean OperatorsBoolean Operators
Boolean Operators
gvsulib611 views
Write your own Web Copy - Webinar with Professional Copywriter, Jackie Barrie by Ann Halloran
Write your own Web Copy - Webinar with Professional Copywriter, Jackie BarrieWrite your own Web Copy - Webinar with Professional Copywriter, Jackie Barrie
Write your own Web Copy - Webinar with Professional Copywriter, Jackie Barrie
Ann Halloran333 views
Wordcamp 2011-new1 by codeart2011
Wordcamp   2011-new1Wordcamp   2011-new1
Wordcamp 2011-new1
codeart2011528 views

Similar to Introduction to Message-Oriented Middleware

Enterprise messaging with jms by
Enterprise messaging with jmsEnterprise messaging with jms
Enterprise messaging with jmsSridhar Reddy
1.4K views148 slides
Designing Application over mobile environment by
Designing Application over mobile environmentDesigning Application over mobile environment
Designing Application over mobile environmentMaulik Patel
282 views29 slides
1. Overview of Distributed Systems by
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed SystemsDaminda Herath
2.7K views32 slides
Mq Lecture by
Mq LectureMq Lecture
Mq Lecturebarnettj10974
980 views42 slides
MOM - Message Oriented Middleware by
MOM - Message Oriented MiddlewareMOM - Message Oriented Middleware
MOM - Message Oriented MiddlewarePeter R. Egli
29.4K views25 slides
Manish tripathi-e-commerce-middleware by
Manish tripathi-e-commerce-middlewareManish tripathi-e-commerce-middleware
Manish tripathi-e-commerce-middlewareA P
50 views20 slides

Similar to Introduction to Message-Oriented Middleware(20)

Enterprise messaging with jms by Sridhar Reddy
Enterprise messaging with jmsEnterprise messaging with jms
Enterprise messaging with jms
Sridhar Reddy1.4K views
Designing Application over mobile environment by Maulik Patel
Designing Application over mobile environmentDesigning Application over mobile environment
Designing Application over mobile environment
Maulik Patel282 views
1. Overview of Distributed Systems by Daminda Herath
1. Overview of Distributed Systems1. Overview of Distributed Systems
1. Overview of Distributed Systems
Daminda Herath2.7K views
MOM - Message Oriented Middleware by Peter R. Egli
MOM - Message Oriented MiddlewareMOM - Message Oriented Middleware
MOM - Message Oriented Middleware
Peter R. Egli29.4K views
Manish tripathi-e-commerce-middleware by A P
Manish tripathi-e-commerce-middlewareManish tripathi-e-commerce-middleware
Manish tripathi-e-commerce-middleware
A P50 views
middleware by rkk0o7
middlewaremiddleware
middleware
rkk0o71K views
Inter-Process Communication in distributed systems by Aya Mahmoud
Inter-Process Communication in distributed systemsInter-Process Communication in distributed systems
Inter-Process Communication in distributed systems
Aya Mahmoud15.9K views
Velocity Conference '13: Asynchronous messaging for performance optimization,... by Al Sargent
Velocity Conference '13: Asynchronous messaging for performance optimization,...Velocity Conference '13: Asynchronous messaging for performance optimization,...
Velocity Conference '13: Asynchronous messaging for performance optimization,...
Al Sargent4.5K views
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE by Aravind NC
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DEMC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
MC0085 – Advanced Operating Systems - Master of Computer Science - MCA - SMU DE
Aravind NC1.8K views
E health interoperability layer through kafka by Ifunga Ndana
E health interoperability layer through kafkaE health interoperability layer through kafka
E health interoperability layer through kafka
Ifunga Ndana662 views

Recently uploaded

Vertical User Stories by
Vertical User StoriesVertical User Stories
Vertical User StoriesMoisés Armani Ramírez
14 views16 slides
HTTP headers that make your website go faster - devs.gent November 2023 by
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023Thijs Feryn
22 views151 slides
Evolving the Network Automation Journey from Python to Platforms by
Evolving the Network Automation Journey from Python to PlatformsEvolving the Network Automation Journey from Python to Platforms
Evolving the Network Automation Journey from Python to PlatformsNetwork Automation Forum
13 views21 slides
Melek BEN MAHMOUD.pdf by
Melek BEN MAHMOUD.pdfMelek BEN MAHMOUD.pdf
Melek BEN MAHMOUD.pdfMelekBenMahmoud
14 views1 slide
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
85 views32 slides
Attacking IoT Devices from a Web Perspective - Linux Day by
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day Simone Onofri
16 views68 slides

Recently uploaded(20)

HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn22 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson85 views
Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri16 views
Piloting & Scaling Successfully With Microsoft Viva by Richard Harbridge
Piloting & Scaling Successfully With Microsoft VivaPiloting & Scaling Successfully With Microsoft Viva
Piloting & Scaling Successfully With Microsoft Viva
Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma39 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software263 views
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi127 views
Empathic Computing: Delivering the Potential of the Metaverse by Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst478 views
Case Study Copenhagen Energy and Business Central.pdf by Aitana
Case Study Copenhagen Energy and Business Central.pdfCase Study Copenhagen Energy and Business Central.pdf
Case Study Copenhagen Energy and Business Central.pdf
Aitana16 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf

Introduction to Message-Oriented Middleware

  • 1. Introduction to Message-Oriented Middleware Invited Talk to University of Limerick February ‘05 Edward Curry National University of Ireland, Galway edcurry@acm.org
  • 2. Further Information Message-Oriented Middleware in Middleware for Communications, Q. H. Mahmoud, Ed. Chichester, England: John Wiley and Sons, 2004, pp. 1-28. Full text available at: http://www.edwardcurry.org/publications/curry_MfC_MOM_04.pdf
  • 3. Presentation Outline  Interaction Models – Synchronous & Asynchronous Communication  Introduction to the Remote Procedure Call (RPC)  Introduction to Message-Oriented Middleware (MOM) – When to use MOM or RPC  MOM Overview – Message Queues – Messaging Models • Point-to-Point & Publish/Subscribe • Comparison of Messaging Models  Service-Oriented Architectures – Role of XML, Web Services, SOAP, MOM – Developing Service-Oriented Architectures Introduction to Message-Oriented Middleware 3
  • 4. Challenges of Distributed Computing Direct Remote Procedure Call (RPC) mechanisms struggle in large-scale widely distributed deployments Alternative to RPC has emerged Message-Oriented Middleware –any middleware infrastructure providing messaging capab. –peer-to-peer relationship between individual clients –each peer can send/receive messages to/from other peers Introduction to Message-Oriented Middleware 4
  • 5. Interaction Models  Two model dominate distributed computing environments – synchronous and asynchronous communication – a solid knowledge of models is key to understanding benefits and differences between MOM and other forms of distribution  Synchronous Interaction – caller must block & wait (suspend processing) until the called completes – participants do not have processing control independence • they rely on the return of control from the called systems  Asynchronous Interaction – caller retains processing control, does not need to block – requires an intermediary to handle the exchange of requests – participants retain processing independence (continue processing) regardless of the state of the others Introduction to Message-Oriented Middleware 5
  • 6. Synchronous Communication Introduction to Message-Oriented Middleware 6
  • 7. Asynchronous Communication Introduction to Message-Oriented Middleware 7
  • 8. Introducing RPC  Traditional Distribution model – Utilized in middleware platforms including • CORBA, Java RMI, Microsoft DCOM & XML-RPC – Based on the synchronous interaction model  RPC creates a facade, making both processes believe they are in the same process space – Similar to a local procedure call • control is passed to procedure in sequential synchronous manner  Direct conversation between two parties – (similar to a person-to-person telephone conversation) Introduction to Message-Oriented Middleware 8
  • 9. RPC Deployment Introduction to Message-Oriented Middleware 9
  • 10. RPC Cont.  Coupling – invasive mechanism of distribution – works on object or function interfaces, producing tightly coupled systems – Inflexible method of integrating multiple systems  Reliability – most impl. provide little or no guaranteed reliable communication capability – very vulnerable to service outages  Scalability – blocking nature of RPC can adversely affect performance – subsystems do not scale equally, effectively slows whole system down to the maximum speed of slowest participant – synchronous interactions use more bandwidth (several calls are needed)  Availability – systems built using the RPC model are interdependent – require simultaneous availability of all subsystems Introduction to Message-Oriented Middleware 10
  • 11. MOM  Based on the asynchronous interaction model – not required to block and wait on a message send  Allows delivery of messages when the sender or receiver is – not active or available to respond at the time of execution  Supports delivery for messages that may take minutes to deliver – as apposed to RPC that delivers in milliseconds or seconds • ( ! 100% True)  Sending application has no guarantee message will be read nor is it given guarantee about the time it will take to deliver – these aspects are mainly determined by the receiving application  Similar to the postal service – Messages are delivered to the post office; the postal service then takes responsibility for safe delivery of the message Introduction to Message-Oriented Middleware 11
  • 12. MOM Deployment Introduction to Message-Oriented Middleware 12
  • 13. MOM  Coupling – creates loose coupling between participants in a system • independent layer acts as an intermediary to exchange messages • ability to link systems without adapting source and target systems  Reliability – guarantee message delivery to each intended recipient exactly once • message loss is prevented by using a store and forward mechanism – high-level of reliability (typically configurable)  Scalability – decouples performance characteristics of the subsystems from each other • subsystems can scale independently – messaging models contain natural traits for effective load balancing (…)  Availability – high availability capabilities – does not require simultaneous or “same-time” availability of all subsystems Introduction to Message-Oriented Middleware 13
  • 14. When to use RPC or MOM  RPC – suffers from inflexibility and tight coupling – problematic to scale parts of the system and deal with service outages – assumes simultaneously available – require more bandwidth than a similar MOM interaction – designed on the notion of a single client talking to a single server, traditional RPC has no built in support for one-to-many communications – simplicity of the mechanism and straightforward implementation – guarantee of sequential processing - RPC is slow but consistent • work is always carried out in the correct order. • important considerations for systems that requires 100% temporal integrity – temporal inaccuracies  RPC is ideal if you want a strongly-typed/OO system with tight coupling, compile-time semantic checking and more straightforward impl.  MOM is an ideal solution if the systems will be a geographically dispersed deployment with poor network connectivity and stringent demands in reliability, flexibility and scalability Introduction to Message-Oriented Middleware 14
  • 15. Overview MOM  MOM Overview – Message Queues – Messaging Models • Point-to-Point & Publish/Subscribe • Comparison of Messaging Models Introduction to Message-Oriented Middleware 15
  • 16. Message Queues  Queues provide ability to store messages on MOM  Queue are sorted in a particular order – standard queue is the First-In First-Out (FIFO) queue  Other Types of Queues – Public Queue – Private Queue – Temporary Queue – Journal Queues – Connector/Bridge Queue – Dead-Letter/Dead-Message Queue Introduction to Message-Oriented Middleware 16
  • 17. Message Queues Introduction to Message-Oriented Middleware 17
  • 18. Messaging Models  Two main message models are commonly available – point-to-point – publish/subscribe  Both are based on the exchange of messages through a channel (queue)  Typical system will utilize a mix of these models to achieve different messaging objectives Introduction to Message-Oriented Middleware 18
  • 19. Point-to-Point Model  Straightforward asynchronous exchange of messages – message routed to consuming clients via a queue – no restriction on number of publishing clients – usually only a single consuming client (not a strict requirement) • each message is delivered only once to only one receiver  Messages are always delivered and will be stored in the queue until a consumer is ready to retrieve them Introduction to Message-Oriented Middleware 19
  • 20. Publish Subscribe Models  One-to-many and many-to-many distribution mechanism – allows single producer to send a message to one user or potentially hundreds of thousands of consumers  Clients "publish" to a specific topic or channel  Channels are “subscribed” to by clients to consume msgs  No restriction on the role of a client – may be both a producer and consumer of a channel§ Introduction to Message-Oriented Middleware 20
  • 21. Hierarchical Channels Hierarchical channels (topics) – Destination grouping mechanism in pub/sub model – Structure allows channels to be defined in a hierarchical fashion – Each sub-channel offers a more granular selection of the messages contained in its parent – Clients subscribe to the most appropriate level of channel  In large-scale systems, grouping of messages into related types (i.e. into channels) helps to manage large volumes of different messages Introduction to Message-Oriented Middleware 21
  • 22. Comparsion of Models Most messaging objectives can be achieved using either model or combination of both Fundamental difference – publish/subscribe model • every consumer to a topic/channel will receive a message published to it – point-to-point model • only one consumer will receive it Topics can be used to categorize different types of messages Pub/Sub model is more powerful messaging model for flexibility, but it is more complex Introduction to Message-Oriented Middleware 22
  • 23. MOM Services Message Filtering Transactions Reliable Message Delivery Guaranteed Message Delivery Message Formats Load Balancing Clustering Introduction to Message-Oriented Middleware 23
  • 24. Programming MOM  A large number of MOM implementations exist – WebSphere MQ (formerly MQSeries), TIBCO, SonicMQ, Hermes, SIENA, Gryphon, JEDI, REBECCA, OpenJMS, etc  Java Message Service (JMS) – Common way for Java programs to create, send, receive and read MOM messages – JMS specification defines • general purpose Application Programming Interface (API) • set of semantics that describe the interface and general behaviour of a messaging service  Write code once using API and plug-in desired MOM – makes client-messaging code portable between MOM providers Introduction to Message-Oriented Middleware 24
  • 25. Service Oriented Architecture  The problems and obstacles encountered during system integration pose major challenges for IT departments: “70% of the average IT department budget is devoted to data integration projects” –IDC “PowerPoint engineers make integration look easy with lovely cones and colorful boxes” – Sean McGrath, CTO, Propylon “A typical enterprise will devote 35% - 40% of its programming budget to programs whose purpose is solely to transfer information between different databases and legacy systems”- Gartner Group Introduction to Message-Oriented Middleware 25
  • 26. Service Oriented Architecture  MOM used to create highly open and flexible systems that allow the seamless integration of subsystems  MOM solves many of the transport issues with integration  However, major problems still exist with the representation of data, its format and structure  To develop a truly open system, MOM requires the assistance of additional technologies such as XML and Web Services Introduction to Message-Oriented Middleware 26
  • 27. XML  Programming language and platform independent format for representing data – eliminates any networking, operating system or platform binding that a binary proprietary protocol would use  Once data is expressed in XML, it is trivial to change the format  To use XML as a message exchange medium, standard formats need to be defined to structure the XML messages – i.e. ebXML andOASIS Universal Business Language (UBL) • With UBL, you convert your internal message formats to the standard UBL format and export to the external environment Introduction to Message-Oriented Middleware 27
  • 28. Web Services  Web Services – platform and language independent standards defining protocols for heterogeneous integration  Can be seen in a number of ways – Business-to-business/enterprise application integration tool – natural evolution of basic RPC mechanism  A key benefit of a web services deployment is that they act as a facade to the underlying language or platform  Web services which are often touted as a replacement for traditional RPC – Viewed in this light they still suffer from many of its shortcomings Introduction to Message-Oriented Middleware 28
  • 29. SOAP The Simple Object Access Protocol (SOAP) – simple and lightweight mechanism for exchanging structured and typed information between peers in a decentralized, distributed environment using XML – allows you to bind it to a transport mechanism • SMTP, HTTP, or JMS Has a number of uses – document exchange protocol – heterogeneous interoperability standard – wire protocol standard (something not defined in JMS) – RPC mechanism In this talk we SOAP see as a document exchange protocol between heterogeneous systems Introduction to Message-Oriented Middleware 29
  • 30. Developing SOAs Through a combination of XML, SOAP and WS, we are able to create Service-Oriented Architectures (SOA) A service is a set of input messages sent to a single or composition of objects, with the return of causally related output messages –fundamental design concept is to reduce processing to logic black boxes –standard XML format for input and output formats An important aspect of SOAs is message centric structure Once initial infrastructure created for the architecture, the amount of effort to connect to further systems is minimal Introduction to Message-Oriented Middleware 30
  • 31. XML Transformation Pipelines  Where message formats differ – XML based integration can convert the message to and from the format using XML transformation pipeline – data transformation can be seen as just another assembly line problem – with transformations taking place outside of the applications it a non-invasive method of integration Introduction to Message-Oriented Middleware 31
  • 32. Sample SOA Deployment Introduction to Message-Oriented Middleware 32
  • 33. SOA Summary XML + Web Services + MOM = Open Systems Service Oriented Architecture Introduction to Message-Oriented Middleware 33
  • 34. Summary All good Distributed Application Deployments (DAD)s need a good Message-Oriented Middleware (MOM) -Anon. Introduction to Message-Oriented Middleware 34

Editor's Notes

  1. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  2. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  3. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  4. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  5. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  6. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  7. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  8. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  9. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  10. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  11. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  12. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  13. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  14. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  15. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  16. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  17. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  18. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  19. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  20. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  21. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  22. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  23. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  24. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  25. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  26. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  27. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  28. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  29. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  30. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  31. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\
  32. Edward Curry, ARMAdA: Creating a Reflective Fellowship\\\\