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

What are the minimal access rights for the upstream user when using RabbitMQ Exchange Federation

I want to ensure that all users on my RabbitMQ clusters only have the rights they need for their intended purpose. I'm using Exchange Federation between 2 RabbitMQ clusters and I want to restrict the rights of the user on the upstream cluster so…
Edd
  • 8,402
  • 14
  • 47
  • 73
0
votes
2 answers

spring-jms - listener exchange and bind queue by jms configuration

I have a project with spring-jms I'm trying work with exchanges. I created 4 listeners and all of them are been bound into exchange named 'jms.durable.queues' by default. Even thought I create my own exchanges and binding my queues manually on…
0
votes
0 answers

RabbitMQ machine to machine

I'm trying to connect rabbitMQ in one machine (Windows 10) to other machine (Raspberry pi 4). The windows machine is the producer, and the pi is the receiver. Both are connected to the same network, and defined with the same localhost. Although the…
Ran
  • 57
  • 6
0
votes
1 answer

Is it possible to reconfigure Rabbit MQ once you have changed machine to point at the new machine without uninstalling or demising it

I've come into an issue post install of Rabbit MQ where it was all set up and configured with the web apps on the machine and communicating to local applications however the machine had to be moved to a different tranch of machines and renamed as a…
Dexter Whelan
  • 414
  • 3
  • 15
0
votes
1 answer

RabbitMQ + Event Driven architecture

I am a newbee in Event Driven architecture. Try to implement it with the usage of microservices + RabbitMQ. So, I have the following problem: There are 3 microservices 1st one stores some data, 2 other store data related to data from 1st (it means…
0
votes
1 answer

pika.exceptions.ChannelClosedByBroker: (405, "RESOURCE_LOCKED - cannot obtain exclusive access to locked queue 'q1' in vhost '/'. It could be

I wrote receiver as below: import pika connection = pika.BlockingConnection(pika.ConnectionParameters(host='localhost')) ch = connection.channel() ch.exchange_declare(exchange='ex1',…
Darwin
  • 1,695
  • 1
  • 19
  • 29
0
votes
2 answers

RabbitMQ Node statistics not available in cluster node

I have installed RabbitMQ in centos in node1(master) and node2(slave) is 3.8.2 Erlang 22.2 lower version and another node 3 (slave) is RabbitMQ 3.9.8 Erlang 24.1,when i clustered node1 and node 2 is shows fine and but node 3 is i can able to join…
0
votes
2 answers

Several queueNames for Rabbit in Spring

Here is my rabbit yml.config of Spring app: event.rabbit: host: {{ params.app_properties.mq_host }} port: {{ params.app_properties.mq_port }} username: ${mq_username} password: ${mq_password} virtual-host: {{ params.app_properties.mq_vhost…
0
votes
1 answer

Can RabbitMQ user find information about other listeners?

I'm using SpringBoot's AMPQ support for RabbitMQ. IF I connect to a queue or an exchange, can I get information about the other users/nodes that are also connected? For example, if I'm connected to a Direct exchange, can I find out the routing…
0
votes
1 answer

implode of array results in RabbitMQ receiving empty msg body yet other publishers show the body

The first one is receiving data from $_POST in a login.php which calls a function from another file through require_once, and the $_POST is populated as I can echo it to my login page and see it, but it doesn't make it to the queue on the message…
Kube
  • 3
  • 2
0
votes
1 answer

RabbitMq like topic exchanges with Masstransit

I read the rabbitmq tutorials and really liked the Idea of topic exchanges. In my architecture I would have topics like continent.city.street. Where, as you can imagine, there are only a limited number of continents, but nearly infinite cities &…
Fritz
  • 831
  • 7
  • 23
0
votes
1 answer

Rabbitmq Sending message to only one service

I am building my application on a microservice model. Lets says There is one database on server D1 There is a user service hosted on server U1 There is a notification service on server N1 There is a rabbitmq service on server R1 The notification…
Phantom007
  • 2,079
  • 4
  • 25
  • 37
0
votes
1 answer

Integration of D365 with RabbitMQ using C# to Read and Write data in Queue

I want to integrate RabbitMQ with D365 CRM to write/read data from/to Queue from D365 Is there any plugin or alternate to achieve this ?
0
votes
1 answer

How to check Rabbit MQ nodes running status using C# application

I am trying to build an application which will check and monitor the Rabbit MQ nodes running status using C# .Net technology. After finding some references on the internet I started working on it but getting some issues. Rabbit MQ url:…
b_J
  • 115
  • 10
0
votes
1 answer

Logstash can't connect to my RabbitMQ Broker

I'm trying to connect a Logstash instance, running in a docker container, to an Amazon MQ Broker. My ultimate goal is to insert the MQ message bodies into ElasticSearch Based on the logs, I think Logstash is able to reach the MQ Queue, but the error…