Questions tagged [rabbitmq]

RabbitMQ is an open-source message broker originally implementing the AMQP protocol with additional messaging protocols supported via a plug-in architecture. This tag should be used with questions involving the RabbitMQ server message broker product or questions concerning the source code and implementation of the RabbitMQ product. A specific protocol tag such as amqp or mqtt may also be appropriate as well as the OS and programming language being used.

RabbitMQ is an open-source message broker software that implements the Advanced Message Queuing Protocol (AMQP) with other message protocols (HTTP, STOMP, and MQTT) supported via its plug-in architecture. AMQP itself is one of several open standard for business messaging. Written in Erlang, the RabbitMQ server is based on a proven platform and offers a reliable, highly available, scalable and portable messaging system with predictable and consistent throughput and latency. There are several operating systems supported, including Linux and Windows.

There is also a client library implementing the AMQP protocol, RabbitMQ-C, librabbitmq on Linux, which provides C language bindings. This library is a basis for client libraries for a number of different programming languages.

RabbitMQ is 100% open-source and 100% based on open standard protocols, freeing users from dependency on proprietary vendor-supplied libraries. It is designed from the ground up to interoperate with other message systems. It is a leading implementation of AMQP.

The official URL of RabbitMQ is https://www.rabbitmq.com. Simple tutorials can be found on https://github.com/rabbitmq/rabbitmq-tutorials. Its client implementation can be done in various languages like Python, Java, Ruby, PHP, C#, JavaScript, GO, Elixr.

The principal idea of RabbitMQ is to accept and forward messages analogous to a post office: when you send mail to the post box, you're pretty sure the post office will eventually deliver the mail to your recipient. Using this metaphor, RabbitMQ is a post box, a post office and a postman. The major difference between RabbitMQ and the post office is the fact that it doesn't deal with paper, instead it accepts, stores and forwards binary blobs of data ‒ messages.

Through adapters, it supports MQTT and STOMP, both natively and over HTTP/WebSockets. SMTP is also available thanks to a community plugin.

Support for the software is offered through both a thriving community of active contributors and a range of commercial support services available through Pivotal (https://pivotal.io/oss).

Related tags

14241 questions
5
votes
1 answer

How to pass %2f to java.net.URI without it being turned into /

I'm using Dispatch from Scala as follows: val body = """{"count":5,"requeue":true,"encoding":"auto","truncate":50000}""" val req = url("http://localhost:4567/api/queues/%2f/myQueue/get").as_!("guest", "guest") << (body, "application/json") val http…
Blake
  • 71
  • 4
5
votes
2 answers

Client can't connect to RabbitMQ server on localhost

I installed fresh RabbitMQ 3.1.3 on ubuntu 12.04.2 LTS by apt-get, and try to start consumers on the same server, but I have connection problem: [PhpAmqpLib\Exception\AMQPRuntimeException] Error Connecting to server(113): No route to…
Quantizer
  • 113
  • 1
  • 1
  • 7
5
votes
3 answers

RabbitMQ server error

UPDATED error message I am getting a BOOT FAILED error every time I try to start the rabbitmq server. Does anybody know how I can fix this? I have attached the error message. I have tried a few different things including uninstalling and…
user2540882
  • 51
  • 1
  • 1
  • 3
5
votes
1 answer

RabbitMQ: Direct Exchange vs Fanout Exchange

I've been trying to use RabbitMQ and faced the following question (very similar to this one: Topic Exchange vs Direct Exchange in RabbitMQ). I need to intensively broadcast something around 800 types of messages (so there will be many consumers for…
Teddy Bo
  • 679
  • 8
  • 19
5
votes
1 answer

AMQP - How many consumers on a queue?

Using AMQP module for Node JS and RabbitMQ, is there any way to tell how many subscribers there are on a queue? We have multiple queues on the default exchange for multiple regions. When one region is down, instead of routing messages to that queue,…
Chris Nolet
  • 8,714
  • 7
  • 67
  • 92
5
votes
2 answers

Pika blocking_connection.py random timeout connecting to RabbitMQ

i have a rabbit mq running on machine both client and rabbitMQ are running on the same network rabbitMQ has many clients i can ping client from rabbitMQ and back longest latency measured between the machine is 12.1 ms network details : Standard…
Nimrod007
  • 9,825
  • 8
  • 48
  • 71
5
votes
0 answers

RabbitMQ crashing during restart

When I try to start my rabbitmq server, I get following error in log/*-sasl.log =CRASH REPORT==== 10-Apr-2013::23:24:32 === crasher: initial call: application_master:init/4 pid: <0.69.0> registered_name: [] exception exit: {bad_return, …
devang
  • 5,376
  • 7
  • 34
  • 49
5
votes
2 answers

convert curl call into java urlconnection call

I have curl command: curl -i -u guest:guest -H "content-type:application/json" -XPUT \ http://localhost:15672/api/traces/%2f/my-trace \ -d'{"format":"text","pattern":"#"}' And I want to create HTTP Request in Java API which will do the same thing.…
user2219448
  • 171
  • 1
  • 1
  • 7
5
votes
1 answer

In RabbitMQ should I create a connection pool on Connections, Channels, or both?

Using a java client for RabbitMQ, I have created a connection pooling mechanism that has a set of rabbitmq connections established and available. Once a client leases a connection the client creates a channel. If I have to send perform tasks and…
gextra
  • 8,439
  • 8
  • 40
  • 62
5
votes
2 answers

How do I stop consuming in RabbitMQ with Java and Python clients?

I have both Java and Python clients that I use channel.basicConsume(). At some point I would like to stop those consumers without stopping the entire program. In Python with Pika I have put channel.stop_consuming() calls in place, but those…
noisygecko
  • 1,771
  • 3
  • 15
  • 13
5
votes
1 answer

Dependency between message queuing messages

Here is my scenario: I have two servers with a multi-threaded message queuing consumer on each (two consumers total). I have many message types (CreateParent, CreateChild, etc.) I am stuck with bad legacy code (creating a child will partially…
Normand Bedard
  • 2,625
  • 2
  • 19
  • 22
5
votes
1 answer

rabbitmq AMQP::consume()

AMQP function consume() is a blocking function with a callback, Is it possible to set a timeout for consume() function, so after specific amount of time it doesn't block anymore and the code execution completes ?
AhlyM
  • 510
  • 1
  • 6
  • 16
5
votes
2 answers

Fatal error by starting django-celery with RabbitMQ [Unknown AMQP Method (10, 60)]

I'm trying to set up an instance of Django on a debian server with django-celery talking to RabbitMQ for distributed tasks. I can get the RabbitMQ server set up and it'll respond with a good status, but as soon as celery makes contact with RabbitMQ,…
Lou
  • 65
  • 6
5
votes
1 answer

Consume AMQP messages from ASP.net MVC 4 using RabbitMQ

Let's say that I want to consume AMQP messages from ASP.net MVC 4 using RabbitMQ. I store an object in System.Web.HttpContext.Current.Application which internally uses an instance of BackgroundWorker to listen for messages (the listener is created…
user2140283
  • 86
  • 1
  • 7
5
votes
3 answers

Spring RabbitMQ get all declared queues

I'm trying to get a list of all declared queues for a particular Virtual Host, using spring Rabbit libraries. But I can't see how you do it. There does exist a RabbitAdmin class which allows you to declare a queue, but you can't retrieve a list of…
Nick
  • 1,269
  • 5
  • 31
  • 45