队列管理器和消息代理之间的区别 [英] Difference between queue manager and message broker

查看:124
本文介绍了队列管理器和消息代理之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Websphere Message Broker和队列管理器之间有什么区别?我猜队列管理器将消息放入队列,将消息从队列中取出,将消息移至回退队列等.那么代理的工作是什么?

What is the difference between a Websphere Message Broker and a Queue Manager. I guess the queue manager puts messages in the queue, takes messages out of the queue, moves messages to backout queues etc. So what is the job of the broker?

它是位于发布者和队列管理器之间还是位于使用者和队列管理器之间?

Does it sit between the publisher and the Queue Manager or between the consumer and the Queue Manager?

推荐答案

Websphere MQ是使用 AMQ(异步消息传递协议)的软件.您可以通过Websphere MQ在应用程序之间实现异步消息传递,这将使您的基础结构松散耦合(即使其他应用程序在基础结构中,应用程序也可以继续工作).

Websphere MQ is a software which uses the AMQ(Asynchronous messaging protocol). You can achieve asynchronous messaging between your applications via Websphere MQ, which will make your infrastructure loosely coupled(Applications can keep working even though other applications are down in the infrastructure).

但是基础架构中的应用程序可能无法理解彼此的消息格式,因此仅将消息发送到目标应用程序可能还不够.您可能会 require transformation 消息.

But the applications in your infrastructure may not be able to understand each others' message formats, and hence just sending the message to the target application may not be enough. You may require transformation of the message.

您可以通过使用Websphere MQ API编写自己的程序来实现. 您的程序应该能够执行以下操作:

You can do it by writing your own program using the Websphere MQ API. Your program should be able to do the below things:

  1. 从特定队列中选择消息(使用MQGET)
  2. 应该能够理解该消息.就是说这是XML消息.然后,您的程序必须能够解析XML并读取 里面的数据.
  3. 阅读输入消息后,您将根据需求制作输出消息.
  4. 然后,您将发布消息或将消息放入特定的队列(例如TargetQ),以便目标应用程序可以获取 消息.然后,目标应用程序将通过以下方式获取消息 在Tar​​getQ上发布MQGET或订阅主题为 从您的应用程序发布.
  1. Pick message from a specific queue (using MQGET)
  2. Should be able to understand the message. That is say it's an XML message. Then your program must be able to parse the XML and read the data in it.
  3. After reading the input message you will make your output message based on the requirements.
  4. Then you will either publish the message or put the message in some specific queue(say TargetQ), so that the target application can get the message. Target application will then get the message either by issuing MQGET on the TargetQ or subscribing to the topic which was published from your application.

但是编写自己的程序将花费大量的开发时间和精力,并且可能会有些复杂.

But writing your own program will take a lot of development time and effort and also may be a bit complex.

因此,IBM提供了自己的软件来完成这项工作,即"Websphere Message Broker" .

So, IBM provided its own software to do the job, which is "Websphere Message Broker".

WMB允许您创建程序 very easily a lot faster .

WMB allows you to create programs very easily and a lot faster.

WMB中的适当节点将为您执行上述所有步骤.实际上,它提供了除上述步骤外的许多功能.

Appropriate nodes in WMB will do all above steps for you. In fact it provides lot many features than the above steps.

Websphere MQ仍然没有HTTP侦听器.但是,消息代理可以.它允许您托管 web services 并具有基于HTTP的流等,它们也以安全的方式(支持SSL)提供.

Websphere MQ still doesn't have an HTTP listener. But, a message broker does. It allows you to host web services and have HTTP based flows etc that too in a secure way(Supports SSL).

这篇关于队列管理器和消息代理之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆