Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement rabbitmq in angular js

I am using node js resful api and amqp to handle the api requests. The rabbitMQ is working fine in Node js but its not possible in angular js. How can I implement amqp in client side angular js script.

like image 499
LearnCode Master Avatar asked May 04 '16 05:05

LearnCode Master


People also ask

Is RabbitMQ pull or push?

RabbitMQ uses a push-based model with a smart producer, which means the producer decides when to push data. A prefetch limit is defined on the consumer to stop the producer from overwhelming consumers. Such a push-based approach is suited for low latency messaging.

Does RabbitMQ have an API?

Overview. The RabbitMQ management plugin provides an HTTP-based API for management and monitoring of RabbitMQ nodes and clusters, along with a browser-based UI and a command line tool, rabbitmqadmin.

Is RabbitMQ round robin?

By default, RabbitMQ will send each message to the next consumer, in sequence. On average every consumer will get the same number of messages. This way of distributing messages is called round-robin.

How do I create a connection in RabbitMQ?

In order for a client to interact with RabbitMQ it must first open a connection. This process involves a number of steps: Application configures the client library it uses to use a certain connection endpoint (e.g. hostname and port) The library resolves the hostname to one or more IP addresses.


1 Answers

you can use the web-stomp plugin. But its not good idea, use rabbitmq from angular, its not safe way

https://www.rabbitmq.com/web-stomp.html

like image 120
Igor Prozhoha Avatar answered Sep 19 '22 11:09

Igor Prozhoha