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

How can create or add Users on RabbitMq server using console application?

Hello hope you are doing well, I am new on rabbitmq and am learning different things, Am trying now to create different users from console application , and publish messages from different users. any advice to know how can create users from console…
0
votes
2 answers

How to communicate two or more microservices in django rest framework?

I have been looking to communicate two or multiple microservices in django and need to make them communicate with each. I've reasearched about it and didnt get proper info about it. what i understood is each microservices application completely dont…
0
votes
1 answer

Getting Error: RabbitMQ.Client.Exceptions.BrokerUnreachableException

I am new to rabbitMQ. I enabled TLS for rabbitMQ on my local. As a part of it I created the certificate on my WINDOWS machine (followed the LINIUX Step) as discussed in the https://www.rabbitmq.com/ssl.html. Also updated the rabbitMQ.config file as…
0
votes
0 answers

Why my RabbitMQ Connections (in Kuberntes) are getting Blocked / Idle after 2 Hours?

I'm testing my Backend and using a StatefullSet Cluster of 3 RabbitMQ replicas , and using a client to test the Backend with "15" Users per Second. We're using the NPM Package of "amqplib": "0.10.3" After around 2 hours I get that all my RabbitMQ…
JAN
  • 21,236
  • 66
  • 181
  • 318
0
votes
0 answers

In rabbitmq message from a named queue is displayed as always ready, how can I delete a message from there after it is read by another queue?

In rabbitmq message from a named queue is displayed as ready and it is ackowledged by another queue which has topic exchange. In the following image I have 2 different queues, one named one generated randomly by rabbtmq: I know that I send one…
FaFa
  • 358
  • 2
  • 16
0
votes
0 answers

How Docker Compose And Rabbitmmq Config together?

I built two microservices and RabbitMQ and containerize them by docker... when I run docker-compose. "yaml up" i have this error in microservice container " Mass Transit[0] Connection Failed: rabbitmq://localhost/…
0
votes
1 answer

RabbitMQ crash rabbit_disk_monitor

crash exception log as below: 2022-12-06 03:40:44 =ERROR REPORT==== ** Generic server rabbit_disk_monitor terminating ** Last message in was update ** When Server state ==…
0
votes
1 answer

RabbitMQ list limited (full) queues

is there an api/rabbitmqctl call to list full queues? That is queues that are on limit by max-length or max-lengthbytes. Sometimes certain queues reach this threshold and we would like to monitor this. Thanks rabbitmqctl list_queues name arguments…
0
votes
0 answers

How to store data in Header on RabbitMQ dead letter message in C#?

I am using DLQ with DLX for dead lettered messages in C# project. I would like to store the exception that causes the message to be dead lettered in the dead letter header. Is it possible to store data in the DLX header? How to implement the…
ayala
  • 331
  • 1
  • 9
0
votes
1 answer

PCF app connecting to Spring AMQP - different messaging service after binding app to RabbitMQ service

I am new to PCF and need some help understanding the root cause of an issue I am facing. We have one PCF application that is connecting to Rabbit MQ (no binding done on the Rabbit MQ service yet). the messages get passed through the application to…
0
votes
2 answers

RabbitMQ localhost management failing to launch with port 5672 errors in the log file

I have installed RabbitMQ 3.11.2 and Erlang version 25.1.1 on Windows 10 machine. I am very new to RabbitMQ, and I am unable to launch RabbitMQ management portal. I enabled the RabbitMQ management plugin as well. Searched the internet with all sorts…
0
votes
1 answer

is it possible to publish a message to multiple exchanges from a single app

I have a stream, wherein there is a source->processor1->processor2->Sink1 I need to push the output of processor1 to another Sink instance (i.e. Sink2). I need something like ______Processor2-----Sink1 …
0
votes
1 answer

How can I set up exhange binding to multiple (wildcard) queues?

I've set up my fanout exchange hello.fanout. Clients connecting and want hello messages connect to rabbitmq and declear queue hello.. New clients will create new queues with the hello prefix in the name. In my simple mind I thought I could…
0
votes
0 answers

php-amqplib Library not working in PHP version 5.6

Is there is any downgraded version of php-amqplib Library, it is not working in PHP version 5.6.
arsal
  • 23
  • 5
0
votes
0 answers

RabbitMQ with asp.net core for publishing response msg getting from WhatsApp. Publishing new msgs to queue but it is also publishing old msgs along

While publishing new message to the queue from WhatsApp it is starting publishing old messages which are not even in the queue. Those messages were already consumed and acknowledged. From where it is automatically sending all those old messages one…