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
0 answers

Mock IRabbitMQFactory using xunit

How to mock the constructor using xunit if I have the following service : public class MyService : IMyService { private readonly IPublisher _publisher; public MyService (IRabbitMQFactory mqFactory) { …
Midlo215
  • 29
  • 3
0
votes
0 answers

Why droped RabbitMQ component in ApacheCamel 4.0.0?

It would be cool if Claus Ibsen answered this question... Why was the rabbitmq component removed? Perhaps there is some idea for this or a higher meaning? Now my team wants to move to apache-camel 4.0.0, but now they need to use spring-rabbit in…
0
votes
0 answers

I'm not able to see messages on queue on RabbitMQ managment portal with MQTT over WebSocket and they are not stored in a queue

Following the RabbitMQ documentation I'm trying to subscribe and receive messages in the browser from the /topic/test topic. Meanwhile to send them to RabbitMQ I'm using a program called mqtt-explorer. In the console of the browser I'm able to see…
0
votes
0 answers

RabbitMQ Header Exchange based Shovel

Hello Team, Whats the bets way to solve this problem? Solution 1 is to have mirror queues in vHost 1 for all corresponding destination queues and create a shovel between queues. Is there any alternatives which avoids creating a mirror queue in…
0
votes
0 answers

Multiple suscriber suscribes single queue and consumes messages according to its set property

actually I am start use of RabbitMQ in my Projects and I am trying while consumer consumes data its consume that only related to this because in queue multiple records is there so how can I Acheive this some tips to do that activity
0
votes
0 answers

Rabbitmq redirect based on headers value

I have an exchange that is build like this: { "name": "events_in_headers", "vhost": "/", "type": "headers", "durable": true, "auto_delete": false, "internal": false, "arguments": {} } Then I have three queues: { "name":…
heisenberg
  • 1,172
  • 6
  • 14
  • 31
0
votes
0 answers

Decrease RabbitMQ queue max priority value

Hi Have created a rabbit mq queue using below mentioned in picture, and queue got created with max priority value 10, Now I wants to reduce it to 5, Is there any option to decrease max priority value without deleting queue.enter image description…
0
votes
1 answer

How to get metrics for RabbitMQ exchanges with Spring Boot?

Spring Boot automagically (with the actuator) provides metrics for queues (spring_rabbitmq_listener*). Is there a way to get similar metrics for the exchanges a services sends to? The application is…
0
votes
1 answer

RabbitMQ consumer problem in C# with Win Forms - Message consumed but not shown

I managed to properly create a sender and the messages to be sent to RabbitMQ, but when setting up the consumer with the method given above, all it does is to consume the message, the richtextbox control is not updated, i also cant see the message…
0
votes
0 answers

RabbitMQ Subscriber does not receive messages

I am trying to use RabbitMQ for a simple project. While following a tutorial, I found that the queue is showing one unacknowledged message and my subscriber is stuck. The problem occurs when I start the subscriber after starting the publisher. So it…
mremregok
  • 23
  • 5
0
votes
1 answer

what the default max length of rabbit queue

For any given queue, the maximum length (of either type) can be defined using a policy (this option is highly recommended) or by clients using the queue's optional arguments. In the case where both the effective queue policy and arguments specify a…
winston
  • 37
  • 6
0
votes
0 answers

How do I listen to the topic 'amq.rabbitmq.trace' using rabbitmq and python?

As I understand, the topic 'amq.rabbitmq.trace' is for tracing all messages sent to rabbitmq, without affecting the existing consumers for that message. I am using the following code import pickle import pika TOPIC_EXCHANGE =…
Prashant
  • 31
  • 2
0
votes
0 answers

How to customize bindings/queues/Exchange behaviours correctly on Spring Cloud Dataflow custom app

I'm developing a custom app who inject the main function of time OOTB app, but I want to customize also the behaviour of the queues and Exchanges created at the moment of deploying a stream on SCDF, my current configuration is with the following…
0
votes
0 answers

Is there a way to bind a RMQ alternate exchange to the default exchange?

I'm developing a project in which I'd like to use RabbitMQ as message broker. So far, I use the default exchange to fill the queues and moreover I use the default MQTT exchange, namely amq.topic, to handle MQTT messages. Since I would like to avoid…
0
votes
0 answers

Restrict access control on RabbitMQ command line tool

I have a question related to secure the access control on RMQ Here is a scenario: I am a windows admin account, I installed RMQ and add a new admin account in the management dashboard. Now, it looks like any windows user without privileges, can run…
imprezza
  • 3
  • 4