admin管理员组

文章数量:1305230

Is there a way to use AMQP to municate with RabbitMQ over WebSockets?

I guess the real question is if there is support for this in RabbitMQ and if there are any client side libraries for the browser? Can not really wrap my mind around it and google provides no answers for me.

Today we are using the RabbitMQ STOMP-SockJS solution. But that does not work very well with LVC (Last Value Cache) and exchanges other than the default. Since it does not allow to bind multiple routing keys to the same queue. (It automatically creates a new queue for each subscription.)

Is there a way to use AMQP to municate with RabbitMQ over WebSockets?

I guess the real question is if there is support for this in RabbitMQ and if there are any client side libraries for the browser? Can not really wrap my mind around it and google provides no answers for me.

Today we are using the RabbitMQ STOMP-SockJS solution. But that does not work very well with LVC (Last Value Cache) and exchanges other than the default. Since it does not allow to bind multiple routing keys to the same queue. (It automatically creates a new queue for each subscription.)

Share Improve this question asked Dec 9, 2015 at 13:19 ViktorViktor 5755 silver badges12 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 7

The best (most flexible, scalable, secure, etc) way to do this in my experience is to build a web server for your WebSockets and have the web server municate with RabbitMQ.

Kaazing has an AMQP JavaScript API that works with one of RabbitMQ's implementations of AMQP. Its free for developers and can be downloaded here

Full disclosure: I work for Kaazing.

本文标签: javascriptAMQP over WebSocket with RabbitMQStack Overflow