Middleware Basics

11,888 views

Published on

Published in: Technology

Middleware Basics

  1. 1. Middleware By: Varun Arora [email_address] www.varunarora.in 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  2. 2. Table of Contents <ul><li>Middleware </li></ul><ul><li>Use </li></ul><ul><li>Middleware Types </li></ul><ul><li>Message Oriented Middleware </li></ul><ul><li>Advantages </li></ul><ul><li>Products </li></ul><ul><li>Architectural Significance </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  3. 3. Middleware - Definition <ul><li>Middleware is connectivity software that consists of a set of enabling services that allow multiple processes running on one or more machines to interact with each other. </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  4. 4. Middleware – Technical Detail <ul><li>Middleware services are sets of distributed software that exist between the application and the operating system and network services on a system node in the network. </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  5. 5. Middleware – Use 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 API Middleware (Distributed System Services) Platform OS Platform interface Platform interface Platform OS Application Application
  6. 6. Middleware - Use <ul><li>Middleware services provide a more functional set of API than OS and network services to allow an application to – </li></ul><ul><ul><li>Locate transparently across the network, providing interaction with other application or service </li></ul></ul><ul><ul><li>Be independent from network services. </li></ul></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  7. 7. Middleware - Use <ul><ul><li>Be reliable and available. </li></ul></ul><ul><ul><li>Scale-up in capacity without losing function. </li></ul></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  8. 8. Middleware – Different Forms <ul><li>Transaction Processing (TP) monitors. </li></ul><ul><li>Remote Procedure Calls (RPC) </li></ul><ul><li>Message Oriented Middleware (MOM) </li></ul><ul><li>Object Request Brokers (ORBs) </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  9. 9. TP Monitors - Demonstration 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 Client Transaction Type Requests Database Processing Routines Client Client Client Client Client Transaction Processing Monitor
  10. 10. RPC - Demonstration 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 T R A N S P O R T N E T W O R K N E T W O R K T R A N S P O R T RPC Stub RPC Stub Application Application Server Application specific procedure invocations and returns
  11. 11. ORB - Demonstration 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 Client Application Remote Service (Object) ORB Locate service Activate service communicate Establish connection
  12. 12. Message Oriented Middleware <ul><li>MOM (Message Oriented Middleware) is a client / server infrastructure which allows the application to be distributed over multiple heterogeneous platforms. </li></ul><ul><li>Reduces complexity of applications spanning operating systems and network protocols by insulating them from un-necessary details. </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  13. 13. Message Oriented Middleware <ul><li>Data is exchanged by message passing and/or message queuing supporting both synchronous and asynchronous interactions between distributed computing processes. </li></ul><ul><li>The MOM system ensures message delivery by using reliable queues and by providing the directory, security, and administrative services required to support messaging. </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  14. 14. MOM - Demonstration 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 Queue MOM Provider Message Message Application A (Client A) Application B (Client B) A P P L I C A T I O N M O M A P I T R A N S P O R T N E T W O R K A P P L I C A T I O N M O M A P I T R A N S P O R T N E T W O R K
  15. 15. MOM - Advantages <ul><li>Asynchronous </li></ul><ul><li>Flexible </li></ul><ul><li>Portability </li></ul><ul><li>Interoperability </li></ul><ul><li>Reduces Complexity </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  16. 16. MOM - Products <ul><li>IBM Websphere MQ Series </li></ul><ul><li>Sonic MQ </li></ul><ul><li>MS MQ </li></ul><ul><li>Java Message Queue </li></ul>3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09
  17. 17. MOM - Architectural Significance 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 Mainframe Database Transaction J2EE Application Middle Layer Listener Listener Message Message Message Message Message Process C Process B Process A A P P L I C A T I O N 1 2 3 4 5 6 7 8 0 9 C B A Q1 Q2
  18. 18. Queries?? Thank You!! 3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09

×