用于RabbitMQ的REST API [英] REST API for rabbitmq

查看:567
本文介绍了用于RabbitMQ的REST API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将数据从$ .ajax发送到RabbitMQ?

Is there a way how can I send data to RabbitMQ from $.ajax?

我的应用程序由数千个Web客户端(用js编写)组成和WCF REST服务,现在我想弄清楚如何为我的应用程序创建可扩展点。这个想法是要有一个Rabbitmq实例来接收来自放置在一侧的js客户端的消息,以及一个WCF Workflow Services实例,该实例正在从队列中接收挂起的消息。

My application is made up of several thousands web-clients (written on js) and WCF REST service and now I am trying to figure out how can I create a scalable point for my application. The idea is to have a rabbitmq instance which receives messages from js clients placed on one side, and instances of WCF Workflow Services which are taking pending messages from the queue.

I知道AMQP和HTTP是完全不同的东西。

I understand that AMQP and HTTP is pretty different things.

所以问题是-是否为Rabbit mq提供了REST接口或某种网关

So the question is - is there a REST interface for rabbit mq or some sort of gateway for it

推荐答案

RabbitMQ的开发人员工具页面,并且它们还提供了实验JSON- RPC插件,允许通过HTTP访问进行AMQP。

There are lots of 3rd-party HTTP plugins listed on RabbitMQ's developer tools page, and they also offer an experimental JSON-RPC plugin that allows for AMQP over HTTP access.

您还应该查看 RabbitJS SockJS ,看看Rabbit团队正在做些什么,以分别将消息传递到node.js和WebSockets的世界。

You should also take a look at RabbitJS and SockJS to see what the Rabbit team is doing to bring messaging to the worlds of node.js and WebSockets, respectively.

这篇关于用于RabbitMQ的REST API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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