Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is rabbitmq bidirectional?

Tags:

rabbitmq

Producer sends messages rabbitmq, and the consumer receives messages from rabbitmq, then consumer send messages back to producer via rabbitmq.

Is it possible?

like image 988
Moto Avatar asked Jan 30 '13 07:01

Moto


People also ask

Is RabbitMQ synchronous or asynchronous?

Messaging enables software applications to connect and scale. Applications can connect to each other, as components of a larger application, or to user devices and data. Messaging is asynchronous, decoupling applications by separating sending and receiving data.

Is RabbitMQ push or pull?

RabbitMQ employs a push model and prevents overwhelming users via the consumer configured prefetch limit. This model is an ideal approach for low-latency messaging. It also functions well with the RabbitMQ queue-based architecture.

Is RabbitMQ sequential?

A RabbitMQ Queue is a sequential data structure in which an item can be enqueued at the last or dequeued from the head. Publishers and Consumers communicate using a queue-like storage mechanism.

Is RabbitMQ FIFO or LIFO?

Queues in RabbitMQ are FIFO ("first in, first out"). Some queue features, namely priorities and requeueing by consumers, can affect the ordering as observed by consumers.


1 Answers

Are you trying to implement an RPC type of system, or do you just want to know how to send messages in both directions?

The basic pipe is unidirectional. You cannot send messages from the consumer to the producer through the same queue that the consumer received messages from the producer.

If you want send messages the other way, your consumer will need to be a producer as well, and your producer will need to be a consumer as well.

like image 59
robthewolf Avatar answered Feb 06 '23 08:02

robthewolf