ESB 可以向订阅者发送 HTTP POST 吗?
我正在研究 ESB 和 ESB。排队实现,在大多数情况下,当实现为发布/订阅时,订阅者需要了解发布者,并且需要启动与发布者的连接或监视主题队列以获取消息。
是否有任何流行的解决方案支持自动向 HTTP/S 端点发送消息?我想配置主题以将消息发送到一个或多个订阅 URL,以便当消息到达队列时它会自动触发 HTTP/S POST。
I'm researching ESBs & Queuing implementations and it looks like in most cases when implemented as a pub/sub the subscriber needs to know about the publisher and either needs to initiate a connection to the publisher or watch the topic queue to grab a message.
Do any of the popular solutions support automatically sending messages to an HTTP/S endpoint? I would like to configure topics to send messages to one or many subscribing URLs so when the message hits the queue it automatically fires off a HTTP/S POST.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
为此,您可以使用 WSO2 Message Broker[1]。 WSO2 MB 支持 WS-Eventing 规范,该规范允许用户使用 http 端点作为事件接收器进行订阅 [2]。 WSO2 ESB 也可以附带此组件。
[1] http://wso2.org/library/message-broker
[2] http://wso2.org/library/articles/2011/08/messaging-eventing-soa
you can use WSO2 Message Broker[1] for this. WSO2 MB supports WS-Eventing specification which allows users to subscribe using an http end point as an event sink [2]. WSO2 ESB can also comes with this components.
[1] http://wso2.org/library/message-broker
[2] http://wso2.org/library/articles/2011/08/messaging-eventing-soa
wso2 esb 支持队列实现以及 pub/sub 模型
http://wso2.org/library/esb
wso2 esb supports Queuing implementations and also pub/sub model
http://wso2.org/library/esb
感谢您的反馈。 WS的事件使我走下了另一条路,我发现了我正在寻找“ Webhooks”一词。 webhook正是我要求实现的要求。但是,我不一定会回答我的问题,因为我正在寻找可靠的&耐用的服务将为我处理这一点。但是,现在我可以对此提出一个更具体的问题。
Thanks for the feedback. WS-Eventing sent me down another path where I discovered the term I was looking for "Webhooks." A webhook is precisely what I was requesting that I need to implement. However, I didn't necessarily get an answer to my question because I was looking for a reliable & durable service that would handle this for me. However, now I can ask a more specific question about that.
您应该查看 PServiceBus(pservicebus.codeplex.com),它支持使用 http 传输进行订阅。因此,当消息发布到总线时,它将向订阅者的订阅中指定的 url 发送 HTTP POST,并且还允许您自定义在 url 上传递参数的方式。示例可以在这里找到: http://pservicebus.codeplex.com/SourceControl/changeset/view/e6362c76f12b#pServiceBus%201.0.2%2fSamples%2fInvokeWebService%2fInvokeWebService%2fProgram.cs
在示例中,它显示了如何ESB 可以使用以下命令调用 HTTP POST 和 Web 服务(我知道这不是您想要的) HttpTransport。
You should checkout PServiceBus(pservicebus.codeplex.com), it support subscribing using a http transport. So when a message is publish to the bus, it will send an HTTP POST to the url that is specified in your subscriber's subscription and it also allows you to customize how the parameter are passed on the url. And example can be found here: http://pservicebus.codeplex.com/SourceControl/changeset/view/e6362c76f12b#pServiceBus%201.0.2%2fSamples%2fInvokeWebService%2fInvokeWebService%2fProgram.cs
In the example, it shows how the ESB can invoke both an HTTP POST and Web Service(I know that is not what you are looking for) using the HttpTransport.
您可以查看以下文章,其中解释了 WSO2 ESB、WSO2 MB 和 WSO2 AS 的发布订阅。
http://wso2.org/library/articles/2011 /12/wso2-esb-example-pubsub-soa
you may look at the following article which explain pub sub with WSO2 ESB, WSO2 MB and WSO2 AS.
http://wso2.org/library/articles/2011/12/wso2-esb-example-pubsub-soa
是的,ESB 不仅支持 AMQP、STOMP、SMTP、REST、JMS 等多种协议。
服务组合 很久以前就使用 WS-Notification 支持它,您可以在 JBOSS A-MQ,进一步也可以使用 JBOSS Fuse Service Works 来实现
Yes, not only that ESB would support multiple protocols like AMQP, STOMP, SMTP, REST, JMS etc.
Service mix supported it long back using WS-Notification, you can find detail description about the implementation in JBOSS A-MQ, Further it is also possible to implement using JBOSS Fuse Service Works