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

RabbitMQ declare exchange on start

Is it possible to declare exchanges when RabbitMQ is first installed/launched ? I needed to explicitly declare some durable exchanges that consumers could bind to before any producer produces anything to them. Can it be done with rabbitmq.config or…
noidraug
  • 219
  • 1
  • 9
0
votes
1 answer

RabbitMQ N exchanges testing

I'm fairly new to RabbitMQ and am planning on writing a few tests to understand how the message system in RabbitMQ scales with the number of exchanges used. In particular I'm curious to see how increasing N exchanges will affect the CPU, Memory and…
Nick
  • 709
  • 1
  • 6
  • 10
-1
votes
1 answer

Why am I getting the RabbitMQ exchange exception?

Here are my queues setting for tests, they are incorrect but they work: mq: username: guest password: guest host: localhost port: ${QA_RABBIT_LISTENER} ig-smev3: listener: vhost: / exchangeName: igSmev3Listener …
Maksym Rybalkin
  • 453
  • 1
  • 8
  • 22
-1
votes
1 answer

RabbitMQ reliability, How much reliable is RabbitMQ

I am new to RabbitMQ, I like to know - "How much reliable is RabbitMQ? Can it be deployed in Mission Critical Distributed Asynchronous System?"
CR Sardar
  • 921
  • 2
  • 17
  • 32
-1
votes
1 answer

Handling messages from a rabbitmq error queue

I have set up a spring boot rabbitmq integration, the integration works fine. I am sending messages to a queue and consuming from the queue. If any error occurs, the message gets retried a set amount of times after which the message is placed on an…
SEED
  • 57
  • 1
  • 12
-1
votes
1 answer

Why RabbitMQ connection failes on linux, but works on windows?

I'm using a connection to a RabbitMQ. I develop on Windows and here it works. When I start on Linux I'm getting a exception: None of the specified endpoints were reachable at at…
Frank Mehlhop
  • 1,480
  • 4
  • 25
  • 48
-1
votes
1 answer

RabbitMQ exchange queue max length

I am trying to apply some flow control in my application which based on RabbitMQ. A very narrow brief over my system: There are some blue-workers that scan and input directory and publish messages to an exchange. There are other red-workers that…
Andy Thomas
  • 1,219
  • 3
  • 19
  • 33
-1
votes
1 answer

Some essential question about using RabbitMQ?

After reading documentation about what is Rabbit and what does, I have some common questions: Case is: Producer sends one message to some consumers (subscribers). I need a short explanation for all points of list below, what to use, and what to dig…
POV
  • 11,293
  • 34
  • 107
  • 201
-1
votes
1 answer

For high message volume, why for the same message am I getting frame_size error in rabbitmq?

I have a direct type exchange which is routing a message to a queue. I am getting frame size error. I am using Apache camel camel_rabbitmq component for a message publishing.
-1
votes
1 answer

Getting RabbitMq to behave as I want (dead letter and re-queue on errors)

I have a simple rabbit set up that is currently doing what I want... It publishes messages based on the type of message. Each type gets its own queue. When messages are published they sit on the queue even if there is no consumer to consume them…
Loofer
  • 6,841
  • 9
  • 61
  • 102
-1
votes
1 answer

Queue Ghost consumers in RabbitMQ

In the test environment, there are rabbit consumers connected to the RELAY-* queues even when the app is stopped. This is causing messages to the queues being consumed by these “ghost” consumers, and the actual application receiving no data unless…
-1
votes
1 answer

WARN o.s.a.r.l.ConditionalRejectingErrorHandler - Execution of Rabbit message listener failed

There are 2 Spring projects 'A' and 'B'. Both of them uses seperate databases. The idea is to keep these databases in Sync. Sync is done via exchanging Jav POJO objects between projects. 'A' has a java web api to handle requests. When API call is…
-2
votes
2 answers

RabbitMQ/AMQP Exchange Routing Strategy

I have a scenario where publishers need to send messages to a known exchange (they won't know the downstream queues directly). Most of the messages should be delivered to every bound queue (like a fanout), but some need to be delivered only to a…
eric
  • 511
  • 1
  • 4
  • 15
-2
votes
1 answer

rabbit mq worker on restart gets loads of events

I followed the following link to consumer connection http://pika.readthedocs.org/en/latest/examples/asynchronous_consumer_example.html I observe a peculiar behaviour that whenever i close by worker and again restart it, its flooded with events. Not…
prajnavantha
  • 1,111
  • 13
  • 17
1 2 3
27
28