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

SharedQueue closed - RabbitMQ error message

I am getting SharedQueue closed error as soon as I start my application in visual studio. The error is very frequent now. As far as I know we have not made any changes to the code & this code was workign fine earlier. I have seen many similar error…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
1 answer

Best Practice for setting up RabbitMQ cluster in production with NServiceBus

Currently we have 2 load balanced web servers. We are just starting to expose some functionality over NSB. If I create two "app" servers would I create a cluster between all 4 servers? Or should I create 2 clusters? i.e. Cluster1: Web Server A,…
Ryan L
  • 3
  • 2
0
votes
0 answers

How to reconsume exchange after rabbitmq server down?

Hi i'm wondering is there any way to try to keep continue consuming an exchange after rabbitMQ server down over .net?
V.B.
  • 69
  • 1
  • 1
  • 6
0
votes
1 answer

Purpose of declaring an exchange on a RabbitMQ consumer

I have a Java consumer application that connects to a RabbitMQ (3.2.4) non-deletable fanout exchange called "my_exhange_foo": Connection connection = connectionFactory.newConnection(consumerPool); Channel channel =…
Javide
  • 2,477
  • 5
  • 45
  • 61
0
votes
1 answer

Rabbitmq Acking in multiple consumers

I have a queue on which multiple consumers are working in round robin fashion. Delivery_tag is used to ack messages once consumer is done with its processing. But multiple consumers are setting same delivery_tag, though the message on which they are…
0
votes
0 answers

RabbitMQ Multi channels

I have developed a PHP application using RabbitMQ and NodeJs. Then i made a copy of that application on the same server. The problem is that sending any message in any application, the other application is listining also, so i want every application…
Gamal Anwar
  • 49
  • 1
  • 6
0
votes
1 answer

RabbitMQ: Connection issue while publishing message to multiple queues

I have messages in Map - key as a Queue Name and value as a List of messages. Whenever I publish the multiple message to queue server throws an exception as user has reached the maximum number of sign-ins permitted. while publishing messages to 1…
Bharat
  • 407
  • 2
  • 7
  • 16
0
votes
1 answer

Rabbit MQ Queing options

I have a scenario where i need to get three different type of messages. They all contains same information. Lets take for e.g I have 3 diffrent dealers of car Ford,Honda, Nissan. They all send me message about car and its specs. Would you create…
PL0689
  • 21
  • 5
0
votes
1 answer

RabbitMQ messages not dead-lettered on ttl expiration for a topic queue

I have the following configuration {"rabbit_version":"3.4.3", ... "queues":[ {"name":"consumer.queue-dl","vhost":"dev","durable":true,"auto_delete":false,"arguments":{}}, …
ab_732
  • 3,639
  • 6
  • 45
  • 61
0
votes
2 answers

Share a msg selectively with a worker in rabbitmq

I want to define a queue such that all msgs coming to it is routed to different worker and at the same time shared specifically with one of the workers I guess a diagram can explain better W(i) - Worker which recieves distinct msgs W(sp) - is…
prajnavantha
  • 1,111
  • 13
  • 17
0
votes
3 answers

Initialize RabbitMQ Exchange with arguments using Powershell

I am trying to initialize an Exchange using Powershell. I need to define a DLQ, so I am trying the following syntax: $exchangeURL = $apiURL + "/exchanges/myHost/myExchange"; $body =…
ab_732
  • 3,639
  • 6
  • 45
  • 61
0
votes
1 answer

Inverse match on header exchange in RabbitMQ

When binding a queue to a headers exchange, I'd like to be able to match the headers that fail to meet the conditions specified in the arguments. EG, whereas, some arguments to the binding : {customer: "foo"} will give me all payloads marked with…
Rene Wooller
  • 1,107
  • 13
  • 22
0
votes
1 answer

RabbitMQ publish to multiple queues via an exchange publishes to only the first queue only

I want to publish to Several queues bound to an exchange (fan out will not work here as I want to publish to only selective queues and not all the queues) The code goes like this: public int pushDataOverRabbitMQ(String[] deviceIDs, String msg)…
0
votes
1 answer

What is Federated and Alternate Exchange in RabbitMQ

I found two links on these exchanges. https://www.rabbitmq.com/federated-exchanges.html and https://www.rabbitmq.com/ae.html but could not get it what Author was trying to say. Has anyone idea related to these two Exchange and one more question.…
Mohit
  • 2,189
  • 4
  • 22
  • 40
0
votes
1 answer

RabbitMQ PHP for dynamic message updates

I am learning RabbitMQ and thought of using it for giving "dynamic message" updates to users very much like facebook give dynamic feeds from friends. My Idea was : Whenever a user is created I will create a queue having name is user's userId so…
voila
  • 1,594
  • 2
  • 19
  • 38
1 2 3
27
28