Internet and Intranet Protocols and Applications.ppt
《Internet and Intranet Protocols and Applications.ppt》由会员分享,可在线阅读,更多相关《Internet and Intranet Protocols and Applications.ppt(42页珍藏版)》请在麦多课文档分享上搜索。
1、Internet and Intranet Protocols and Applications,Lecture 14Introduction to MQSeries And Asynchronous Messaging May 1, 2002Joseph Conron Computer Science Department New York University jconroncs.nyu.edu,What is MQSeries?,A middleware product that implements a messaging and queuing framework.Middlewar
2、e - an intermediate software component that bridges dissimilar computing environments. Unix, MVS, OS/400 Tandem, VMS, NT, etc.SNA, NetBios, TCP/IP Cobol, C, JAVA,Messaging and Queueing,Messaging - programs communicate by sending data in messages rather than by calling each other directly. Queuing -
3、messages are put on queues in storage, eliminating the need for programs to be logically connected. A messaging and queuing framework is inherently ASYNCHRONOUS!,Asynchronous vs. Synchronous Communications,Synchronous: App sends request, then blocks until request is processed. Requires service avail
4、able at EXACTLY same time as client needs service. Asynchronous: App sends request and checks at some future time if complete. Service need not be available when client sends request,Synchronous: good/bad,Easy to program Outcome is known immediately Error recovery easier (usually) Better real-time r
5、esponse (usually),Service must be up and ready requestor blocks, held resources are “tied up” Usually requires connection-oriented protocol,Good,Bad,Requests need not be targeted to specific server. Service need not be available when request is made No blocking, so resources could be freed Could use
6、 connectionless protocol,Response times are unpredictable error handling usually more complex Usually requires connection-oriented protocol Harder to design apps?,Good,Bad,Asynchronous: good/bad,Messaging vs. Procedure Calls,As programmers, many of us think procedurally, so using procedures is “natu
7、ral” extension of how we think. Messages are an abstract concept: harder for us to conceptualize relationship between actions and messages! But Wait! Something good happens when we use abstractions!,We are free to concentrate on the design of the application itself. We are no longer concerned with d
8、etails of the environment. Our application is suddenly portable and to some degree, extensible.,A Brief History of MQSeries,1992 Systems Strategies (SSI) develops ezBridge, a messaging and queuing product for VMS, Tandem, and Unix IBM announces Networking Blueprint defining three standard APIs for p
9、rogram to program communication: CPI-C, RPC, MQI1992-3State Street Bank (Boston) evaluates IBM messaging product (code name “Victory”) for IBM CICS/ESA and SSIs ezBridge on VMS and Tandem. “State Street Bank would like to announce the wedding of IBM and Systems Strategies!” 1993 IBM buys intellectua
10、l property rights for ezBridge from SSI,The Brides Wedding Preparation (What SSI had to do),Implement IBM Channel Protocol over TCP/IP and LU6.2 (more about channels later).Implement the MQI interface functions (MQCONN, MQOPEN, MQPUT, MQGET, MQCOMMIT, MQCLOSE, MQDISC).Implement MQI Error Semantics (
11、failure conditions should look the same on all systems),MQSeries/ezBridge Integration Objectives,Applications written in C using ezBridge on VMS and Tandem had to exchange messages with applications written in (COBOL?) Using MQI under CICS/ESA.System intercommunication using channel protocol over TC
12、P/IP and LU6.2 (that is, A VMS system had to “look” to IBM machine just like another IBM system!).,MQSeries Platform Rollout,Initially, IBMs version of MQSeries ran only on mainframe (CICS/ESA, IMS/ESA, and eventually VSE).SSI version (called MQSeries Version 1) initially released on: VMS, Tandem, A
13、S/400, and Unix (SCO, UnixWare).1994/1995 -IBM releases the first three “distributed” platforms: AIX, OS/2, and AS/400. The AIX version becomes the “reference port”.Over time, IBM replaced SSI versions with “ports” of its reference system.Today - MQSeries runs on over 35 platforms,How Messaging & Qu
14、euing Works,Programs communicate by putting messages on queues. Here, program A puts a message on Queue1, which is read by program B.,Note: A and B need not be on the same machine!,How Messaging & Queuing Works (2),Communication can be one-way or two-way. Here, A sends to B on Queue1, and B responds
15、 to A on Queue2,Messaging and Queuing Characteristics,Three key facts about Messaging and Queuing differentiate it from other communication styles: 1) Communicating programs can run at different times. 2) There are no constraints on application structure. 3) Programs are insulated from environmental
16、 differences. Lets examine each of these characteristics in more detail.,Applications Can Run at Different Times,Either program can be unavailable,Key Concept: message queue exists independently from programs that use them!,No Constraints on Application Structure,There can be a one to many relations
17、hip between applications,Or a many to one relationship between applications,Applications Shielded from Environmental Differences,Dont care what OS is used. Dont care what language theyre written in Dont care what the underlying communication protocol is used.,Applications Shielded from Environmental
18、 Differences,Applications,Programmatic API,Communications using Message Channels,Queue Manager,Queue Manager,Message Queue,MQSeries Objects: Queue Manager,Queue Manager Controls access to queues: administration (create, delete, etc) usage (Put, Get) serves as transaction (syncpoint) coordinator for
19、all queue operations. Accessed through the Message Queue Interface (MQI) Queue Managers have names (identities) that are UNIQUE in a network (like host names).,MQSeries Objects: Queues,MQSeries defines four types of queues. A queue instance is fully qualified by its queue manager and queue name.Loca
20、l Queue - an actual queue for which storage is allocated.Remote Queue - a definition of a queue on a different queue manager (acts somewhat like a pointer)Alias Queue - another name for a local or remote queue. Typically used to switch queue destinations without modifying program code.Model Queue -
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- INTERNETANDINTRANETPROTOCOLSANDAPPLICATIONSPPT

链接地址:http://www.mydoc123.com/p-376543.html