5
votes

Is there a way to use AMQP to communicate 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.)

2

2 Answers

5
votes

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 communicate with RabbitMQ.

1
votes

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.