Questions tagged [rabbitmq-exchange]

In RabbitMQ, messages are not published directly to a queue. Instead, the producer sends messages to an exchange. Use this tag only if your question is about the RabbitMQ Exchanges, or if the question revolves around the routing keys or message queues to which the exchange delivers the message for end publishing.

RabbitMQ is a message broker based on the AMPQ protocol.

Exchanges are AMQP entities where messages are sent. Exchanges take a message and route it into zero or more queues. The routing algorithm used depends on the exchange type and rules called bindings. AMQP 0-9-1 brokers provide four exchange types:

  • Direct exchange: (empty string) and amq.direct
  • Fanout exchange: amq.fanout
  • Topic exchange: amq.topic
  • Headers exchange: amq.match (and amq.headers in RabbitMQ)

Besides the exchange type, exchanges are declared with a number of attributes, the most important of which are:

  • Name
  • Durability (exchanges survive broker restart)
  • Auto-delete (exchange is deleted when all queues have finished using it)
  • Arguments (these are broker-dependent)

Exchanges can be durable or transient. Durable exchanges survive broker restart, whereas transient exchanges do not (they have to be redeclared when the broker comes back online). Not all scenarios and use cases require exchanges to be durable.

RabbitMQ is open source message broker software (sometimes called message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP). The RabbitMQ server is written in the Erlang programming language and is built on the Open Telecom Platform framework for clustering and failover. Client libraries to interface with the broker are available for all major programming languages.

419 questions
0
votes
1 answer

Which type of message to use between consumer and producer

I'm using RabbitMQ as message broker. I have a consumer and a producer. So far I have created a payload with few primitive attributes. The problem is, as long as I need more information from the payload in my consumer, I need to change payload so I…
Rapster
  • 484
  • 1
  • 5
  • 23
0
votes
1 answer

Can you federate the "default" exchange? Should you federate the "default" exchange?

I'm experimenting with the RabbitMQ and also the Federation plugin. I want to test RabbitMQ Federation with two brokers configured for bi-directional upstream but my sender/receiver python scripts use the "default" exchange ... which does not get…
Trevor Boyd Smith
  • 18,164
  • 32
  • 127
  • 177
0
votes
1 answer

NServiceBus RabbitMQ - DirectRoutingTopology vs Separate exchanges for each message type

We're using NServiceBus on top of MSMQ. Now we are making a move to use RabbitMQ - we would like a centralized queue, and found that RabbitMQ best answer our needs. Converting our project was easy, and in RabbitMQ we've noticed that it created an…
0
votes
0 answers

Memory limit set to 819MB of 4095MB total - RabbitMQ - How to set set_vm_memory_high_watermark

My rabbitMQ service is crashing as soon as I start it. The service was running fine for last two years but suddenly, it stopped working. I looked at the log and saw this: =INFO REPORT==== 8-Oct-2015::11:40:56 === Starting RabbitMQ 3.0.2 on Erlang…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
1 answer

Rabbitmq How to read data at once without while loop

I'm reading data from RabbitMQ (java client) in this way. while(true) { QueueingConsumer.Delivery delivery = consumer.nextDelivery(); String message = new String(delivery.getBody()); …
Anil Kumar
  • 2,521
  • 7
  • 23
  • 40
0
votes
1 answer

How to install Install rabbitmq server on centos7

I tried to follow this link on stackoverflow install rabbitmq-server but it is not working. Getting error No package rabbitmq-server-3.3.4-1.noarch.rpm available. wget -O /etc/yum.repos.d/epel-erlang.repo…
geeks
  • 2,025
  • 6
  • 31
  • 49
0
votes
1 answer

What if a RabbitMQ message kills multiple worker?

I am a noob on RabbitMQ. I started using it and it's serving my purpose so far. In my settings there should be around 10 consumer. I am wondering to know If a message kills multiple consumer/worker how I check that and drop that message because…
Asad
  • 2,782
  • 2
  • 16
  • 17
0
votes
1 answer

RabbitMq topic exchange

Is it possible to achieve the following scenario using RabbitMQ topic exchange. Lets say I have two queues: Queue1: routing key MainRoute.Route1 Queue2: routing key MainRoute.Route2 When I publish my message with routing key: MainRoute.Route1 ->…
schizofreindly
  • 177
  • 2
  • 13
0
votes
1 answer

no fix order of messages being delivered to Rabbitmq Server in multithreading Environment

please have a look into my code first. This is my test class which is creating 2000 of threads and those threads are sending messages. public class MessageSenderMultipleThreadMock { @Autowired MessageList message; @Autowired …
lesnar
  • 2,400
  • 7
  • 41
  • 72
0
votes
3 answers

RabbitMQ: How to delete/move messages in queue from curl

I've multiple RabbitMQ Servers. I need an interface(with JSP) where i can manage(delete queues/exchanges/messages) of all these servers . Internally I'll call the curl commands to do the operations. Example: To create queue curl -i -u test:test -H…
Anil Kumar
  • 2,521
  • 7
  • 23
  • 40
0
votes
2 answers

Transferring data from postgres to rabbitmq

I am quiet new to rabbitmq and currently trying to install Postgres listen exchange plugin at: https://github.com/aweber/pgsql-listen-exchange I tried following the instructions listed there but i am getting following errors: /bin/sh: escript:…
Aditya Patel
  • 569
  • 1
  • 10
  • 28
0
votes
1 answer

RabbitMQ Routing Keys

Good Day. Is there a way to retrieve routing keys for an existing exchange (fanout or topic) via the browser based UI? I don't have access to the client source code (producer) to see which routing keys are being sent to the model. Thank…
jdg
  • 3
  • 2
0
votes
0 answers

RabbitMQ how to do routing by property?

I want to do RabbitMQ routing (via exchanges) by properties or more specific by the property type. This is my sending code: AMQP.BasicProperties.Builder propsBuilder = new…
Frederic Leitenberger
  • 1,949
  • 24
  • 32
0
votes
1 answer

RabbitMQ creates a temporary queue but don't know how or when

I'm using Mule ESB with two apps (one publishes status to the other through rabbitMQ). ONLY in my production environment, I get these amqp.gen- queues popping up but they're locked and I can't see what's inside of them. They're bound to my exchange…
dlite922
  • 1,924
  • 3
  • 24
  • 60
0
votes
1 answer

Setting up rabbitMQ on AWS instance

I am having trouble setting up connection to a remote RabbitMQ server. Basically i have the consumer and the server running on a remote ubuntu machine and want my local machine to act as publisher. I have ssh access to the remote machine. I have…
RDismyname
  • 173
  • 1
  • 1
  • 10